pub trait Stat: Send + Sync {
// Required method
fn record(&self, config: &MetricConfig, value: f64, time_ms: i64);
}Expand description
A Stat is a quantity such as average, max, etc that is computed off the
stream of updates to a sensor.
§Translation notes
record takes &self, so a stat uses interior mutability.