package stat

import "cloud.google.com/go/bigtable/internal/stat"

Index

Functions

func WriteCSV

func WriteCSV(aggs []*Aggregate, iow io.Writer) (err error)

WriteCSV writes a csv file to the given Writer, with a header row and one row per aggregate.

Types

type Aggregate

type Aggregate struct {
	Name               string
	Count, Errors      int
	Min, Median, Max   time.Duration
	P75, P90, P95, P99 time.Duration // percentiles
}

Aggregate is an aggregate of latencies.

func NewAggregate

func NewAggregate(name string, latencies []time.Duration, errorCount int) *Aggregate

NewAggregate constructs an aggregate from latencies. Returns nil if latencies does not contain aggregateable data.

func (*Aggregate) String

func (agg *Aggregate) String() string

Source Files

stats.go

Version
v1.35.0 (latest)
Published
Jan 22, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
6 days ago

Tools for package owners.