pub trait LastValue: Aggregation {
    // Required method
    fn last_value(&self) -> Result<(Number, SystemTime), MetricsError>;
}
Available on crate feature metrics only.
Expand description

LastValue returns the latest value that was aggregated.

Required Methods§

source

fn last_value(&self) -> Result<(Number, SystemTime), MetricsError>

The last value of the currently aggregated metrics

Implementors§