Skip to main content

Interface: MonitoringControlEventData

Defined in: shared/types/events.ts:616

Payload for monitoring control events (global monitoring start/stop).

Remarksโ€‹

Used to signal global monitoring state changes, such as starting or stopping all monitors.

  • monitorCount: Number of monitors involved in the operation.
  • summary: Optional aggregate metrics describing the lifecycle result.
  • reason: Reason for stopping (for stopped events).
  • siteCount: Number of sites involved in the operation.
  • timestamp: The time (in ms since epoch) when the event occurred.

Exampleโ€‹

const event: MonitoringControlEventData = {
reason: "user",
activeMonitors: 0,
siteCount: 3,
timestamp: Date.now(),
};

Extendsโ€‹

Propertiesโ€‹

timestampโ€‹

readonly timestamp: number

Defined in: shared/types/events.ts:74

The time (in milliseconds since epoch) when the event occurred.

Inherited fromโ€‹

BaseEventData.timestamp


_meta?โ€‹

readonly optional _meta: EventMetadata

Defined in: shared/types/events.ts:76

Runtime metadata describing the emission context.

Inherited fromโ€‹

BaseEventData._meta


_originalMeta?โ€‹

readonly optional _originalMeta: EventMetadata

Defined in: shared/types/events.ts:78

Preserves previously attached metadata when re-emitting events.

Inherited fromโ€‹

BaseEventData._originalMeta


activeMonitors?โ€‹

readonly optional activeMonitors: number

Defined in: shared/types/events.ts:620

Number of active monitors (for stopped events).


monitorCount?โ€‹

readonly optional monitorCount: number

Defined in: shared/types/events.ts:624

Number of monitors involved in the operation.


reason?โ€‹

readonly optional reason: MonitoringControlReason

Defined in: shared/types/events.ts:631

Reason for stopping (for stopped events).

Remarksโ€‹

Refer to MONITORING_CONTROL_REASON for the complete list.


siteCount?โ€‹

readonly optional siteCount: number

Defined in: shared/types/events.ts:635

Number of sites involved in the operation.


summary?โ€‹

readonly optional summary: MonitoringOperationSummary

Defined in: shared/types/events.ts:639

Aggregate metrics describing the monitoring lifecycle outcome.