MCPcopy
hub / github.com/prometheus/prometheus / PositiveBucketIterator

Method PositiveBucketIterator

model/histogram/histogram.go:216–219  ·  view source on GitHub ↗

PositiveBucketIterator returns a BucketIterator to iterate over all positive buckets in ascending order (starting next to the zero bucket and going up).

()

Source from the content-addressed store, hash-verified

214// PositiveBucketIterator returns a BucketIterator to iterate over all positive
215// buckets in ascending order (starting next to the zero bucket and going up).
216func (h *Histogram) PositiveBucketIterator() BucketIterator[uint64] {
217 it := newRegularBucketIterator(h.PositiveSpans, h.PositiveBuckets, h.Schema, true, h.CustomValues)
218 return &it
219}
220
221// NegativeBucketIterator returns a BucketIterator to iterate over all negative
222// buckets in descending order (starting next to the zero bucket and going down).

Callers 5

StringMethod · 0.95
makeClassicHistogramFunction · 0.45

Calls 1

newRegularBucketIteratorFunction · 0.85

Tested by 3