stats

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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.

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.

Jump to

Keyboard shortcuts

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