23 lines
381 B
23 lines
381 B
4 years ago
|
package metrics
|
||
|
|
||
|
// Counter is metrics counter.
|
||
|
type Counter interface {
|
||
|
With(lvs ...string) Counter
|
||
|
Inc()
|
||
|
Add(delta float64)
|
||
|
}
|
||
|
|
||
|
// Gauge is metrics gauge.
|
||
|
type Gauge interface {
|
||
|
With(lvs ...string) Gauge
|
||
|
Set(value float64)
|
||
|
Add(delta float64)
|
||
|
Sub(delta float64)
|
||
|
}
|
||
|
|
||
|
// Observer is metrics observer.
|
||
|
type Observer interface {
|
||
|
With(lvs ...string) Observer
|
||
|
Observe(float64)
|
||
|
}
|