pub struct ExponentialHistogramDataPoint {
pub attributes: Vec<KeyValue>,
pub count: u64,
pub min: Option<MetricNumber>,
pub max: Option<MetricNumber>,
pub sum: MetricNumber,
pub scale: i8,
pub zero_count: u64,
pub positive_bucket: ExponentialBucket,
pub negative_bucket: ExponentialBucket,
pub zero_threshold: f64,
pub exemplars: Vec<Exemplar>,
}Expand description
A single data point in a time series to be associated with an exponential-histogram .
Fields§
§attributes: Vec<KeyValue>The set of key value pairs that uniquely identify the time series.
count: u64The number of updates this histogram has been calculated with.
min: Option<MetricNumber>The minimum value recorded.
max: Option<MetricNumber>The maximum value recorded.
sum: MetricNumberThe maximum value 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>The sampled exemplars collected during the time series.
Trait Implementations§
Source§impl Clone for ExponentialHistogramDataPoint
impl Clone for ExponentialHistogramDataPoint
Source§fn clone(&self) -> ExponentialHistogramDataPoint
fn clone(&self) -> ExponentialHistogramDataPoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl ComponentType for ExponentialHistogramDataPoint
impl Lift for ExponentialHistogramDataPoint
impl Lower for ExponentialHistogramDataPoint
Auto Trait Implementations§
impl Freeze for ExponentialHistogramDataPoint
impl RefUnwindSafe for ExponentialHistogramDataPoint
impl Send for ExponentialHistogramDataPoint
impl Sync for ExponentialHistogramDataPoint
impl Unpin for ExponentialHistogramDataPoint
impl UnsafeUnpin for ExponentialHistogramDataPoint
impl UnwindSafe for ExponentialHistogramDataPoint
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§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more