14 lines
338 B
Go
14 lines
338 B
Go
package metrics
|
|
|
|
import "time"
|
|
|
|
// Tags is a map of fields to add to a metric:
|
|
type Tags map[string]string
|
|
|
|
// Reporter is the standard metrics interface:
|
|
type Reporter interface {
|
|
Count(id string, value int64, tags Tags) error
|
|
Gauge(id string, value float64, tags Tags) error
|
|
Timing(id string, value time.Duration, tags Tags) error
|
|
}
|