Struct metrix::processor::TelemetryProcessor[][src]

pub struct TelemetryProcessor<L> { /* fields omitted */ }

The counterpart of the TelemetryTransmitter. It receives the Observations and other messages and processes them.

A TelemetryProcessor is tied to a specific kind of label which is used to determine which metrics are triggered.

The TelemetryProcessor<L> owns a Receiver for TelemetryMessage<L>.

Methods

impl<L> TelemetryProcessor<L> where
    L: Clone + Eq + Send + 'static, 
[src]

Creates a TelemetryTransmitter and the corresponding TelemetryProcessor

The name will cause a grouping in the Snapshot.

Creates a TelemetryTransmitter and the corresponding TelemetryProcessor

No grouping will occur unless the name is set.

Add a Cockpit

Returns all contained Cockpits

Add a (custom) handler for Observations.

Returns all the handlers

Add a snapshooter that simply creates some Snapshot defined by it's internal logic. Usually it polls something when a Snapshot is requested.

Sets the name which will cause a grouoing in the Snapshot

Sets the maximum amount of time this processor may be inactive until no more snapshots are taken

Trait Implementations

impl<L> ProcessesTelemetryMessages for TelemetryProcessor<L> where
    L: Clone + Eq + Send + 'static, 
[src]

Receive and handle pending operations

impl<L> PutsSnapshot for TelemetryProcessor<L> where
    L: Clone + Eq + Send + 'static, 
[src]

Puts the current snapshot values into the given Snapshot thereby following the guidelines of PutsSnapshot. Read more

impl<L> Descriptive for TelemetryProcessor<L>
[src]

Auto Trait Implementations

impl<L> Send for TelemetryProcessor<L> where
    L: Send

impl<L> !Sync for TelemetryProcessor<L>