mirror of
https://github.com/fosrl/pangolin.git
synced 2026-06-04 23:06:32 +00:00
Cap degraded in the mail
This commit is contained in:
@@ -117,11 +117,11 @@ function getEventMeta(eventType: AlertEventType): {
|
|||||||
};
|
};
|
||||||
case "resource_degraded":
|
case "resource_degraded":
|
||||||
return {
|
return {
|
||||||
heading: "Resource Unhealthy",
|
heading: "Resource Degraded",
|
||||||
previewText: "A resource in your organization is not healthy.",
|
previewText: "A resource in your organization is degraded.",
|
||||||
summary:
|
summary:
|
||||||
"A resource in your organization is currently unhealthy.",
|
"A resource in your organization is currently degraded.",
|
||||||
statusLabel: "Unhealthy",
|
statusLabel: "Degraded",
|
||||||
statusColor: "#dc2626"
|
statusColor: "#dc2626"
|
||||||
};
|
};
|
||||||
case "resource_toggle":
|
case "resource_toggle":
|
||||||
@@ -158,6 +158,8 @@ function resolveToggleStatus(status: unknown): {
|
|||||||
return { label: "Healthy", color: "#16a34a" };
|
return { label: "Healthy", color: "#16a34a" };
|
||||||
case "unhealthy":
|
case "unhealthy":
|
||||||
return { label: "Unhealthy", color: "#dc2626" };
|
return { label: "Unhealthy", color: "#dc2626" };
|
||||||
|
case "degraded":
|
||||||
|
return { label: "Degraded", color: "#dc2626" };
|
||||||
default:
|
default:
|
||||||
return { label: String(status ?? "Unknown"), color: "#f59e0b" };
|
return { label: String(status ?? "Unknown"), color: "#f59e0b" };
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user