Interface: MonitoringControlEventData
Defined in: shared/types/events.ts:745
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(),
};
Hierarchyโ
Extendsโ
Indexableโ
[
key:string]:unknown
[
key:number]:unknown
[
key:symbol]:unknown
Propertiesโ
timestampโ
readonlytimestamp:number
Defined in: shared/types/events.ts:110
The time (in milliseconds since epoch) when the event occurred.
Inherited fromโ
_meta?โ
readonlyoptional_meta?:EventMetadata
Defined in: shared/types/events.ts:112
Runtime metadata describing the emission context.
Inherited fromโ
_originalMeta?โ
readonlyoptional_originalMeta?:EventMetadata
Defined in: shared/types/events.ts:114
Preserves previously attached metadata when re-emitting events.
Inherited fromโ
BaseStateSyncEventData._originalMeta
activeMonitors?โ
readonlyoptionalactiveMonitors?:number
Defined in: shared/types/events.ts:749
Number of active monitors (for stopped events).
monitorCount?โ
readonlyoptionalmonitorCount?:number
Defined in: shared/types/events.ts:753
Number of monitors involved in the operation.
reason?โ
readonlyoptionalreason?:MonitoringControlReason
Defined in: shared/types/events.ts:760
Reason for stopping (for stopped events).
Remarksโ
Refer to MONITORING_CONTROL_REASON for the complete list.
siteCount?โ
readonlyoptionalsiteCount?:number
Defined in: shared/types/events.ts:764
Number of sites involved in the operation.
summary?โ
readonlyoptionalsummary?:MonitoringOperationSummary
Defined in: shared/types/events.ts:768
Aggregate metrics describing the monitoring lifecycle outcome.