[][src]Trait lognplot::tsdb::Metrics

pub trait Metrics<V> {
    fn update(&mut self, sample: &V);
fn include(&mut self, metrics: &Self); }

Implement this for specific observations.

Required methods

fn update(&mut self, sample: &V)

fn include(&mut self, metrics: &Self)

Loading content...

Implementors

impl Metrics<Sample> for SampleMetrics[src]

fn update(&mut self, sample: &Sample)[src]

Integrate a single sample into tha metrics. This involves updating the min and max values as well as the count and the sum.

fn include(&mut self, metrics: &SampleMetrics)[src]

Include other metrics into this metrics.

Loading content...