Module dipstick::aggregate [] [src]

Maintain aggregated metrics for deferred reporting,

Structs

AggregateSink

A sink where to send metrics for aggregation. The parameters of aggregation may be set upon creation. Just clone() to use as a shared aggregator.

AggregateSource

Enumerate the metrics being aggregated and their scores.

Aggregator

Central aggregation structure. Since AggregateKeys themselves contain scores, the aggregator simply maintains a shared list of metrics for enumeration when used as source.

MetricScores

A metric that holds aggregated values. Some fields are kept public to ease publishing.

Enums

ScoresSnapshot

To-be-published snapshot of aggregated score values.

Traits

AsSource

Something that can be seen as a metric source.

Functions

aggregate

Aggregate metrics in memory. Depending on the type of metric, count, sum, minimum and maximum of values will be tracked. Needs to be connected to a publish to be useful.