feat(telegram): enforce canonical product routing
This commit is contained in:
@@ -389,7 +389,12 @@ class NemotronRunbookGenerator:
|
||||
try:
|
||||
from src.services.telegram_gateway import get_telegram_gateway
|
||||
tg = get_telegram_gateway()
|
||||
await tg.send_text(format_runbook_review_card(incident, entry_id, content_preview))
|
||||
await tg.send_text(
|
||||
format_runbook_review_card(incident, entry_id, content_preview),
|
||||
product_id="awoooi",
|
||||
signal_family="incident_lifecycle",
|
||||
severity="P1",
|
||||
)
|
||||
except Exception as e:
|
||||
logger.warning("runbook_review_card_failed", error=str(e))
|
||||
|
||||
@@ -406,7 +411,10 @@ class NemotronRunbookGenerator:
|
||||
f"⚠️ <b>已記錄失敗案例</b>\n"
|
||||
f"Incident: <code>{incident.incident_id}</code>\n"
|
||||
f"標題: {title}\n\n"
|
||||
f"相同症狀的後續告警將阻斷自動修復,要求人工介入。"
|
||||
f"相同症狀的後續告警將阻斷自動修復,要求人工介入。",
|
||||
product_id="awoooi",
|
||||
signal_family="incident_lifecycle",
|
||||
severity="P1",
|
||||
)
|
||||
except Exception as e:
|
||||
logger.warning("anti_pattern_notification_failed", error=str(e))
|
||||
|
||||
Reference in New Issue
Block a user