basemetrics

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 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 Counter

type Counter interface {
	Inc(labels ...Label)
	Add(v float64, labels ...Label)
}

Counter is a type for counters

type Gauge

type Gauge interface {
	Add(v float64, labels ...Label)
	Set(v float64, labels ...Label)
}

Gauge is a type for gauges

type Histogram

type Histogram interface {
	Observe(v float64, labels ...Label)
}

Histogram is a type for histograms

type Label

type Label struct {
	Name  LabelName
	Value string
}

Label is a type for labels

type LabelName

type LabelName string

LabelName is a type for label names

func (LabelName) Create

func (l LabelName) Create(val string) Label

Create creates a new label

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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