Skip to main content

Interface: IMonitoringOperations

Defined in: electron/managers/SiteManager.types.ts:30

Defines the contract for monitoring operations that can be performed in coordination with site management.

Remarks​

This allows loose coupling between the SiteManager and MonitorManager while still enabling coordinated operations.

Properties​

setHistoryLimit​

setHistoryLimit: (limit: number) => Promise<void>;

Defined in: electron/managers/SiteManager.types.ts:36

Update the global history limit setting.

Parameters​

limit​

number

The new history limit value.

Returns​

Promise<void>


setupNewMonitors​

setupNewMonitors: (site: Site, newMonitorIds: string[]) => Promisable<void>;

Defined in: electron/managers/SiteManager.types.ts:44

Set up monitoring for newly created monitors.

Parameters​

site​

Site

The site containing new monitors.

newMonitorIds​

string[]

Array of new monitor IDs to set up.

Returns​

Promisable<void>


startMonitoringForSite​

startMonitoringForSite: (identifier: string, monitorId: string) =>
Promise<boolean>;

Defined in: electron/managers/SiteManager.types.ts:52

Start monitoring for a specific site and monitor.

Parameters​

identifier​

string

The site identifier.

monitorId​

string

The monitor ID to start monitoring for.

Returns​

Promise<boolean>


stopMonitoringForSite​

stopMonitoringForSite: (identifier: string, monitorId: string) =>
Promise<boolean>;

Defined in: electron/managers/SiteManager.types.ts:63

Stop monitoring for a specific site and monitor.

Parameters​

identifier​

string

The site identifier.

monitorId​

string

The monitor ID to stop monitoring for.

Returns​

Promise<boolean>