Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor interface {
// Stats
Duration(contextTag, key string, start time.Time, tags ...string)
Gauge(contextTag, key string, value float64, tags ...string)
Histogram(contextTag, key string, value float64, tags ...string)
Count1(contextTag, key string, tags ...string)
Count(contextTag, key string, amount int64, tags ...string)
// Logging
Debug(f string, v ...interface{})
Info(f string, v ...interface{})
Warning(err error)
Error(err error)
}
Monitor represents a contract that a monitor should implement
type StatsdClient ¶
type StatsdClient interface {
Timing(name string, value time.Duration, tags []string, rate float64) error
Gauge(name string, value float64, tags []string, rate float64) error
Histogram(name string, value float64, tags []string, rate float64) error
Count(name string, value int64, tags []string, rate float64) error
}
StatsdClient ...
Click to show internal directories.
Click to hide internal directories.