metrics

package
v3.0.0-beta19 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricsToMap

func MetricsToMap(metrics []*Metric) map[string]float64

MetricsToMap converts metrics to map.

Types

type Metric

type Metric struct {
	// Name is the name of the metric.
	Name string
	// Value is the value of the metric.
	Value float64
	// Labels is the tags of the metric.
	Labels map[string]string
	// Description is the description of the metric.
	Description string
}

Metric represents a metric.

Jump to

Keyboard shortcuts

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