feat: support multiple webhook targets via alert_webhook_url array#50
Merged
Conversation
alert_webhook_url now accepts a string or an array of strings. All configured URLs receive the same payload when the failure threshold is exceeded. A failure posting to one URL is logged and skipped without blocking the remaining targets. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
alert_webhook_urlnow accepts a string (existing behavior, unchanged) or an array of URL stringsRails.loggerand skipped without blocking the remaining targetsImplementation
All changes are in
AlertWebhook:webhook_urlsprivate method normalizes the config value withArray(...).flatten.compact.select(&:present?)configured?checkswebhook_urls.any?instead of.present?callcaptures the URL list before spawning the thread, then iterates in the thread3 new specs: posts to all URLs, continues after one failure, treats an empty array as unconfigured.
Test plan
🤖 Generated with Claude Code