go: cloud.google.com/go/bigtable/internal/stat Index | Files

package stat

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


Package Files


func WriteCSV Uses

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

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

type Aggregate Uses

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

func NewAggregate Uses

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 Uses

func (agg *Aggregate) String() string

Package stat imports 9 packages (graph) and is imported by 4 packages. Updated 2018-04-22. Refresh now. Tools for package owners.