MCPcopy
hub / github.com/prometheus/prometheus / NegativeBucketIterator

Method NegativeBucketIterator

model/histogram/histogram.go:223–226  ·  view source on GitHub ↗

NegativeBucketIterator returns a BucketIterator to iterate over all negative buckets in descending order (starting next to the zero bucket and going down).

()

Source from the content-addressed store, hash-verified

221// NegativeBucketIterator returns a BucketIterator to iterate over all negative
222// buckets in descending order (starting next to the zero bucket and going down).
223func (h *Histogram) NegativeBucketIterator() BucketIterator[uint64] {
224 it := newRegularBucketIterator(h.NegativeSpans, h.NegativeBuckets, h.Schema, false, nil)
225 return &it
226}
227
228// CumulativeBucketIterator returns a BucketIterator to iterate over a
229// cumulative view of the buckets. This method currently only supports

Callers 4

StringMethod · 0.95

Calls 1

newRegularBucketIteratorFunction · 0.85