Skip to main content
Version: 2.15 (latest)

Consumer Action

Consumer lifecycle events.

Subscription Subject

$JS.EVENT.ADVISORY.CONSUMER.CREATED.{stream}.{consumer}
$JS.EVENT.ADVISORY.CONSUMER.DELETED.{stream}.{consumer}

Where:

  • {stream} is the stream name
  • {consumer} is the consumer name

Event Schema

An Advisory sent when a Consumer is created or deleted

typeconst: "io.nats.jetstream.advisory.v1.consumer_action"required
idstringrequired
Unique correlation ID for this event
timestampstringrequired
The time this event was created in RFC3339 format
actionstringrequired
The action that the event describes
Allowed values:createdelete
streamstringrequired
The name of the Stream that the Consumer belongs to
consumerstring
The name of the Consumer that's acted on
domainstring
The domain of the JetStream server the event is from