Skip to main content

Interface: DatabaseConnectionEventData

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

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",
};

Hierarchyโ€‹

View Summary

Extendsโ€‹

Indexableโ€‹

[key: string]: unknown
[key: number]: unknown
[key: symbol]: unknown

Propertiesโ€‹

timestampโ€‹

readonly timestamp: number;

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

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:106

Runtime metadata describing the emission context.

Inherited fromโ€‹

BaseStateSyncEventData._meta


_originalMeta?โ€‹

readonly optional _originalMeta?: EventMetadata;

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

Preserves previously attached metadata when re-emitting events.

Inherited fromโ€‹

BaseStateSyncEventData._originalMeta


connectionId?โ€‹

optional connectionId?: string;

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

Unique identifier for the connection


details?โ€‹

optional details?: string;

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

Additional context about the connection state


stateโ€‹

state: "error" | "connected" | "connecting" | "disconnected";

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

Current connection state