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

Struct SamplePair

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

SamplePair pairs a SampleValue with a Timestamp.

Source from the content-addressed store, hash-verified

65
66// SamplePair pairs a SampleValue with a Timestamp.
67type SamplePair struct {
68 Timestamp Time
69 Value SampleValue
70}
71
72func (s SamplePair) MarshalJSON() ([]byte, error) {
73 t, err := json.Marshal(s.Timestamp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected