Interface: SiteMonitoringDependencies
Defined in: src/stores/sites/useSiteMonitoring.ts:58
External dependencies required for monitoring actions.
Propertiesโ
applyStatusUpdate()?โ
optionalapplyStatusUpdate: (sites:Site[],update:StatusUpdateSnapshotPayload) =>Site[]
Defined in: src/stores/sites/useSiteMonitoring.ts:66
Applies status update snapshots to the current sites collection.
Parametersโ
sitesโ
Site[]
updateโ
Returnsโ
Site[]
Remarksโ
Defaults to applyStatusUpdateSnapshot. Override for testing to inspect inputs without mutating state.
clearOptimisticMonitoringLocks()?โ
optionalclearOptimisticMonitoringLocks: (siteIdentifier:string,monitorIds: readonlystring[]) =>void
Defined in: src/stores/sites/useSiteMonitoring.ts:71
Clears optimistic monitoring locks for the provided monitors.
Parametersโ
siteIdentifierโ
string
monitorIdsโ
readonly string[]
Returnsโ
void
getOptimisticMonitoringLocks()?โ
optionalgetOptimisticMonitoringLocks: () =>Partial<Record<string,OptimisticMonitoringLock>>
Defined in: src/stores/sites/useSiteMonitoring.ts:76
Snapshot accessor for current optimistic monitoring locks.
Returnsโ
Partial<Record<string, OptimisticMonitoringLock>>
getSites()โ
getSites: () =>
Site[]
Defined in: src/stores/sites/useSiteMonitoring.ts:80
Reads current sites from the store for optimistic updates
Returnsโ
Site[]
monitoringServiceโ
monitoringService:
Pick<typeofMonitoringService,"checkSiteNow"|"startMonitoringForMonitor"|"startMonitoringForSite"|"stopMonitoringForMonitor"|"stopMonitoringForSite">
Defined in: src/stores/sites/useSiteMonitoring.ts:82
Monitoring service abstraction
registerMonitoringLock()?โ
optionalregisterMonitoringLock: (siteIdentifier:string,monitorIds: readonlystring[],monitoring:boolean,durationMs:number) =>void
Defined in: src/stores/sites/useSiteMonitoring.ts:91
Registers optimistic monitoring locks for the provided monitors.
Parametersโ
siteIdentifierโ
string
monitorIdsโ
readonly string[]
monitoringโ
boolean
durationMsโ
number
Returnsโ
void
setSites()โ
setSites: (
sites:Site[]) =>void
Defined in: src/stores/sites/useSiteMonitoring.ts:98
Replaces the sites collection in the store
Parametersโ
sitesโ
Site[]
Returnsโ
void