pub enum MetricValue {
Int(i64),
Float(f64),
Histogram {
buckets: Vec<(f64, u64)>,
sum: f64,
count: u64,
},
Summary {
p50: f64,
p90: f64,
p95: f64,
p99: f64,
count: u64,
},
}Expand description
The actual numeric value stored by a Metric.
Variants§
Int(i64)
Integer value used for counters and integer gauges.
Float(f64)
Floating-point value for gauges, rates, etc.
Histogram
Histogram distribution: (upper_bound, cumulative_count) pairs plus aggregate stats.
Summary
Percentile summary.
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
Source§fn clone(&self) -> MetricValue
fn clone(&self) -> MetricValue
Returns a duplicate 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 Debug for MetricValue
impl Debug for MetricValue
Auto Trait Implementations§
impl Freeze for MetricValue
impl RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnsafeUnpin for MetricValue
impl UnwindSafe for MetricValue
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