Function: mergeMonitorSnapshots()
mergeMonitorSnapshots(
canonicalMonitor:Monitor,overlaySource?:Monitor|Partial<Pick<Monitor,"responseTime"|"status"|"activeOperations"|"history"|"lastChecked"|"monitoring">>):Monitor
Defined in: shared/utils/siteSnapshots.ts:386
Merges canonical monitor data with an optional overlay, preserving canonical fields while allowing overlay overrides for mutable values (history, monitoring flags, etc.).
Parametersโ
canonicalMonitorโ
Monitor snapshot sourced from the cache or database.
overlaySource?โ
Optional overlay or alternate monitor snapshot to layer on top of the canonical data.
Monitor | Partial<Pick<Monitor, "responseTime" | "status" | "activeOperations" | "history" | "lastChecked" | "monitoring">>
Returnsโ
A monitor snapshot combining canonical data with overlay values.