Local changes: Updated model training, removed debug instrumentation, and configuration improvements
This commit is contained in:
26
src/alerts/channels.py
Normal file
26
src/alerts/channels.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""Alert delivery channels."""
|
||||
|
||||
from typing import Optional
|
||||
from src.ui.utils.notifications import get_notification_manager
|
||||
from src.core.logger import get_logger
|
||||
|
||||
logger = get_logger(__name__)
|
||||
|
||||
|
||||
class AlertChannel:
|
||||
"""Manages alert delivery channels."""
|
||||
|
||||
def __init__(self):
|
||||
"""Initialize alert channel."""
|
||||
self.notifications = get_notification_manager()
|
||||
self.logger = get_logger(__name__)
|
||||
|
||||
def send(self, alert_type: str, message: str):
|
||||
"""Send alert through all channels.
|
||||
|
||||
Args:
|
||||
alert_type: Alert type
|
||||
message: Alert message
|
||||
"""
|
||||
self.notifications.notify_alert(alert_type, message)
|
||||
|
||||
Reference in New Issue
Block a user