Open
Conversation
Implements a SolarWinds provider for Keep that supports both pull-based alert fetching via the SWIS REST API and webhook-based alert ingestion. - Authentication via username/password against SolarWinds Orion server - SWQL queries against Orion.AlertActive, AlertObjects, AlertConfigurations - Severity mapping (Informational, Warning, Critical, Notice) - Status mapping with acknowledgement support - Webhook format_alert for incoming SolarWinds HTTP POST actions - SSL verification toggle for self-signed certificates - Alert mock data for UI simulation - Unit tests for format_alert and datetime parsing Fixes keephq#3526
|
@janisag07 is attempting to deploy a commit to the KeepHQ Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Target branch is not in the allowed branches list. |
… pull-path tests
1. Webhook markdown template: doubled all closing braces so Python
.format() no longer crashes on the template string.
2. Severity 3 ('Serious') now maps to AlertSeverity.HIGH instead of LOW.
3. Added tests for _get_alerts and _parse_swis_alert (pull path)
with mocked SWIS query responses.
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 SolarWinds Orion provider for Keep, enabling alert ingestion from the SolarWinds monitoring platform via the SWIS (SolarWinds Information Service) REST API.
Features
Authentication
Alert Fetching (Pull)
Orion.AlertActivejoined withOrion.AlertObjectsandOrion.AlertConfigurationsvia SWQLWebhook Support (Push)
_format_alerthandles incoming webhook payloads from SolarWinds HTTP POST alert actionsAlertActiveID,AlertName,Severity) and generic Keep field namesScope Validation
Files Added
keep/providers/solarwinds_provider/solarwinds_provider.py— Main provider implementationkeep/providers/solarwinds_provider/alerts_mock.py— Mock alert data for UI simulationkeep/providers/solarwinds_provider/__init__.py— Package initkeep-ui/public/icons/solarwinds-icon.png— Provider icontests/test_solarwinds_provider.py— Unit tests for format_alert and datetime parsingTest Plan
_format_alertwith various webhook payloads (critical, warning, resolved, acknowledged)Fixes #3526
/claim #3526