Skip to main content

Function: buildStartMonitoringResponse()

buildStartMonitoringResponse(args: { identifier: string; monitorId?: string; success: boolean; }): { identifier: string; monitorId?: string; operation: "start-monitoring-response"; success: boolean; timestamp: number; }

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

Builds the payload for a start-monitoring response event.

Parameters

args

identifier

string

monitorId?

string

success

boolean

Returns

identifier

identifier: string

The unique identifier for the site.

monitorId?

optional monitorId: string

Optional monitor ID.

operation

operation: "start-monitoring-response"

The operation type (always "start-monitoring-response").

success

success: boolean

Whether the start operation was successful.

timestamp

timestamp: number

Unix timestamp (ms) when the response was sent.