Alert kinds are persisted keys with no registry #2059

Open
opened 2026-11-18 23:10:31 +00:00 by sam · 0 comments
Owner

Eleven alert kinds, three severities and three states are Go constants in internal/domain/alert/alert.go. The kind is part of the dedup key and the comment records that renaming one orphans its open alerts, but there is no registry an operator, the dashboard or the notify policy can read.

Today every raiser is in-tree, so the list can't be arbitrary; the cost is that adding or retiring a kind is invisible outside the source.

Done when: the alert vocabulary is declared where the dashboard and the notify policy can read it, and a retired kind's open alerts are accounted for.

Eleven alert kinds, three severities and three states are Go constants in internal/domain/alert/alert.go. The kind is part of the dedup key and the comment records that renaming one orphans its open alerts, but there is no registry an operator, the dashboard or the notify policy can read. Today every raiser is in-tree, so the list can't be arbitrary; the cost is that adding or retiring a kind is invisible outside the source. Done when: the alert vocabulary is declared where the dashboard and the notify policy can read it, and a retired kind's open alerts are accounted for.
sam added the chorelow labels 2026-11-18 23:10:31 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#2059