Skip to content

feat(webhooks): support incident severity in generic alerts and routing - #204

Merged
singret merged 2 commits into
FluidifyAI:mainfrom
NickvanTholen:feature/generic-incident-severity
Nov 9, 2026
Merged

singret merged 2 commits into
FluidifyAI:mainfrom
NickvanTholen:feature/generic-incident-severity

Conversation

@NickvanTholen

Copy link
Copy Markdown
Contributor

Summary

The generic webhook currently creates only critical or high incidents. Add an optional incident_severity field accepting critical, high, medium, and low, so monitoring tools can create incidents at any supported level independently of alert severity.

For example, {"title":"Connection unstable","severity":"info","incident_severity":"low"} creates a low-severity incident. Omitting the field preserves the current behavior: critical → critical, warning → high, info → no incident.

  • Routing suppress continues to prevent incident creation. Existing routing severity overrides also retain precedence.
  • Both grouped and ungrouped incident creation use the requested level. Retries and grouping links preserve the severity of existing incidents; resolved alerts do not create new incidents.
  • Update the JSON schema, generic webhook documentation, and integration setup example.
  • Add coverage for all four levels, omission, invalid values, suppression, routing precedence, grouping, and alert lifecycle behavior, including routing overrides across providers.

Routing severity_override also accepts all four incident levels for every provider (Prometheus, Grafana, CloudWatch, and generic). The routing UI exposes these levels, and existing warning → high and info → no incident behavior is preserved. The original monitoring severity remains stored, and escalation policy selection is unaffected. No database migration is needed.

Type of change

  • New feature
  • Documentation

Testing

  • Passed: go test ./internal/models/webhooks ./internal/services with REGEN_LIFECYCLE_TEST_DSN pointing to an isolated PostgreSQL 15 test database. This includes the PostgreSQL lifecycle tests.
  • Passed: TypeScript tsc --noEmit using Node 22 in a container.
  • Passed: git diff --check.
  • No manual test against a deployed instance.

Related issues

@mintlify

mintlify Bot commented Nov 4, 2026

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit c6bb7b0.

Approve preview

@singret
singret merged commit b45b025 into FluidifyAI:main Nov 9, 2026
5 checks passed
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.

2 participants