Flapping alerts, a noise report and bulk actions with undo
Flapping: an alert raised three times within an hour is announced once as flapping, its further raise/clear messages are held until it has been calm for an hour, and one message then says whether it is still active. Event webhooks still hear everything. The state survives restarts. Alerts > Noise lists the alerts that keep coming back (7-180 days): how often, how long, most in an hour, and a hint on what helps. Bulk actions on Alerts (acknowledge, remove acknowledgement, silence), Servers (tag, silence, runs on) and Inventory (location and dates, print labels). Each reports what it left alone and why, and has an Undo on the toast. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
be6c5552bd
commit
73a06ebe63
35 files changed
+2546
-17
No files matched your search
@@ -157,6 +157,28 @@ export function describeChange(category: string, action: string, detail: Record<
|
||||
return { title: `Endpoint check changed${name ? `: ${name}` : ""}`, tone: "neutral", detail: [str(detail.kind), str(detail.target)].filter(Boolean).join(" · ") || null };
|
||||
case "endpoint/delete":
|
||||
return { title: `Endpoint check removed${name ? `: ${name}` : ""}`, tone: "neutral", detail: null };
|
||||
case "server/bulk_tag": {
|
||||
const n = typeof detail.changed === "number" ? detail.changed : null;
|
||||
return { title: detail.change === "undo" ? "A tag change on several servers was undone" : `${str(detail.change) === "remove_tag" ? "Tag taken off" : "Tag added to"} ${n ?? "several"} server${n === 1 ? "" : "s"}${str(detail.tag) ? `: ${str(detail.tag)}` : ""}`, tone: "neutral", detail: null };
|
||||
}
|
||||
case "server/bulk_runs_on":
|
||||
return { title: detail.change === "undo" ? "A change of which server others run on was undone" : `Which server ${typeof detail.changed === "number" ? detail.changed : "several"} run on was changed`, tone: "neutral", detail: null };
|
||||
case "maintenance/bulk_start":
|
||||
return { title: `Maintenance started on several at once${Array.isArray(detail.servers ?? detail.targets) ? `: ${((detail.servers ?? detail.targets) as unknown[]).slice(0, 4).join(", ")}` : ""}`, tone: "neutral", detail: typeof detail.reason === "string" ? detail.reason : null };
|
||||
case "maintenance/bulk_undo":
|
||||
return { title: "Maintenance started on several at once was undone", tone: "neutral", detail: null };
|
||||
case "alert/bulk_ack":
|
||||
return { title: `${typeof detail.changed === "number" ? detail.changed : "Several"} alert${detail.changed === 1 ? "" : "s"} acknowledged at once`, tone: "neutral", detail: typeof detail.note === "string" && detail.note ? detail.note : null };
|
||||
case "alert/bulk_unack":
|
||||
return { title: `Acknowledgement taken off ${typeof detail.changed === "number" ? detail.changed : "several"} alert${detail.changed === 1 ? "" : "s"}`, tone: "neutral", detail: null };
|
||||
case "alert/bulk_undo":
|
||||
return { title: "Acknowledging several alerts at once was undone", tone: "neutral", detail: null };
|
||||
case "inventory/bulk_change":
|
||||
return { title: detail.change === "undo" ? "A change to several pieces of hardware was undone" : `${typeof detail.changed === "number" ? detail.changed : "Several"} piece${detail.changed === 1 ? "" : "s"} of hardware changed at once`, tone: "neutral", detail: genericSummary(detail, ["ids", "changed", "change"]) };
|
||||
case "alert/flapping_started":
|
||||
return { title: `Alert began flapping${str(detail.message) ? `: ${str(detail.message)}` : ""}`, tone: "bad", detail: typeof detail.raises === "number" ? `raised ${detail.raises} times within an hour; its messages are held back` : null };
|
||||
case "alert/flapping_ended":
|
||||
return { title: `Alert settled${str(detail.message) ? `: ${str(detail.message)}` : ""}`, tone: detail.active === true ? "bad" : "good", detail: detail.active === true ? "steady for an hour, and still active" : "steady for an hour, and cleared" };
|
||||
case "report/send_monthly":
|
||||
return { title: `Monthly report sent${str(detail.month) ? ` (${str(detail.month)})` : ""}`, tone: "neutral", detail: null };
|
||||
case "patch_plan/create":
|
||||
|
||||
Reference in new issue
Block a user