Struct nakadion::publisher::DriverBuilder [−][src]
pub struct DriverBuilder {
pub name: Option<String>,
pub title: Option<String>,
pub description: Option<String>,
pub processing_strategy: ProcessingStrategy,
pub with_driver_metrics: bool,
}
Expand description
A Builder for a TelemetryDriver
Fields
name: Option<String>
An optional name that will also group the metrics under the name
Default is None
title: Option<String>
A title to be added when a Snapshot
with descriptions is created
Default is None
description: Option<String>
A description to be added when a Snapshot
with descriptions is created
Default is None
processing_strategy: ProcessingStrategy
Sets the ProcessingStrategy
dropped. The default is to drop observations older
than 30 seconds but not delta observations.
with_driver_metrics: bool
If true metrics for the TelemetryDriver
will be added to the
generated Snapshot
Default is true
Implementations
pub fn set_processing_strategy(
self,
processing_strategy: ProcessingStrategy
) -> DriverBuilder
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for DriverBuilder
impl Send for DriverBuilder
impl Sync for DriverBuilder
impl Unpin for DriverBuilder
impl UnwindSafe for DriverBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more