Skip to main content

Function: toSiteSnapshotOverlay()

toSiteSnapshotOverlay(source?: Site | UnknownRecord | SiteSnapshotOverlay): SiteSnapshotOverlay | undefined

Defined in: shared/utils/siteSnapshots.ts:348

Builds a site-level overlay containing the monitoring flag and any valid monitor snapshots discovered in the source payload.

Parametersโ€‹

source?โ€‹

Site snapshot candidate or partial overlay.

Site | UnknownRecord | SiteSnapshotOverlay

Returnsโ€‹

SiteSnapshotOverlay | undefined

Structured overlay when at least one field is present; otherwise undefined.