Expand description
Alert Rules and Routing
Defines alert rules for kernel health and performance monitoring.
§Features
- Alert rule definition with conditions
- Severity levels and routing
- SLO violation alerts
- Integration with external alerting systems
§Example
ⓘ
use rustkernel_core::observability::alerting::{AlertRule, AlertSeverity, AlertConfig};
let config = AlertConfig::default()
.add_rule(
AlertRule::new("high_latency")
.condition("avg_latency_ms > 100")
.severity(AlertSeverity::Warning)
.for_duration(Duration::from_secs(60))
);Structs§
- Alert
- An active alert instance
- Alert
Config - Alert configuration
- Alert
Receiver - Alert receiver
- Alert
Route - Alert route
- Alert
Routing - Alert routing configuration
- Alert
Rule - Alert rule definition
Enums§
- Alert
Severity - Alert severity levels
- Alert
State - Alert state
- Receiver
Type - Receiver type