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

Struct SamplePair

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

SamplePair pairs a SampleValue with a Timestamp.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected