Skip to content

fix(site24x7): resolve status and tags/labels not sent via webhook#6210

Open
DragonBot00 wants to merge 1 commit intokeephq:mainfrom
DragonBot00:fix/site24x7-webhook-status-tags
Open

fix(site24x7): resolve status and tags/labels not sent via webhook#6210
DragonBot00 wants to merge 1 commit intokeephq:mainfrom
DragonBot00:fix/site24x7-webhook-status-tags

Conversation

@DragonBot00
Copy link
Copy Markdown

What

Fix two bugs in the Site24x7 provider where webhook alerts weren't properly handling resolve status or tags/labels.

Why

Closes #6195 — Alert status was never being set. When Site24x7 sends a webhook with STATUS=UP (monitor recovered), the alert should resolve, but the provider only mapped status to severity, not to the AlertDto status field. Alerts stayed permanently in "Firing" state.

Closes #6196 — Tags and labels configured on Site24x7 monitors were being sent in the webhook payload (as TAGS and LABELS fields) but the provider's _format_alert method was ignoring them entirely.

How

  1. Added STATUS_MAP — Maps Site24x7 statuses to Keep's AlertStatus: DOWN/TROUBLE/CRITICALFIRING, UPRESOLVED
  2. Set status field in AlertDto — Previously only severity was set
  3. Extract TAGS and LABELS from webhook payload — Parses comma-separated strings into lists
  4. Added source=["site24x7"] — Was missing from the AlertDto

Testing

  • Existing tests pass
  • Manual test: Site24x7 webhook with STATUS=UP produces AlertStatus.RESOLVED
  • Manual test: Site24x7 webhook with STATUS=DOWN produces AlertStatus.FIRING
  • Manual test: Tags and labels from webhook appear in alert

Fix two bugs in the Site24x7 provider:

- keephq#6195: Alert status was not being set. When Site24x7 sends UP status,
  the alert should resolve (AlertStatus.RESOLVED), but the provider only
  set severity, not status. Added STATUS_MAP and set status field.

- keephq#6196: Tags and labels from the webhook payload were being ignored.
  Now extracts TAGS and LABELS fields from the webhook and includes
  them in the AlertDto.

Closes keephq#6195
Closes keephq#6196
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 5, 2026

@DragonBot00 is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 5, 2026
@dosubot dosubot bot added Bug Something isn't working Provider Providers related issues labels Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working Provider Providers related issues size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Site24 does not send tags and labels via webhook [🐛 Bug]: Site24 is not sending the Resolve status via Webhook

1 participant