pub struct MetricSummary {
pub name: String,
pub min: f64,
pub max: f64,
pub avg: f64,
pub sum: f64,
pub count: u64,
pub std_dev: Option<f64>,
pub percentiles: Option<[f64; 4]>,
}
Expand description
Summary statistics for a specific metric
Fields§
§name: String
Metric name
min: f64
Minimum value
max: f64
Maximum value
avg: f64
Average value
sum: f64
Sum of all values
count: u64
Number of data points
std_dev: Option<f64>
Standard deviation
percentiles: Option<[f64; 4]>
Percentiles (50th, 90th, 95th, 99th)
Trait Implementations§
Source§impl Clone for MetricSummary
impl Clone for MetricSummary
Source§fn clone(&self) -> MetricSummary
fn clone(&self) -> MetricSummary
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 MetricSummary
impl Debug for MetricSummary
Source§impl<'de> Deserialize<'de> for MetricSummary
impl<'de> Deserialize<'de> for MetricSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MetricSummary
impl RefUnwindSafe for MetricSummary
impl Send for MetricSummary
impl Sync for MetricSummary
impl Unpin for MetricSummary
impl UnwindSafe for MetricSummary
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