Skip to content

ShardHealth

Defined in: packages/sharding/src/health.ts:19

Health snapshot for one shard.

optional disconnectedAt?: number

Defined in: packages/sharding/src/health.ts:30

When the socket last closed (epoch ms), if it ever did.


id: number

Defined in: packages/sharding/src/health.ts:20


ping: number

Defined in: packages/sharding/src/health.ts:24

Last heartbeat round-trip in ms, or -1 before the first ACK.


optional readyAt?: number

Defined in: packages/sharding/src/health.ts:28

When the shard last became ready (epoch ms), if it ever did.


state: GatewayState

Defined in: packages/sharding/src/health.ts:22

Gateway connection state.


status: ShardStatus

Defined in: packages/sharding/src/health.ts:26

Shard lifecycle, separate from the Gateway state.