Function: getSiteDisplayStatus()
getSiteDisplayStatus(
site:SiteForStatus):"unknown"|"degraded"|"down"|"up"|"paused"|"pending"|"mixed"
Defined in: shared/utils/siteStatus.ts:173
Determines the display status for a site, considering both operational and monitoring states.
Parametersโ
siteโ
The SiteForStatus object representing the site to evaluate.
Returnsโ
"unknown" | "degraded" | "down" | "up" | "paused" | "pending" | "mixed"
"unknown" if there are no monitors.
Remarksโ
This is the primary function for determining the status to display in the UI.
Exampleโ
const displayStatus = getSiteDisplayStatus(site);
// displayStatus: "up" | "down" | "pending" | "paused" | "mixed" | "unknown"