Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Int64Counter ¶
type Int64Counter struct {
// contains filtered or unexported fields
}
Int64Counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart.
func NewInt64Counter ¶
func NewInt64Counter() *Int64Counter
NewInt64Counter returns a new Int64Counter
func (*Int64Counter) Increase ¶
func (c *Int64Counter) Increase(delta int64)
Increase increases the counter by delta.
func (*Int64Counter) Read ¶
func (c *Int64Counter) Read() int64
Read returns the current value of counter.
func (*Int64Counter) Reset ¶ added in v0.5.0
func (c *Int64Counter) Reset()
Reset sets zero to the underlying counter.
type Int64Gauge ¶
type Int64Gauge struct {
// contains filtered or unexported fields
}
Int64Gauge is a metric that represents a single numerical value that can arbitrarily go up and down.
func (*Int64Gauge) Decrease ¶
func (c *Int64Gauge) Decrease(delta int64)
Decrease decreases the counter by delta.
func (*Int64Gauge) Increase ¶
func (c *Int64Gauge) Increase(delta int64)
Increase increases the gauge by delta.
func (*Int64Gauge) Read ¶
func (c *Int64Gauge) Read() int64
Read returns the current value of gauge.
func (*Int64Gauge) Reset ¶ added in v0.5.0
func (c *Int64Gauge) Reset()
Reset sets zero to the underlying gauge.
Click to show internal directories.
Click to hide internal directories.