metricscommon

package
v0.0.0-...-86fc13e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Namespace = "csa"

	DirectionLabelName = "direction"
	OutcomeLabelName   = "outcome"
	ReasonLabelName    = "reason"
)

Variables

This section is empty.

Functions

func ResetMetrics

func ResetMetrics(metrics []prometheus.Collector)

ResetMetrics resets all supplied metrics.

Types

type Direction

type Direction string

Direction indicates the direction of a scale.

var (
	DirectionUp   Direction = "up"
	DirectionDown Direction = "down"
)

type Outcome

type Outcome string

Outcome indicates the outcome of something.

var (
	OutcomeSuccess Outcome = "success"
	OutcomeFailure Outcome = "failure"
)

Jump to

Keyboard shortcuts

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