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.
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 ==
.impl<T> StructuralPartialEq for ExponentialHistogramDataPoint<T>
Auto Trait Implementations§
impl<T> Freeze for ExponentialHistogramDataPoint<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExponentialHistogramDataPoint<T>where
T: RefUnwindSafe,
impl<T> Send for ExponentialHistogramDataPoint<T>where
T: Send,
impl<T> Sync for ExponentialHistogramDataPoint<T>where
T: Sync,
impl<T> Unpin for ExponentialHistogramDataPoint<T>where
T: Unpin,
impl<T> UnwindSafe for ExponentialHistogramDataPoint<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)