Skip to main content

Function: buildRestartMonitoringResponse()

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

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

Builds the payload for a restart-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: "restart-monitoring-response";

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

success

success: boolean;

Whether the restart was successful.

timestamp

timestamp: number;

Unix timestamp (ms) when the response was sent.