Raxol.Core.Metrics.AlertManager (Raxol v0.5.0)
View SourceAlert management system for the Raxol metrics.
This module handles:
- Alert rule definition and management
- Metric threshold monitoring
- Alert state tracking
- Alert notifications
- Alert history
Summary
Functions
Acknowledges an alert.
Adds a new alert rule.
Returns a specification to start this module under a supervisor.
Gets the alert history.
Gets the current alert state for a rule.
Gets all alert rules.
Starts the alert manager.
Types
@type alert_condition() :: :above | :below | :equals | :not_equals
@type alert_rule() :: %{ name: String.t(), description: String.t(), metric_name: String.t(), condition: alert_condition(), threshold: number(), severity: alert_severity(), tags: map(), group_by: [String.t()], cooldown: pos_integer(), notification_channels: [String.t()] }
@type alert_severity() :: :info | :warning | :error | :critical
Functions
Acknowledges an alert.
Adds a new alert rule.
Returns a specification to start this module under a supervisor.
See Supervisor
.
Gets the alert history.
Gets the current alert state for a rule.
Gets all alert rules.
Starts the alert manager.