Close an alert: dealt with or accepted, hidden until it gets worse
Close... on the Alerts page hides an alert with no end, with an optional reason that is also written on its incident. It opens again only if it gets more serious than when it was closed (said once) or the problem has been gone for half an hour; Open again brings it back at once. Built on the snooze table (kind, severity and note columns), so everything that holds back snoozed alerts holds back closed ones. Audit log, change log and /api/v1 alerts carry it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4ff0b44943
commit
a94899865e
24 files changed
+7982
-24
No files matched your search
@@ -1622,6 +1622,10 @@ export const alertSnoozes = sqliteTable(
|
||||
snoozedBy: text("snoozed_by").notNull(),
|
||||
snoozedAt: text("snoozed_at").notNull(), // ISO
|
||||
lastSeenAt: text("last_seen_at").notNull(), // ISO; the last time the alert was there
|
||||
// A closed alert is a snooze with no end: hidden until it gets worse (a higher severity than `severity`, which is what it was when it was closed) or has gone for half an hour.
|
||||
kind: text("kind").$type<"snooze" | "closed">().notNull().default("snooze"),
|
||||
severity: text("severity"), // for a closed one: critical, warning or info as it was
|
||||
note: text("note"), // for a closed one: why
|
||||
},
|
||||
(t) => [uniqueIndex("alert_snoozes_alert_idx").on(t.alertId)],
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user