Documentation ¶
Index ¶
- type Counter
- func (c *Counter) Close()
- func (c *Counter) Count() int64
- func (c *Counter) Max() int64
- func (c *Counter) Mean() float64
- func (c *Counter) Min() int64
- func (c *Counter) Stdev() float64
- func (c *Counter) Sum() int64
- func (c *Counter) SumSq() int64
- func (c *Counter) Update(value int64)
- func (c *Counter) ValueOf(aggType aggregation.Type) float64
- type Gauge
- func (g *Gauge) Close()
- func (g *Gauge) Count() int64
- func (g *Gauge) Last() float64
- func (g *Gauge) Max() float64
- func (g *Gauge) Mean() float64
- func (g *Gauge) Min() float64
- func (g *Gauge) Stdev() float64
- func (g *Gauge) Sum() float64
- func (g *Gauge) SumSq() float64
- func (g *Gauge) Update(value float64)
- func (g *Gauge) ValueOf(aggType aggregation.Type) float64
- type Options
- type Timer
- func (t *Timer) Add(value float64)
- func (t *Timer) AddBatch(values []float64)
- func (t *Timer) Close()
- func (t *Timer) Count() int64
- func (t *Timer) Max() float64
- func (t *Timer) Mean() float64
- func (t *Timer) Min() float64
- func (t *Timer) Quantile(q float64) float64
- func (t *Timer) Stdev() float64
- func (t *Timer) Sum() float64
- func (t *Timer) SumSq() float64
- func (t *Timer) ValueOf(aggType aggregation.Type) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct { Options // contains filtered or unexported fields }
Counter aggregates counter values.
type Gauge ¶
type Gauge struct { Options // contains filtered or unexported fields }
Gauge aggregates gauge values.
type Options ¶
type Options struct { // HasExpensiveAggregations means expensive (multiplication/division) // aggregation types are enabled. HasExpensiveAggregations bool }
Options is the options for aggregations.
func (*Options) ResetSetData ¶
func (o *Options) ResetSetData(aggTypes aggregation.Types)
ResetSetData resets the aggregation options.
type Timer ¶
type Timer struct { Options // contains filtered or unexported fields }
Timer aggregates timer values. Timer APIs are not thread-safe.
Directories ¶
Path | Synopsis |
---|---|
quantile
|
|
cm
Package cm implements the Cormode-Muthukrishnan algorithm for computing biased quantiles over data streams from "Effective Computation of Biased Quantiles over Data Streams" and is largely based on statsite's implementation in C: https://github.com/statsite/statsite/blob/master/src/cm_quantile.c
|
Package cm implements the Cormode-Muthukrishnan algorithm for computing biased quantiles over data streams from "Effective Computation of Biased Quantiles over Data Streams" and is largely based on statsite's implementation in C: https://github.com/statsite/statsite/blob/master/src/cm_quantile.c |
tdigest
Package tdigest implements the t-digest algorithm for accurate on-line accumulation of rank-based statistics such as quantiles from "Computing Extremely Accurate Quantiles Using t-Digests" and is based on Ted Dunning's implementation in Java: https://github.com/tdunning/t-digest/blob/master/src/main/java/com/tdunning/math/stats/
|
Package tdigest implements the t-digest algorithm for accurate on-line accumulation of rank-based statistics such as quantiles from "Computing Extremely Accurate Quantiles Using t-Digests" and is based on Ted Dunning's implementation in Java: https://github.com/tdunning/t-digest/blob/master/src/main/java/com/tdunning/math/stats/ |
Click to show internal directories.
Click to hide internal directories.