types

package
v1.13.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric interface {
	GetName() string
	GetType() MetricType
	GetDesc() string
	GetLabel() []string
	GetBuckets() []float64
	GetObjectives() map[float64]float64
}

type MetricType

type MetricType int
const (
	None MetricType = iota
	Counter
	Gauge
	Histogram
	Summary
)

func (MetricType) Register

func (m MetricType) Register(met Metric) (prmsdk.Collector, error)

Jump to

Keyboard shortcuts

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