Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FoundMetric ¶
FoundMetric return true if found a metric with mtrName inside a metrics endpoint response as plain text.
func GetCounterValue ¶
GetCounterValue return a number(the counter value) if found a metric with mtrName and if a Counter kind metric from a metrics endpoint response as plain text.
Types ¶
type HistogramValue ¶
HistogramValue have some field to fill a histograms instance an compare against some receive value in an integration test
func GetHistogramValue ¶
func GetHistogramValue(metrics []byte, mtrName string) (HistogramValue, error)
GetHistogramValue return a HistogramValue instance looking into the metrics body for a metric with the name mtrName
type LabelValue ¶
LabelValue have some field to fill a label instance an compare against some received value in an integration test
type MetricVal ¶
type MetricVal struct { Labels []LabelValue Number float64 }
MetricVal have some field to fill a labeled metric instance an compare against some received value in an integration test
type NumericVec ¶
type NumericVec struct {
Values []MetricVal
}
NumericVec have some field to fill a metric vec(with labels) instance an compare against some received value in an integration test
func GetNumericVecValues ¶
func GetNumericVecValues(metrics []byte, mtrName string) (NumericVec, error)
GetNumericVecValues return a NumericVec instance looking into the metrics body for a metric with the name mtrName