metrics

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICounter

type ICounter interface {
	Inc()
	Add(float64)
}

type IGauge

type IGauge interface {
	Inc()
	Dec()
	Add(float64)
	Set(float64)
}

type IMetrics

type IMetrics interface {
	Counter(name MetricName, labels Labels) ICounter
	Gauge(name MetricName, labels Labels) IGauge
	Observer(name MetricName, labels Labels) IObserver
}

type IObserver

type IObserver interface {
	Observe(float64)
}

type Labels

type Labels map[string]string

type MetricName

type MetricName string

Jump to

Keyboard shortcuts

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