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

Struct SampleHistogramPair

model/value_histogram.go:136–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136type SampleHistogramPair struct {
137 Timestamp Time
138 // Histogram should never be nil, it's only stored as pointer for efficiency.
139 Histogram *SampleHistogram
140}
141
142func (s SampleHistogramPair) MarshalJSON() ([]byte, error) {
143 if s.Histogram == nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected