Summary
evalview monitor currently supports Slack webhooks for regression alerts. Add Discord webhook support so teams using Discord get the same experience.
Implementation
New file: evalview/core/discord_notifier.py
Follow the same pattern as evalview/core/slack_notifier.py — the interface is identical, only the payload format differs.
Discord webhook payload format:
payload = {
"content": text, # or use "embeds" for richer formatting
}
Config:
monitor:
discord_webhook: https://discord.com/api/webhooks/...
CLI flag: --discord-webhook <url>
Env var fallback: EVALVIEW_DISCORD_WEBHOOK
Acceptance Criteria
Helpful Context
Summary
evalview monitorcurrently supports Slack webhooks for regression alerts. Add Discord webhook support so teams using Discord get the same experience.Implementation
New file:
evalview/core/discord_notifier.pyFollow the same pattern as
evalview/core/slack_notifier.py— the interface is identical, only the payload format differs.Discord webhook payload format:
Config:
CLI flag:
--discord-webhook <url>Env var fallback:
EVALVIEW_DISCORD_WEBHOOKAcceptance Criteria
DiscordNotifierclass withsend_regression_alert()andsend_recovery_alert()--discord-webhookmonitor.discord_webhooktests/test_monitor.pypattern)Helpful Context
evalview/core/slack_notifier.py— your code should mirror thisevalview/commands/monitor_cmd.py_resolve_slack_webhook()for the priority chain pattern