pub struct ExponentialHistogramDataPoint<T> {
pub attributes: Vec<KeyValue>,
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.
count: usizeThe number of updates this histogram has been calculated with.
min: Option<T>The minimum value recorded.
max: Option<T>The maximum value recorded.
sum: TThe sum of the values recorded.
scale: i8Describes the resolution of the histogram.
Boundaries are located at powers of the base, where:
base = 2 ^ (2 ^ -scale)
zero_count: u64The 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: ExponentialBucketThe range of positive value bucket counts.
negative_bucket: ExponentialBucketThe range of negative value bucket counts.
zero_threshold: f64The 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.
Trait Implementations§
Source§impl<T: Copy> Clone for ExponentialHistogramDataPoint<T>
impl<T: Copy> Clone for ExponentialHistogramDataPoint<T>
Source§impl<T: Debug> Debug for ExponentialHistogramDataPoint<T>
impl<T: Debug> Debug for ExponentialHistogramDataPoint<T>
Source§impl<T: PartialEq> PartialEq for ExponentialHistogramDataPoint<T>
impl<T: PartialEq> PartialEq for ExponentialHistogramDataPoint<T>
Source§fn eq(&self, other: &ExponentialHistogramDataPoint<T>) -> bool
fn eq(&self, other: &ExponentialHistogramDataPoint<T>) -> bool
self and other values to be equal, and is used by ==.