Struct dipstick::AggregateSink
[−]
[src]
pub struct AggregateSink(_);
A sink where to send metrics for aggregation.
The parameters of aggregation may be set upon creation.
Just clone()
to use as a shared aggregator.
Trait Implementations
impl Debug for AggregateSink
[src]
impl Clone for AggregateSink
[src]
fn clone(&self) -> AggregateSink
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Sink<Aggregate> for AggregateSink
[src]
fn new_metric(&self, kind: Kind, name: &str, sampling: Rate) -> Aggregate
[src]
Define a new metric instrument of the requested kind, with the specified name and sample rate.
fn new_scope(&self, auto_flush: bool) -> ScopeFn<Aggregate>
[src]
Returns a callback function to send scope commands. Writes can be performed by passing Some((&Metric, Value)) Flushes can be performed by passing None Read more