models

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Subsystem string
	Name      string
	Help      string
	Labels    []string
}

Counter defines a counter metric

type CustomMetricsSpec

type CustomMetricsSpec struct {
	Summaries  []*Summary
	Histograms []*Histogram
	Gauges     []*Gauge
	Counters   []*Counter
}

CustomMetricsSpec has all metrics specs

type Gauge

type Gauge struct {
	Subsystem string
	Name      string
	Help      string
	Labels    []string
}

Gauge defines a gauge metric

type Histogram

type Histogram struct {
	Subsystem string
	Name      string
	Help      string
	Buckets   []float64
	Labels    []string
}

Histogram defines a histogram metric

type Summary

type Summary struct {
	Subsystem  string
	Name       string
	Help       string
	Objectives map[float64]float64
	Labels     []string
}

Summary defines a summary metric

Jump to

Keyboard shortcuts

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