stats

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

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 NewInt64Gauge

func NewInt64Gauge() *Int64Gauge

NewInt64Gauge returns a new Int64Gauge

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL