MCPcopy Create free account
hub / github.com/prometheus/common / SampleValue

TypeAlias SampleValue

model/value_float.go:33–33  ·  view source on GitHub ↗

A SampleValue is a representation of a value for a given sample at a given time.

Source from the content-addressed store, hash-verified

31// A SampleValue is a representation of a value for a given sample at a given
32// time.
33type SampleValue float64
34
35// MarshalJSON implements json.Marshaler.
36func (v SampleValue) MarshalJSON() ([]byte, error) {

Callers 11

TestProtoDecoderFunction · 0.92
extractCounterFunction · 0.92
extractGaugeFunction · 0.92
extractUntypedFunction · 0.92
extractSummaryFunction · 0.92
extractHistogramFunction · 0.92
UnmarshalJSONMethod · 0.85
UnmarshalJSONMethod · 0.85
TestScalarJSONFunction · 0.85
TestEqualValuesFunction · 0.85
TestVectorJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected