This article shows how to reset the statistics of a specific ActiveMQ consumer using the REST API.
Reset ActiveMQ Consumer Statistics
POST /activemq/consumers/{nodeName}/{managerName}/{brokerName}/{consumerName}/reset-statistics
Resets the statistics for a specific ActiveMQ consumer.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/consumers/CMACTIVEMQ/Activemq-serve/DemoBroker/NOTSET%3A0%3A-1/reset-statistics' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate |
integer | Schedule job date (Unix Timestamp). |
jobTags |
string | Comma-separated list of job tags (used only with jobDate). |
validateAccessForUser |
string | Validate endpoint access for the user. |
Response Codes
201 – Consumer statistics reset successfully.
304 Not Modified – No changes were applied.
* – Error response, returns
ErrorPojo.
Example Response
201 – Statistics reset successfully
access-control-allow-credentials: true access-control-allow-origin: http://<hostname>:8019 content-length: 0 date: Mon, 29 Sep 2025 11:28:12 GMT server: Jetty(10.0.22) vary: Origin