This article shows how to reset statistics on a specific ActiveMQ connection using the REST API.
Reset Statistics on ActiveMQ Connection
POST /activemq/connections/{nodeName}/{managerName}/{brokerName}/{connectionName}/reset-statistics
Resets all runtime statistics for a specified ActiveMQ connection.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/connections/CMACTIVEMQ/Cloudactmq/JKMessageBus/DurableClient/reset-statistics' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4=' \ -d ''
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate |
int64 | Schedule job date (Unix Timestamp). |
jobTags |
string | A comma-separated list of job tags (used only with jobDate). |
validateAccessForUser |
string | Validate endpoint access for user. |
Response Codes
201 – Object created – Statistics reset successfully.
304 – Action failed – Operation could not be completed.
* – Error response – Returns
ErrorPojo.
Response Header
201 Created – Object created – Statistics reset successfully.
access-control-allow-credentials: true access-control-allow-origin: http://<hostname>:8019 content-length: 0 date: Fri,26 Sep 2025 13:32:32 GMT server: Jetty(10.0.22) vary: Origin