eroha-agentapi / core /alert_manager.py
Yermek68's picture
Create core/alert_manager.py
407046d verified
raw
history blame contribute delete
404 Bytes
# core/alert_manager.py
from core.alerters import BaseAlerter
class AlertManager(BaseAlerter):
def __init__(self, alerters: list[BaseAlerter]):
self.alerters = alerters
def send(self, message: str):
for alerter in self.alerters:
try:
alerter.send(message)
except Exception as e:
print("[AlertManager] Alerter failed:", e)