Documentation ¶
Index ¶
- type Measurement
- func (m *Measurement) Count(n int)
- func (m *Measurement) Durations() []time.Duration
- func (m *Measurement) End()
- func (m *Measurement) Gauge(value interface{})
- func (m *Measurement) Increment()
- func (m *Measurement) LastDuration() time.Duration
- func (m *Measurement) LastValue() float64
- func (m *Measurement) Observe(value float64)
- func (m *Measurement) SendTiming(duration time.Duration)
- func (m *Measurement) Since(start time.Time)
- func (m *Measurement) Start()
- func (m *Measurement) Values() []float64
- type Opts
- type Store
- func (ms *Store) Get(name string, tags stats.Tags) *Measurement
- func (ms *Store) NewSampledTaggedStat(name, statType string, tags stats.Tags) stats.Measurement
- func (ms *Store) NewStat(name, statType string) (m stats.Measurement)
- func (ms *Store) NewTaggedStat(name, statType string, tags stats.Tags) stats.Measurement
- func (*Store) Start(_ context.Context)
- func (*Store) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Measurement ¶
type Measurement struct {
// contains filtered or unexported fields
}
func (*Measurement) Durations ¶
func (m *Measurement) Durations() []time.Duration
func (*Measurement) Gauge ¶
func (m *Measurement) Gauge(value interface{})
Gauge implements stats.Measurement
func (*Measurement) Increment ¶
func (m *Measurement) Increment()
Increment implements stats.Measurement
func (*Measurement) LastDuration ¶
func (m *Measurement) LastDuration() time.Duration
func (*Measurement) LastValue ¶
func (m *Measurement) LastValue() float64
func (*Measurement) Observe ¶
func (m *Measurement) Observe(value float64)
Observe implements stats.Measurement
func (*Measurement) SendTiming ¶
func (m *Measurement) SendTiming(duration time.Duration)
SendTiming implements stats.Measurement
func (*Measurement) Since ¶
func (m *Measurement) Since(start time.Time)
Since implements stats.Measurement
func (*Measurement) Values ¶
func (m *Measurement) Values() []float64
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Get ¶
func (ms *Store) Get(name string, tags stats.Tags) *Measurement
Get the stored measurement with the name and tags. If no measurement is found, nil is returned.
func (*Store) NewSampledTaggedStat ¶
NewSampledTaggedStat implements stats.Stats
func (*Store) NewStat ¶
func (ms *Store) NewStat(name, statType string) (m stats.Measurement)
NewStat implements stats.Stats
func (*Store) NewTaggedStat ¶
NewTaggedStat implements stats.Stats
Click to show internal directories.
Click to hide internal directories.