Skip to main content
Version: 2.12

Connz

Request Schema

Request options for connz monitoring endpoint

accstring
Filter by account.
authboolean
Username indicates if user names should be included in the results.
cidinteger
Filter for this explicit client connection.
filter_subjectstring
Filter by subject interest
limitinteger
Limit is the maximum number of connections that should be returned by Connz().
mqtt_clientstring
Filter for this explicit client connection based on the MQTT client ID
offsetinteger
Offset is used for pagination. Connz() only returns connections starting at this offset from the global results.
sortstring
Sort indicates how the results will be sorted. Check SortOpt for possible values. Only the sort by connection ID (ByCid) is ascending, all others are descending.
Allowed values:cidstartsubspendingmsgs_tomsgs_frombytes_tobytes_fromlastidleuptimestopreasonrtt
statestring
Filter by connection state.
Allowed values:openclosedall
subscriptionsboolean
Subscriptions indicates if subscriptions should be included in the results.
subscriptions_detailboolean
SubscriptionsDetail indicates if subscription details should be included in the results
userstring
Filter by username.

Response Schema

Response from connz monitoring endpoint

connectionsobject[]required
limitintegerrequired
nowstring<date-time>required
num_connectionsintegerrequired
offsetintegerrequired
server_idstringrequired
totalintegerrequired