breached status

This commit is contained in:
Alex Holliday committed 2026-02-14 22:52:14 +00:00
1 parent b75c1a4fcb
commit 68db4b8701
7 files changed
+48 -61

No files matched your search

@@ -21,6 +21,8 @@ export const StatusLabel = ({ status, sx }: { status: MonitorStatus; sx?: SxProp
return t("pages.common.monitors.status.up");
} else if (status === "down") {
return t("pages.common.monitors.status.down");
} else if (status === "breached") {
return t("pages.common.monitors.status.breached");
} else if (status === "maintenance") {
return t("pages.common.monitors.status.maintenance");
} else if (status === "paused") {
+1
View File
@@ -18,6 +18,7 @@ export const MonitorStatuses = [
"paused",
"initializing",
"maintenance",
"breached",
] as const;
export type MonitorStatus = (typeof MonitorStatuses)[number];
+3
View File
@@ -23,6 +23,9 @@ export const getStatusPalette = (status: MonitorStatus): PaletteKey => {
if (status === "down") {
return "error";
}
if (status === "breached") {
return "error";
}
return "warning";
};
+1
View File
@@ -387,6 +387,7 @@
},
"status": {
"down": "down",
"breached": "breached",
"initializing": "initializing",
"maintenance": "maintenance",
"paused": "paused",