Versions in this module Expand all Collapse all v0 v0.2.2 Oct 26, 2021 Changes in this version + func NewSample(c *Config) *sample + type Config struct + Size int + type Counter interface + Count func() int64 + Dec func(int64) + Inc func(int64) + Reset func() + Snapshot func() Counter + func GetOrRegisterCounter(name string, r Metrics) Counter + func NewCounter() Counter + type CounterSnapshot int64 + func (CounterSnapshot) Dec(int64) + func (CounterSnapshot) Inc(int64) + func (CounterSnapshot) Reset() + func (c CounterSnapshot) Count() int64 + func (c CounterSnapshot) Snapshot() Counter + type DuplicateMetric string + func (err DuplicateMetric) Error() string + type Gauge interface + Snapshot func() Gauge + Update func(int64) + Value func() int64 + func GetOrRegisterGauge(name string, r Metrics) Gauge + func NewGauge() Gauge + type GaugeSnapshot int64 + func (GaugeSnapshot) Update(int64) + func (g GaugeSnapshot) Snapshot() Gauge + func (g GaugeSnapshot) Value() int64 + type Histogram interface + AddTime func(time.Duration) + Avg func() time.Duration + Cumulative func() time.Duration + HMean func() time.Duration + Long5p func() time.Duration + Max func() time.Duration + Min func() time.Duration + P50 func() time.Duration + P75 func() time.Duration + P95 func() time.Duration + P99 func() time.Duration + P999 func() time.Duration + Range func() time.Duration + Reset func() + SetWallTime func(time.Duration) + Short5p func() time.Duration + Snapshot func() Histogram + StdDev func() time.Duration + func GetOrRegisterHistogram(name string, r Metrics, s Sample) Histogram + func NewHistogram(s Sample) Histogram + type HistogramSnapshot struct + func (h *HistogramSnapshot) AddTime(t time.Duration) + func (h *HistogramSnapshot) Avg() time.Duration + func (h *HistogramSnapshot) Cumulative() time.Duration + func (h *HistogramSnapshot) HMean() time.Duration + func (h *HistogramSnapshot) Long5p() time.Duration + func (h *HistogramSnapshot) Max() time.Duration + func (h *HistogramSnapshot) Min() time.Duration + func (h *HistogramSnapshot) P50() time.Duration + func (h *HistogramSnapshot) P75() time.Duration + func (h *HistogramSnapshot) P95() time.Duration + func (h *HistogramSnapshot) P99() time.Duration + func (h *HistogramSnapshot) P999() time.Duration + func (h *HistogramSnapshot) Range() time.Duration + func (h *HistogramSnapshot) Reset() + func (h *HistogramSnapshot) SetWallTime(t time.Duration) + func (h *HistogramSnapshot) Short5p() time.Duration + func (h *HistogramSnapshot) Snapshot() Histogram + func (h *HistogramSnapshot) StdDev() time.Duration + type Metrics interface + GetOrRegister func(string, interface{}) interface{} + Unregister func(string) + UnregisterAll func() + func NewMetrics() Metrics + type Sample interface + AddTime func(time.Duration) + Avg func() time.Duration + Cumulative func() time.Duration + HMean func() time.Duration + Long5p func() time.Duration + Max func() time.Duration + Min func() time.Duration + P50 func() time.Duration + P75 func() time.Duration + P95 func() time.Duration + P99 func() time.Duration + P999 func() time.Duration + Range func() time.Duration + Reset func() + SetWallTime func(time.Duration) + Short5p func() time.Duration + Snapshot func() Sample + StdDev func() time.Duration + type SampleSnapshot struct + func NewSampleSnapshot(count uint64, samples int) *SampleSnapshot + func (*SampleSnapshot) AddTime(time.Duration) + func (*SampleSnapshot) Reset() + func (*SampleSnapshot) SetWallTime(time.Duration) + func (s *SampleSnapshot) Avg() time.Duration + func (s *SampleSnapshot) Cumulative() time.Duration + func (s *SampleSnapshot) HMean() time.Duration + func (s *SampleSnapshot) Long5p() time.Duration + func (s *SampleSnapshot) Max() time.Duration + func (s *SampleSnapshot) Min() time.Duration + func (s *SampleSnapshot) P50() time.Duration + func (s *SampleSnapshot) P75() time.Duration + func (s *SampleSnapshot) P95() time.Duration + func (s *SampleSnapshot) P99() time.Duration + func (s *SampleSnapshot) P999() time.Duration + func (s *SampleSnapshot) Range() time.Duration + func (s *SampleSnapshot) Short5p() time.Duration + func (s *SampleSnapshot) Snapshot() Sample + func (s *SampleSnapshot) StdDev() time.Duration + type StandardMetrics struct + func (m *StandardMetrics) GetOrRegister(name string, i interface{}) interface{} + func (m *StandardMetrics) Unregister(name string) + func (m *StandardMetrics) UnregisterAll() + type Stoppable interface + Stop func() + type TimeSeries interface + AddTime func(time.Duration) + Avg func() time.Duration + Cumulative func() time.Duration + HMean func() time.Duration + Long5p func() time.Duration + Max func() time.Duration + Min func() time.Duration + P50 func() time.Duration + P75 func() time.Duration + P95 func() time.Duration + P99 func() time.Duration + P999 func() time.Duration + Range func() time.Duration + SetWallTime func(time.Duration) + Short5p func() time.Duration + Snapshot func() TimeSeries + StdDev func() time.Duration + Time func(func()) + func GetOrRegisterTimeSeries(name string, r Metrics) TimeSeries + func NewTimeSeries() TimeSeries + type TimeSeriesSnapshot struct + func (*TimeSeriesSnapshot) AddTime(time.Duration) + func (*TimeSeriesSnapshot) SetWallTime(time.Duration) + func (*TimeSeriesSnapshot) Time(func()) + func (t *TimeSeriesSnapshot) Avg() time.Duration + func (t *TimeSeriesSnapshot) Cumulative() time.Duration + func (t *TimeSeriesSnapshot) HMean() time.Duration + func (t *TimeSeriesSnapshot) Long5p() time.Duration + func (t *TimeSeriesSnapshot) Max() time.Duration + func (t *TimeSeriesSnapshot) Min() time.Duration + func (t *TimeSeriesSnapshot) P50() time.Duration + func (t *TimeSeriesSnapshot) P75() time.Duration + func (t *TimeSeriesSnapshot) P95() time.Duration + func (t *TimeSeriesSnapshot) P99() time.Duration + func (t *TimeSeriesSnapshot) P999() time.Duration + func (t *TimeSeriesSnapshot) Range() time.Duration + func (t *TimeSeriesSnapshot) Short5p() time.Duration + func (t *TimeSeriesSnapshot) Snapshot() TimeSeries + func (t *TimeSeriesSnapshot) StdDev() time.Duration v0.2.2-alpha Oct 26, 2021