Skip to main content

Function: getSiteStatusDescription()

getSiteStatusDescription(site: SiteForStatus): string

Defined in: shared/utils/siteStatus.ts:177

Generates a human-readable description of the site's current status.

Parametersโ€‹

siteโ€‹

SiteForStatus

The SiteForStatus object representing the site to describe.

Returnsโ€‹

string

A human-readable string describing the site's status.

Remarksโ€‹

The description summarizes the site's status and monitoring activity for display in the UI.

Exampleโ€‹

const desc = getSiteStatusDescription(site);
// desc: "All 3 monitors are up and running", "Mixed status (2/3 monitoring active)", etc.