Say who was told in an alert's timeline

Notifications are written down with the alerts they were about, and the
incident timeline lists each one: which channels took it, which refused and
what they said, or why it was held or not sent. New alerts, recovery notices,
reminders and escalations are all covered.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-10 21:14:58 +01:00
1 parent f546971000
commit 461219844b
13 files changed
+9443 -18

No files matched your search

+1
View File
@@ -1692,6 +1692,7 @@ export const notificationLog = sqliteTable(
status: text("status").notNull(), // sent | partly | failed | none (no channel to send it to) | held (quiet hours or away) | muted (a routing rule says nobody)
results: text("results").notNull().default("[]"), // JSON: [{ channel, ok, error }]
note: text("note"), // why it was held or muted
alertKeys: text("alert_keys"), // JSON string[]: the alerts it was about (their keys), so an alert's timeline can say who was told; null: not about any
resentOf: integer("resent_of"), // the entry it is a resend of
},
(t) => [index("notification_log_at_idx").on(t.at)],