Function: toMonitorSnapshotOverlay()
toMonitorSnapshotOverlay(
source?:Monitor|UnknownRecord|Partial<Pick<Monitor,"responseTime"|"status"|"activeOperations"|"history"|"lastChecked"|"monitoring">>):Partial<Pick<Monitor,"responseTime"|"status"|"activeOperations"|"history"|"lastChecked"|"monitoring">> |undefined
Defined in: shared/utils/siteSnapshots.ts:284
Derives a normalized overlay describing the mutable portions of a monitor snapshot.
Parametersโ
source?โ
Monitor payload or monitor-like object to normalize.
Monitor | UnknownRecord | Partial<Pick<Monitor, "responseTime" | "status" | "activeOperations" | "history" | "lastChecked" | "monitoring">>
Returnsโ
Partial<Pick<Monitor, "responseTime" | "status" | "activeOperations" | "history" | "lastChecked" | "monitoring">> | undefined
Overlay populated with the validated subset of monitor fields, or
undefined when no serializable data is present.