pub struct IntHistogramSample<'a> {Show 16 fields
pub ts: i64,
pub st: i64,
pub count: u64,
pub zero_count: u64,
pub sum: f64,
pub schema: i32,
pub zero_threshold: f64,
pub pos_spans: &'a [Span],
pub neg_spans: &'a [Span],
pub pos_counts: &'a [i64],
pub neg_counts: &'a [i64],
pub pos_deltas: &'a [i64],
pub neg_deltas: &'a [i64],
pub custom_values: &'a [f64],
pub chunk_reset_hint: CounterResetHint,
pub counter_reset_hint: CounterResetHint,
}Expand description
One decoded integer native histogram sample.
Counts stay exact: count/zero_count are the uint64 values stored in
the chunk and the bucket slices are int64, matching Prometheus’
histogram.Histogram. Bucket slices borrow from the decoder, so the sample
is only valid for the duration of SampleSink::push_int_histogram.
Fields§
§ts: i64Sample timestamp, in milliseconds since the Unix epoch.
st: i64Start timestamp (ST encoding only), 0 otherwise.
count: u64Total number of observations, exactly as stored.
zero_count: u64Observations in the zero bucket, exactly as stored.
sum: f64Sum of all observed values (always a float, even for integer counts).
schema: i32Bucket schema; the resolution of the exponential buckets.
zero_threshold: f64Width of the zero bucket ([-zero_threshold, +zero_threshold]).
pos_spans: &'a [Span]Runs of populated positive buckets.
neg_spans: &'a [Span]Runs of populated negative buckets.
pos_counts: &'a [i64]Absolute positive bucket counts (deltas already accumulated in int64).
neg_counts: &'a [i64]Absolute negative bucket counts (deltas already accumulated in int64).
pos_deltas: &'a [i64]First-order positive bucket deltas, i.e. Prometheus PositiveBuckets.
neg_deltas: &'a [i64]First-order negative bucket deltas, i.e. Prometheus NegativeBuckets.
custom_values: &'a [f64]Custom bucket bounds when the histogram uses them instead of a schema.
chunk_reset_hint: CounterResetHint2-bit counter-reset header of the chunk.
counter_reset_hint: CounterResetHintPer-sample counter-reset hint, derived from the chunk header.