[][src]Trait witchcraft_metrics::Reservoir

pub trait Reservoir: 'static + Sync + Send {
    fn update(&self, value: i64);
fn snapshot(&self) -> Box<dyn Snapshot>; }

A statistically representative subset of a set of values.

Required methods

fn update(&self, value: i64)

Adds a value to the reservoir.

fn snapshot(&self) -> Box<dyn Snapshot>

Returns a snapshot of statistics about the values in the reservoir.

Loading content...

Implementors

impl Reservoir for ExponentiallyDecayingReservoir[src]

Loading content...