Trait influxdb_dispatcher::MetricsConsumer
source · pub trait MetricsConsumer {
type Metric;
// Required methods
fn new(client: Client) -> Self;
fn accept(&mut self, metric: Self::Metric);
fn flush(&mut self) -> impl Future<Output = ()> + Send;
}
Expand description
Aggregator for metrics. An aggregator should collect metrics so they can be batch dispatched.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.