stat

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCSV

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.

Types

type Aggregate

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL