Skip to main content

Function: buildIsMonitoringActiveResponse()

buildIsMonitoringActiveResponse(args: { identifier: string; isActive: boolean; monitorId: string; }): { identifier: string; isActive: boolean; monitorId: string; operation: "is-monitoring-active-response"; timestamp: number; }

Defined in: electron/coordinators/utils/monitoringResponses.ts:57

Builds the payload for an is-monitoring-active response event.

Parameters

args

identifier

string

isActive

boolean

monitorId

string

Returns

identifier

identifier: string

The unique identifier for the site.

isActive

isActive: boolean

Whether monitoring is active.

monitorId

monitorId: string

The monitor ID.

operation

operation: "is-monitoring-active-response"

The operation type (always "is-monitoring-active-response").

timestamp

timestamp: number

Unix timestamp (ms) when the response was sent.