Hanzo
OpenapiMq

Returns one consumer's configuration and delivery state.

Returns one consumer's configuration and delivery state.

GET /v1/mq/stream/{stream}/consumer/{name}

Addresshttps://api.hanzo.ai/v1/mq/stream/{stream}/consumer/{name}
MethodGET
Operationget_mq_stream_by_stream_consumer_by_name
AuthAuthorization: Bearer $HANZO_API_KEY

Returns one consumer's configuration and delivery state.

Request

2 fields.

FieldInTypeRequiredDescription
streampathstringyesStream is the stream name, from the path.
namepathstringyesName is the consumer name, from the path.

Response

StatusBodyMeaning
200Consumerok

200 body — 25 fields.

FieldInTypeAlwaysDescription
ack_floorbodySequences
ack_floor.consumer_seqbodyintegerConsumer is the consumer's own sequence.
ack_floor.stream_seqbodyintegerStream is the corresponding stream sequence.
configbodyDurable
config.ack_policybodystringAck is the acknowledgment policy: explicit (default), all, or none.
config.ack_waitbodystringAckWait is how long the broker waits for an ack before redelivering, e.g.
config.deliver_policybodystringDeliver is where delivery starts: all (default), last, new, by_start_sequence, by_start_time, or last_per_subject.
config.descriptionbodystringDescription says what this consumer is for.
config.durable_namebodystringName is the durable consumer name (alphanumeric, hyphens, underscores).
config.filter_subjectbodystringFilter delivers only messages on this org-relative subject (wildcards supported).
config.max_ack_pendingbodyintegerMaxAckPending caps unacknowledged messages in flight (default 1000).
config.max_deliverbodyintegerMaxDeliver caps delivery attempts per message; -1 (default) is unlimited.
config.opt_start_seqbodyintegerStartSeq is the starting sequence for deliver_policy by_start_sequence.
config.opt_start_timebodystring (date-time)StartTime is the starting instant for deliver_policy by_start_time.
config.replay_policybodystringReplay is the replay pacing: instant (default) or original.
createdbodystring (date-time)Created is when the consumer was created.
deliveredbodySequences
delivered.consumer_seqbodyintegerConsumer is the consumer's own sequence.
delivered.stream_seqbodyintegerStream is the corresponding stream sequence.
namebodystringName is the consumer name.
num_ack_pendingbodyintegerAckPending is the number of delivered, not yet acknowledged messages.
num_pendingbodyintegerPending is the number of messages yet to be delivered.
num_redeliveredbodyintegerRedelivered is the number of messages currently being redelivered.
num_waitingbodyintegerWaiting is the number of pull requests waiting for messages.
stream_namebodystringStream is the stream this consumer reads.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


MQ API · All Hanzo APIs · Interactive reference

How is this guide?

On this page