pub struct ExponentialHistogramDataPoint<T> { /* private fields */ }Expand description
A single exponential histogram data point in a time series.
Implementations§
Source§impl<T> ExponentialHistogramDataPoint<T>
impl<T> ExponentialHistogramDataPoint<T>
Sourcepub fn attributes(&self) -> impl Iterator<Item = &KeyValue>
pub fn attributes(&self) -> impl Iterator<Item = &KeyValue>
Returns an iterator over the attributes in ExponentialHistogramDataPoint.
Sourcepub fn exemplars(&self) -> impl Iterator<Item = &Exemplar<T>>
pub fn exemplars(&self) -> impl Iterator<Item = &Exemplar<T>>
Returns an iterator over the exemplars in ExponentialHistogramDataPoint.
Sourcepub fn count(&self) -> usize
pub fn count(&self) -> usize
Returns the number of updates this histogram has been calculated with.
Sourcepub fn zero_count(&self) -> u64
pub fn zero_count(&self) -> u64
Returns the number of values whose absolute value is less than or equal to zero_threshold.
Sourcepub fn positive_bucket(&self) -> &ExponentialBucket
pub fn positive_bucket(&self) -> &ExponentialBucket
Returns the range of positive value bucket counts.
Sourcepub fn negative_bucket(&self) -> &ExponentialBucket
pub fn negative_bucket(&self) -> &ExponentialBucket
Returns the range of negative value bucket counts.
Sourcepub fn zero_threshold(&self) -> f64
pub fn zero_threshold(&self) -> f64
Returns the width of the zero region.
Trait Implementations§
Source§impl<T: Clone> Clone for ExponentialHistogramDataPoint<T>
impl<T: Clone> Clone for ExponentialHistogramDataPoint<T>
Source§fn clone(&self) -> ExponentialHistogramDataPoint<T>
fn clone(&self) -> ExponentialHistogramDataPoint<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Tests for
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
Mutably borrows from an owned value. Read more