Trait prometheus::local::LocalMetric[][src]

pub trait LocalMetric {
    fn flush(&self);
}

An interface models a Metric only usable in single thread environment.

Required methods

fn flush(&self)[src]

Flush the local metrics to the global one.

Loading content...

Implementors

impl LocalMetric for LocalHistogram[src]

fn flush(&self)[src]

Flush the local metrics to the Histogram metric.

impl LocalMetric for LocalHistogramVec[src]

fn flush(&self)[src]

Flush the local metrics to the HistogramVec metric.

impl<P: Atomic> LocalMetric for GenericLocalCounter<P>[src]

fn flush(&self)[src]

Flush the local metrics to the Counter.

impl<P: Atomic> LocalMetric for GenericLocalCounterVec<P>[src]

fn flush(&self)[src]

Flush the local metrics to the CounterVec metric.

Loading content...