pub struct ExponentialHistogramDataPoint<T> {Show 13 fields
pub attributes: Vec<KeyValue>,
pub start_time: SystemTime,
pub time: SystemTime,
pub count: usize,
pub min: Option<T>,
pub max: Option<T>,
pub sum: T,
pub scale: i8,
pub zero_count: u64,
pub positive_bucket: ExponentialBucket,
pub negative_bucket: ExponentialBucket,
pub zero_threshold: f64,
pub exemplars: Vec<Exemplar<T>>,
}
Expand description
A single exponential histogram data point in a time series.
Fields§
§attributes: Vec<KeyValue>
The set of key value pairs that uniquely identify the time series.
start_time: SystemTime
When the time series was started.
time: SystemTime
The time when the time series was recorded.
count: usize
The number of updates this histogram has been calculated with.
min: Option<T>
The minimum value recorded.
max: Option<T>
The maximum value recorded.
sum: T
The sum of the values recorded.
scale: i8
Describes the resolution of the histogram.
Boundaries are located at powers of the base, where:
base = 2 ^ (2 ^ -scale)
zero_count: u64
The number of values whose absolute value is less than or equal to
zero_threshold
.
When zero_threshold
is 0
, this is the number of values that cannot be
expressed using the standard exponential formula as well as values that have
been rounded to zero.
positive_bucket: ExponentialBucket
The range of positive value bucket counts.
negative_bucket: ExponentialBucket
The range of negative value bucket counts.
zero_threshold: f64
The width of the zero region.
Where the zero region is defined as the closed interval [-zero_threshold, zero_threshold].
exemplars: Vec<Exemplar<T>>
The sampled exemplars collected during the time series.