Skip to main content

Function: mergeSiteSnapshots()

mergeSiteSnapshots(canonicalSite: Site, overlaySource?: Site | SiteSnapshotOverlay): Site

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

Combines a canonical site snapshot with overlay details, including the set of monitor overlays provided by the source payload.

Parametersโ€‹

canonicalSiteโ€‹

Site

Primary site snapshot used as the base state.

overlaySource?โ€‹

Overlay or partial site snapshot providing updated monitoring flags or monitor snapshots.

Site | SiteSnapshotOverlay

Returnsโ€‹

Site

Site snapshot enriched with overlay data when available.