Service-level targets with error budgets, and quarterly and annual reports

Monitoring -> Service levels: a target (99.9 %) on an endpoint check, a server or an
integration, measured over calendar months. Shows the figure, downtime used, the
error budget left, and how the last six months went. 80 % of the budget used is a
warning and an overspent budget a critical alert. Endpoints are measured day by day,
servers and integrations to the minute from the audit log.

The report page gains Quarter and Year (same figures, with a Service levels section),
and two settings send the quarterly and annual report after the month that ends them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-21 22:20:07 +02:00
1 parent 31044b2b64
commit 3b31b16796
31 files changed
+7706 -61

No files matched your search

+7
View File
@@ -41,6 +41,7 @@ const KIND_OF_CATEGORY: Record<string, ChangeKind> = {
metrics_token: "settings",
api_token: "settings",
alert_rule: "alerts",
service_level: "endpoints",
todo: "other",
note: "servers",
webhook: "settings",
@@ -181,6 +182,12 @@ export function describeChange(category: string, action: string, detail: Record<
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 "webhook/retry":
return { title: `A webhook message was sent again${name ? `: ${name}` : str(detail.label) ? `: ${str(detail.label)}` : ""}`, tone: detail.ok === false ? "bad" : "neutral", detail: str(detail.event) };
case "service_level/create":
return { title: `Service-level target set${name ? `: ${name}` : ""}`, tone: "neutral", detail: typeof detail.target === "number" ? `${detail.target}%` : null };
case "service_level/update":
return { title: `Service-level target changed${name ? `: ${name}` : ""}`, tone: "neutral", detail: typeof detail.target === "number" ? `${typeof detail.targetFrom === "number" ? `${detail.targetFrom}% → ` : ""}${detail.target}%` : null };
case "service_level/delete":
return { title: `Service-level target removed${name ? `: ${name}` : ""}`, tone: "neutral", detail: null };
case "alert_rule/create":
return { title: `Alert rule added${name ? `: ${name}` : ""}`, tone: "neutral", detail: genericSummary(detail) };
case "alert_rule/update":