pub struct AggregatedMetricsProcessor;Expand description
Aggregated metrics processor.
This processor maintains a map of aggregated metrics, where each metric is represented by its context (name and tags), and the aggregated value of the metric. Counters, gauges, and histograms are supported; all other metric types are ignored.
Aggregation follows the following rules:
- Counters are summed together.
- Gauges are represented by the latest value (by timestamp).
- Histograms are merged: per-bucket counts, sum, and total count are summed.
Aggregated values have no concept of “points” – specific values at a specific timestamp – or multiple data points: each metric simply has a single value that represents the aggregated amount since the processor was created.
Trait Implementations§
Source§impl Clone for AggregatedMetricsProcessor
impl Clone for AggregatedMetricsProcessor
Source§fn clone(&self) -> AggregatedMetricsProcessor
fn clone(&self) -> AggregatedMetricsProcessor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Processor for AggregatedMetricsProcessor
impl Processor for AggregatedMetricsProcessor
Source§type State = AggregatedMetricsState
type State = AggregatedMetricsState
The state that the processor acts on.
Source§fn build_initial_state(&self) -> Self::State
fn build_initial_state(&self) -> Self::State
Builds the initial state for the processor.
Auto Trait Implementations§
impl Freeze for AggregatedMetricsProcessor
impl RefUnwindSafe for AggregatedMetricsProcessor
impl Send for AggregatedMetricsProcessor
impl Sync for AggregatedMetricsProcessor
impl Unpin for AggregatedMetricsProcessor
impl UnsafeUnpin for AggregatedMetricsProcessor
impl UnwindSafe for AggregatedMetricsProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Instruments this type by attaching the given resource group token, returning a
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Instruments this type by attaching the current resource group, returning a
Tracked wrapper. Read more