Interface: DatabaseConnectionEventData
Defined in: shared/types/events.ts:91
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โ
Propertiesโ
timestampโ
timestamp:
number
Defined in: shared/types/events.ts:25
The time (in ms since epoch) when the event occurred.
Inherited fromโ
connectionId?โ
optional
connectionId:string
Defined in: shared/types/events.ts:93
Unique identifier for the connection
details?โ
optional
details:string
Defined in: shared/types/events.ts:95
Additional context about the connection state
stateโ
state:
"connected"
|"connecting"
|"disconnected"
|"error"
Defined in: shared/types/events.ts:97
Current connection state