[][src]Struct spirit_dipstick::Backends

pub struct Backends {
    pub outputs: MultiOutput,
    pub prefix: String,
    pub flush_period: Duration,
    // some fields omitted
}

An intermediate resource produced by Config.

This contains all the parts ready to be used.

Fields

outputs: MultiOutput

A composed output for the metrics.

This can be manually installed into an AtomicBucket, or automatically used through a pipeline and installed into the Monitor.

prefix: String

The configured prefix at the root of the metrics tree.

flush_period: Duration

How often should the metrics be sent.

Trait Implementations

impl<F, O, C> Installer<Backends, O, C> for MonitorInstaller<F> where
    F: Fn(InputKind, MetricName, ScoreType) -> Option<(InputKind, MetricName, MetricValue)> + Send + Sync + 'static, 
[src]

type UninstallHandle = Uninstaller

A handle representing lifetime of the resource. Read more

fn init<B>(&mut self, builder: B, _name: &'static str) -> Result<B, Error> where
    B: Extensible<Opts = O, Config = C, Ok = B>,
    <B as Extensible>::Config: DeserializeOwned,
    <B as Extensible>::Config: Send,
    <B as Extensible>::Config: Sync,
    <B as Extensible>::Config: 'static,
    <B as Extensible>::Opts: StructOpt,
    <B as Extensible>::Opts: Send,
    <B as Extensible>::Opts: Sync,
    <B as Extensible>::Opts: 'static, 
[src]

Initialize the installer. Read more

Auto Trait Implementations

impl Send for Backends

impl Sync for Backends

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoResult for T[src]

impl<T> Erased for T