pub struct AggregatedMetric {
pub name: SerializableMetricName,
pub metric_type: MetricType,
pub count: u64,
pub sum: f64,
pub min: f64,
pub max: f64,
pub last_value: f64,
pub start_timestamp_ns: u64,
pub end_timestamp_ns: u64,
}Expand description
Aggregated metrics for efficient storage and transmission
Fields§
§name: SerializableMetricNameThe name of the aggregated metric
metric_type: MetricTypeThe type of metric being aggregated
count: u64The number of individual metrics aggregated
sum: f64The sum of all values in the aggregation
min: f64The minimum value seen during aggregation
max: f64The maximum value seen during aggregation
last_value: f64The last value recorded in the aggregation
start_timestamp_ns: u64Timestamp of the first metric in the aggregation (nanoseconds since epoch)
end_timestamp_ns: u64Timestamp of the last metric in the aggregation (nanoseconds since epoch)
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for AggregatedMetric
impl<'__de, __Context> BorrowDecode<'__de, __Context> for AggregatedMetric
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AggregatedMetric
impl Debug for AggregatedMetric
Source§impl<__Context> Decode<__Context> for AggregatedMetric
impl<__Context> Decode<__Context> 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 Encode for AggregatedMetric
impl Encode 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