feat: add Sematext Cloud provider (webhook integration)#6224
Open
cairon-ab wants to merge 1 commit intokeephq:mainfrom
Open
feat: add Sematext Cloud provider (webhook integration)#6224cairon-ab wants to merge 1 commit intokeephq:mainfrom
cairon-ab wants to merge 1 commit intokeephq:mainfrom
Conversation
Add a Sematext Cloud provider that receives alerts via Sematext's Custom Notification Hook (webhook). No API credentials needed. Includes: - Provider implementation with alert formatting - Unit tests - Documentation with setup instructions Closes keephq#607 Signed-off-by: Cairon <cairon-ab@users.noreply.github.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
Adds a Sematext Cloud provider that receives alerts via Sematext's Custom Notification Hook (webhook).
Closes #607
What's included
Provider implementation (
keep/providers/sematext_provider/sematext_provider.py):backToNormalfor automatic resolutionpriorityfield (string or int)Tests (
tests/sematext_provider/test_sematext_provider.py):_format_alerttests covering firing, resolved, severity mapping, edge casesDocumentation (
docs/providers/documentation/sematext-provider.mdx):Sematext webhook payload
The provider expects the standard Sematext Custom Notification Hook format:
{ "backToNormal": "$backToNormal", "ruleType": "$ruleType", "description": "$description", "title": "$title", "applicationId": "$applicationId", "url": "$url", "createTimestamp": "$createTimestamp", "troubleshootUrl": "$troubleshootUrl" }Docs: https://sematext.com/docs/integration/alerts-webhooks-integration/
Signed-off-by: Cairon cairon-ab@users.noreply.github.com