Function: getSiteDisplayStatus()
getSiteDisplayStatus(
site
:SiteForStatus
):SiteStatus
Defined in: shared/utils/siteStatus.ts:134
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"
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"