Raxol.Core.Metrics.Aggregator (Raxol v0.5.0)
View SourceMetric aggregation system for the Raxol metrics.
This module handles:
- Metric aggregation by time windows
- Statistical calculations (mean, median, percentiles)
- Metric grouping and categorization
- Aggregation rules and policies
- Real-time aggregation updates
Summary
Functions
Adds a new aggregation rule.
Calculates an aggregation of values using the specified method.
Returns a specification to start this module under a supervisor.
Gets aggregated metrics for a specific rule.
Gets all aggregation rules.
Starts the metric aggregator.
Updates aggregation for a specific rule.
Types
@type aggregation_rule() :: %{ type: aggregation_type(), window: time_window(), metric_name: String.t(), tags: map(), group_by: [String.t()] }
@type aggregation_type() :: :sum | :mean | :median | :min | :max | :percentile
@type time_window() :: :minute | :hour | :day | :week | :month
Functions
Adds a new aggregation rule.
Calculates an aggregation of values using the specified method.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets aggregated metrics for a specific rule.
Gets all aggregation rules.
Starts the metric aggregator.
Updates aggregation for a specific rule.