feat(alerting): add quiet hours to alert groups #108

Merged
Sebi merged 2 commits from feat/alert-group-quiet-hours into main 2026-11-22 19:17:01 +00:00
Owner

Lets organizations configure recurring quiet-hours windows on alert groups to suppress notifications during chosen times while incidents continue to be recorded.

  • Adds alert_groups.quiet_hours (migration 00040) storing normalized recurring time windows (start, end, time_zone, optional weekdays). Supports overnight windows (start > end), full-day windows (00:00–00:00 or 24:00), and DST-aware IANA time zones.
  • Evaluates quiet hours per alert group at incident transition time: incidents still open and resolve normally, muted groups suppress notifications, and active groups assigned to the same monitor still notify their channels once.
  • Adds quiet-hours management to GET/POST/PUT /api/v1/org/alert-groups (omitting quiet_hours on PUT preserves existing windows; [] clears them), organization GDPR exports, OpenAPI docs, console UI (Settings → Notifications), and English/German translations.

Validation: full local Go test suite, quiet-hours unit & integration tests, migration tests, Chromium form tests (forms.html and webhook.html), gofmt, go vet, and frontend build all passed.

Lets organizations configure recurring quiet-hours windows on alert groups to suppress notifications during chosen times while incidents continue to be recorded. - Adds `alert_groups.quiet_hours` (migration 00040) storing normalized recurring time windows (`start`, `end`, `time_zone`, optional `weekdays`). Supports overnight windows (`start > end`), full-day windows (`00:00`–`00:00` or `24:00`), and DST-aware IANA time zones. - Evaluates quiet hours per alert group at incident transition time: incidents still open and resolve normally, muted groups suppress notifications, and active groups assigned to the same monitor still notify their channels once. - Adds quiet-hours management to `GET/POST/PUT /api/v1/org/alert-groups` (omitting `quiet_hours` on `PUT` preserves existing windows; `[]` clears them), organization GDPR exports, OpenAPI docs, console UI (`Settings → Notifications`), and English/German translations. Validation: full local Go test suite, quiet-hours unit & integration tests, migration tests, Chromium form tests (`forms.html` and `webhook.html`), `gofmt`, `go vet`, and frontend build all passed.
Sebi added 1 commit 2026-11-22 18:18:38 +00:00
feat(alerting): add quiet hours to alert groups
ci / image (pull_request) Successful in 6m35s
ci / test (pull_request) Successful in 7m56s
ci / build (pull_request) Successful in 8m24s
ci / lint (pull_request) Successful in 11m55s
ee3769f578
Sebi added 1 commit 2026-11-22 18:43:27 +00:00
style(alerting): align quiet hours code and tests with Go style guide
ci / image (pull_request) Successful in 4m28s
ci / build (pull_request) Successful in 8m16s
ci / lint (pull_request) Successful in 12m11s
ci / test (pull_request) Successful in 15m40s
1c31003baf
Sebi merged commit cdbaf5c8ee into main 2026-11-22 19:17:01 +00:00
Sebi deleted branch feat/alert-group-quiet-hours 2026-11-22 19:17:04 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#108