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]

[src]

Creates a TelemetryTransmitter and the corresponding TelemetryProcessor

The name will cause a grouping in the Snapshot.

[src]

Creates a TelemetryTransmitter and the corresponding TelemetryProcessor

No grouping will occur unless the name is set.

[src]

Add a Cockpit

[src]

Returns all contained Cockpits

[src]

Add a (custom) handler for Observations.

[src]

Returns all the handlers

[src]

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

[src]

[src]

[src]

Sets the name which will cause a grouoing in the Snapshot

Trait Implementations

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

[src]

Receive and handle pending operations

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

[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]

[src]

[src]