Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Incrementer ¶
type Incrementer interface {
// Increment increments metric
Increment(metric string)
// IncrementN increments metric by n
IncrementN(metric string, n int)
// Increment increments all metrics for given bucket
IncrementAll(b bucket.Bucket)
// Increment increments all metrics for given bucket by n
IncrementAllN(b bucket.Bucket, n int)
}
Incrementer is a metric incrementer interface
type Log ¶
type Log struct{}
Log struct is Incrementer interface implementation that writes all metrics to log
func (*Log) IncrementAll ¶
IncrementAll writes all metrics for given bucket to log
func (*Log) IncrementAllN ¶
IncrementAllN writes all metrics for given bucket to log
func (*Log) IncrementN ¶
IncrementN writes given metric to log
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory struct is Incrementer interface implementation that stores results in memory for further usage
func (*Memory) IncrementAll ¶
IncrementAll increments all metrics for given bucket in memory
func (*Memory) IncrementAllN ¶
IncrementAllN increments all metrics for given bucket in memory
func (*Memory) IncrementN ¶
IncrementN increments given metric in memory
type StatsD ¶ added in v0.6.0
type StatsD struct {
// contains filtered or unexported fields
}
StatsD struct is Incrementer interface implementation that writes all metrics to statsd
func (*StatsD) IncrementAll ¶ added in v0.6.0
IncrementAll increments all metrics for given bucket in statsd
func (*StatsD) IncrementAllN ¶ added in v0.6.0
IncrementAllN increments all metrics for given bucket in statsd
func (*StatsD) IncrementN ¶ added in v0.6.0
IncrementN increments metric by n in statsd