Function: buildStopMonitoringResponse()
function buildStopMonitoringResponse(args: {
identifier: string;
monitorId?: string;
success: boolean;
}): {
identifier: string;
monitorId?: string;
operation: "stop-monitoring-response";
success: boolean;
timestamp: number;
};
Defined in: electron/coordinators/utils/monitoringResponses.ts:23
Builds the payload for a stop-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: "stop-monitoring-response";
The operation type (always "stop-monitoring-response").
success
success: boolean;
Whether the stop operation was successful.
timestamp
timestamp: number;
Unix timestamp (ms) when the response was sent.