Skip to content

Add Discord webhook support to evalview monitor #80

@hidai25

Description

@hidai25

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

  • DiscordNotifier class with send_regression_alert() and send_recovery_alert()
  • CLI flag --discord-webhook
  • Config yaml support under monitor.discord_webhook
  • Environment variable fallback
  • Tests (follow tests/test_monitor.py pattern)

Helpful Context

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions