Documentation ¶
Index ¶
- type Stats
- func (s *Stats) HistogramAddSample(vn string, val float64)
- func (s *Stats) IntStatsInc(vn string, val int)
- func (s *Stats) IntStatsSet(vn string, val int64)
- func (s *Stats) RegisterHistogram(vn string, bounds []float64)
- func (s *Stats) RegisterInt(vn string)
- func (s *Stats) RunStat()
- func (s *Stats) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Stats ¶
func (*Stats) HistogramAddSample ¶
Async publish a value (add a sample) to a histogram variable.
func (*Stats) IntStatsInc ¶
IntStatsInc() async publish an increment/decrement to int variable
func (*Stats) IntStatsSet ¶
Async publish int variable
func (*Stats) RegisterHistogram ¶
Register histogram variable. `bounds` specifies histogram buckets/bins (see comment next to the `histogram` struct definition).
func (*Stats) RegisterInt ¶
RegisterInt() Registers integer variable. without checking for initialization.
Click to show internal directories.
Click to hide internal directories.