JetstreamConsumerHealth
@horizon-republic/nestjs-jetstream
@horizon-republic/nestjs-jetstream / JetstreamConsumerHealth
JetstreamConsumerHealth
Defined in: src/interfaces/health.interface.ts:11
Health of one consume flow (events, commands, broadcasts, ordered events or schedules).
Properties
consumer
consumer:
string|null
Defined in: src/interfaces/health.interface.ts:16
Durable consumer name; null for the ephemeral ordered consumer.
downForMs
downForMs:
number|null
Defined in: src/interfaces/health.interface.ts:20
How long the flow has not been live, in ms; null while it is.
failures
failures:
number
Defined in: src/interfaces/health.interface.ts:18
Consecutive failed attempts since the flow was last live.
healthy
healthy:
boolean
Defined in: src/interfaces/health.interface.ts:13
False once the flow has not been live for the stall threshold (30 seconds).
lastError
lastError:
string|null
Defined in: src/interfaces/health.interface.ts:22
Message of the latest failed attempt; null while live.
state
state:
JetstreamConsumerState
Defined in: src/interfaces/health.interface.ts:14