test_common

package
v0.0.0-...-89602ce Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GaugeMetricName     = "testGauge"
	CounterMetricName   = "testCounter"
	HistogramMetricName = "testHistogram"
	SummaryMetricName   = "testSummary"
	UntypedMetricName   = "testUntyped"
)

Variables

This section is empty.

Functions

func HasLabel

func HasLabel(labels []*dto.LabelPair, name, value string) bool

func HasLabelName

func HasLabelName(labels []*dto.LabelPair, name string) bool

func MakeMetricTypePointer

func MakeMetricTypePointer(t dto.MetricType) *dto.MetricType

func MakePromoCounter

func MakePromoCounter(value float64) dto.Metric

func MakePromoGauge

func MakePromoGauge(value float64) dto.Metric

func MakePromoHistogram

func MakePromoHistogram(buckets []float64, observations []float64) dto.Metric

func MakePromoSummary

func MakePromoSummary(objectives map[float64]float64, observations []float64) dto.Metric

func MakePromoUntyped

func MakePromoUntyped(value float64) dto.Metric

func MakeStrPtr

func MakeStrPtr(s string) *string

func MakeTestMetricFamily

func MakeTestMetricFamily(metricType dto.MetricType, count int, labels []*dto.LabelPair) *dto.MetricFamily

Types

This section is empty.

Jump to

Keyboard shortcuts

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