Interface: DatabaseConnectionEventData
Defined in: shared/types/events.ts:392
Payload for database connection events.
Remarksโ
Used to track database connection state changes. Important for monitoring database availability and connection health.
Exampleโ
const event: DatabaseConnectionEventData = {
state: "connected",
connectionId: "conn_123",
};
Extendsโ
Indexableโ
[key: string]: unknown
[key: number]: unknown
[key: symbol]: unknown
Propertiesโ
timestampโ
readonlytimestamp:number
Defined in: shared/types/events.ts:109
The time (in milliseconds since epoch) when the event occurred.
Inherited fromโ
_meta?โ
readonlyoptional_meta:EventMetadata
Defined in: shared/types/events.ts:111
Runtime metadata describing the emission context.
Inherited fromโ
MonitoringControlEventData._meta
_originalMeta?โ
readonlyoptional_originalMeta:EventMetadata
Defined in: shared/types/events.ts:113
Preserves previously attached metadata when re-emitting events.
Inherited fromโ
MonitoringControlEventData._originalMeta
connectionId?โ
optionalconnectionId:string
Defined in: shared/types/events.ts:394
Unique identifier for the connection
details?โ
optionaldetails:string
Defined in: shared/types/events.ts:396
Additional context about the connection state
stateโ
state:
"error"|"connected"|"connecting"|"disconnected"
Defined in: shared/types/events.ts:398
Current connection state