Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gauge ¶
type Gauge struct {
// contains filtered or unexported fields
}
Gauge represents an exponentially-weighted moving average of given values
func NewGauge ¶
func NewGauge() *Gauge
NewGauge constructs a new Gauge and launches a goroutine. Be sure to call Stop() once the meter is of no use to allow for garbage collection.
func (*Gauge) Rate1 ¶
Rate1 returns the one-minute moving average of the gauge values. Cannot be larger than max(largest input value, 0)
func (*Gauge) Rate15 ¶
Rate15 returns the fifteen-minute moving average of the gauge values. Cannot be larger than max(largest input value, 0)
func (*Gauge) Rate5 ¶
Rate5 returns the five-minute moving average of the gauge values. Cannot be larger than max(largest input value, 0)
Click to show internal directories.
Click to hide internal directories.