Skip to content

Conversation

@bernatfp
Copy link
Member

Summary

Adds support for sending alerts to a generic webhook endpoint with a Grafana-compatible payload format. The webhook trigger follows the same pattern as existing notification channels and supports per-chain configuration and severity threshold filtering.

Test plan

  • Build completes successfully with no new errors
  • Configuration parsing includes webhook settings in default and per-chain alert config
  • Webhook alerts are sent with correct payload structure and status codes (2xx-3xx)

🤖 Generated with Claude Code

bernatfp and others added 2 commits January 19, 2026 11:45
Add support for sending alerts to a generic webhook endpoint with Grafana-compatible payload format. The webhook trigger follows the same pattern as existing notification channels (Slack, Discord, Telegram, PagerDuty) and supports per-chain configuration and severity threshold filtering.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Add TestNotifyWebhook to test webhook notification functionality
- Update createTestConfig helper to include WebhookConfig
- Update TestShouldNotify to include SentWHAlarms in test cache
- Update TestConfigAlert to verify webhook field population

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@bernatfp bernatfp requested a review from gluckzhang January 19, 2026 11:01
Copy link
Member

@gluckzhang gluckzhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested locally, it looks great!

@gluckzhang gluckzhang merged commit d37e636 into main Jan 20, 2026
2 checks passed
@gluckzhang gluckzhang deleted the bernatfp/generic-webhook branch January 20, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants