core.alerting_system
Alerting and Notification System
Comprehensive alerting system for the MCP Academic RAG Server providing multi-channel notifications, escalation policies, and alert correlation.
Classes
|
Alert correlation configuration |
|
Engine for correlating and deduplicating alerts |
|
Main alerting system coordinator |
|
Console notification provider |
|
Email notification provider |
|
Alert escalation levels |
|
Alert escalation policy configuration |
|
Log-based notification provider |
|
Available notification channels |
|
Configuration for a notification channel |
|
Abstract base class for notification providers |
|
Slack notification provider using webhooks |
|
Webhook notification provider |
- class core.alerting_system.NotificationChannel(value)[source]
Bases:
EnumAvailable notification channels
- EMAIL = 'email'
- WEBHOOK = 'webhook'
- SLACK = 'slack'
- TEAMS = 'teams'
- DISCORD = 'discord'
- LOG = 'log'
- CONSOLE = 'console'
- class core.alerting_system.EscalationLevel(value)[source]
Bases:
EnumAlert escalation levels
- IMMEDIATE = 'immediate'
- AFTER_5_MIN = 'after_5_min'
- AFTER_15_MIN = 'after_15_min'
- AFTER_1_HOUR = 'after_1_hour'
- class core.alerting_system.NotificationConfig(channel, enabled=True, config=None)[source]
Bases:
objectConfiguration for a notification channel
- channel: NotificationChannel
- __init__(channel, enabled=True, config=None)
- class core.alerting_system.EscalationPolicy(name, levels, enabled=True)[source]
Bases:
objectAlert escalation policy configuration
- get_escalation_for_duration(duration_minutes)[source]
Get escalation configuration for alert duration
- __init__(name, levels, enabled=True)
- class core.alerting_system.AlertCorrelation(correlation_window_minutes=5, max_similar_alerts=10, correlation_fields=None)[source]
Bases:
objectAlert correlation configuration
- __init__(correlation_window_minutes=5, max_similar_alerts=10, correlation_fields=None)
- class core.alerting_system.NotificationProvider(config)[source]
Bases:
ABCAbstract base class for notification providers
- class core.alerting_system.EmailNotificationProvider(config)[source]
Bases:
NotificationProviderEmail notification provider
- class core.alerting_system.WebhookNotificationProvider(config)[source]
Bases:
NotificationProviderWebhook notification provider
- class core.alerting_system.SlackNotificationProvider(config)[source]
Bases:
WebhookNotificationProviderSlack notification provider using webhooks
- class core.alerting_system.LogNotificationProvider(config)[source]
Bases:
NotificationProviderLog-based notification provider
- class core.alerting_system.ConsoleNotificationProvider(config)[source]
Bases:
NotificationProviderConsole notification provider
- class core.alerting_system.AlertCorrelationEngine(config)[source]
Bases:
objectEngine for correlating and deduplicating alerts
- class core.alerting_system.AlertingSystem(config=None)[source]
Bases:
objectMain alerting system coordinator
- providers: Dict[NotificationChannel, NotificationProvider]
- notification_configs: List[NotificationConfig]
- escalation_policies: Dict[str, EscalationPolicy]
- correlation_engine: AlertCorrelationEngine | None