pub struct AggregatedMetric {
pub name: String,
pub aggregation: AggregationType,
pub value: f64,
pub count: usize,
pub time_range: TimeRange,
}Expand description
Aggregated metric result
Fields§
§name: StringMetric name
aggregation: AggregationTypeAggregation type
value: f64Aggregated value
count: usizeNumber of metrics aggregated
time_range: TimeRangeTime range
Trait Implementations§
Source§impl Clone for AggregatedMetric
impl Clone for AggregatedMetric
Source§fn clone(&self) -> AggregatedMetric
fn clone(&self) -> AggregatedMetric
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 AggregatedMetric
impl Debug for AggregatedMetric
Source§impl<'de> Deserialize<'de> for AggregatedMetric
impl<'de> Deserialize<'de> for AggregatedMetric
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
Source§impl PartialEq for AggregatedMetric
impl PartialEq for AggregatedMetric
Source§impl Serialize for AggregatedMetric
impl Serialize for AggregatedMetric
impl StructuralPartialEq for AggregatedMetric
Auto Trait Implementations§
impl Freeze for AggregatedMetric
impl RefUnwindSafe for AggregatedMetric
impl Send for AggregatedMetric
impl Sync for AggregatedMetric
impl Unpin for AggregatedMetric
impl UnwindSafe for AggregatedMetric
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