Anypoint MQ Statistics API

1.0.0

Overview

Statistics
5 Operations
0 Skills
Messaging Category
Retrieve usage statistics for Anypoint MQ queues, exchanges, and environments.

Servers

  • https://anypoint.mulesoft.com/mq/stats/api/{version}
  • https://{region}.anypoint.mulesoft.com/mq/stats/api/{version}
  • https://{region}.platform.mulesoft.com/mq/stats/api/{version}

Authentication & Security

  • oauth_2_0 oauth2

    This API supports OAuth 2.0 for authenticating all API requests.

Get Organizations By Organizationid getOrganizationsByOrganizationid

GET

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
MQ Usage Metrics by date for an organization,
across all environments. <br>
You can use this API to see number of api requests made,
number of messages received, number of billable units that depends on
the number of messages delivered to subscribers of a queue, and
message byte count sent & received by an organization. <br>
If you are using connected app, "Read MQ Stats" scope is needed. <br>
For query timeframes and retention refer to MQ Stats documentation. <br>
Note: This API has a limit of 10 requests per minute.

Path Parameters

Query Parameters

startDate *: string(rfc2616)
endDate *: string(rfc2616)
period *: string

Response

json
Successful operation.
items: array
Array items
Examples
application/json
[ { "timestamp": "2018-11-08T00:00Z", "apiRequestCount": 0, "messageReceiptCount": 0, "billableUnitCount": 0, "messageByteCount": 0 } ]

Get Organizations By Organizationid Environments By Environmentid getOrganizationsByOrganizationidEnvironmentsByEnvironmentid

GET

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
MQ usage metrics by date for an organization, for a particular envrionment. <br>
You can use this API to see number of api requests made,
number of messages received, number of billable units that depends on
the number of messages delivered to subscribers of a queue, and
message byte count sent & received by an organization, filtered by an environment. <br>
If you are using connected app, "Read MQ Stats" scope is needed. <br>
For query timeframes and retention refer to MQ Stats documentation. <br>
Note: This API has a limit of 10 requests per minute.

Path Parameters

environmentId *: string

Query Parameters

startDate *: string(rfc2616)
endDate *: string(rfc2616)
period *: string

Response

json
Successful operation.
items: array
Array items
Examples
application/json
[ { "timestamp": "2018-11-08T00:00Z", "apiRequestCount": 0, "messageReceiptCount": 0, "billableUnitCount": 0, "messageByteCount": 0 } ]

Get Organizations By Organizationid Environments By Environmentid Regions By Regionid Queues getOrganizationsByOrganizationidEnvironmentsByEnvironmentidRegionsByRegionidQueues

GET

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
Realtime Stats for queues. <br>
Use this API to get current up-to-the-minute information about the number of visible and
in-flight messages in a queue. <br>
If you are using connected app, "View Destinations" or "Administer destinations" scope is needed. <br>
Note: This API has a limit of 100 requests per minute.

Path Parameters

environmentId *: string
regionId *: string
The region ID to identify the target resource.

Query Parameters

destinationIds *: string

Response

json
Successful operation.
items: array
Array items
Examples
application/json
[ { "destination": "myDestinationId", "messages": 100, "inflightMessages": 10 } ]

Get Organizations By Organizationid Environments By Environmentid Regions By Regionid Queues By Queueid getOrganizationsByOrganizationidEnvironmentsByEnvironmentidRegionsByRegionidQueuesByQueueid

GET

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
Historic stats for a queue. <br>
Use this API to get historic stats for a queue, up to 15 months old. <br>
This stats is not real time and expect up to 10 minutes latency before data is published. <br>
To keep the volume of data under control, historic data is retained at reduced levels of granularity. <br>
Second level data points are retained for 3 hours, one minute data points are available for past 15 days, five minute data points up to 63 days and one hour data points for up to 15 months. <br>
If you are using connected app, "View Destinations" or "Administer destinations" scope is needed. <br>
Note: This API has a limit of 100 requests per minute.

Path Parameters

environmentId *: string
regionId *: string
The region ID to identify the target resource.
queueId *: string

Query Parameters

startDate *: string(rfc2616)
endDate *: string(rfc2616)
period *: integer

Response

json
Successful operation.
destination: string
inflightMessages: array
messages: array
messagesVisible: array
messagesSent: array
messagesReceived: array
messagesAcked: array
Examples
application/json
{ "destination": "myDestination", "messages": [ { "date": "2017-07-26T00:00:00.000+0000", "value": 2126 }, { "date": "2017-07-27T00:00:00.000+0000", "value": 2126 }, { "date": "2017-07-28T00:00:00.000+0000", "value": 587 } ], "inflightMessages": [ { "date": "2017-07-26T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-27T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-28T00:00:00.000+0000", "value": 0 } ], "messagesVisible": [ { "date": "2017-07-26T00:00:00.000+0000", "value": 2126 }, { "date": "2017-07-27T00:00:00.000+0000", "value": 2126 }, { "date": "2017-07-28T00:00:00.000+0000", "value": 587 } ], "messagesSent": [ { "date": "2017-07-26T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-27T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-28T00:00:00.000+0000", "value": 0 } ], "messagesReceived": [ { "date": "2017-07-26T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-27T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-28T00:00:00.000+0000", "value": 0 } ], "messagesAcked": [ { "date": "2017-07-26T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-27T00:00:00.000+0000", "value": 0 }, { "date": "2017-07-28T00:00:00.000+0000", "value": 0 } ] }

Get Organizations By Organizationid Environments By Environmentid Regions By Regionid Exchanges By Exchangeid getOrganizationsByOrganizationidEnvironmentsByEnvironmentidRegionsByRegionidExchangesByExchangeid

GET

Try it out

Path Parameters
Query Parameters
Custom Query Parameters
Custom Headers
Historic Stats for Exchange. <br>
Use this API to get historic stats for an exchange, up to 15 months old. <br>
This stats is not real time and expect up to 10 minutes latency before data is published. <br>
To keep the volume of data under control, historic data is retained at reduced levels of granularity. <br>
Second level data points are retained for 3 hours, one minute data points are available for past 15 days, five minute data points up to 63 days and one hour data points for up to 15 months. <br>
If you are using connected app, "View Destinations" or "Administer destinations" scope is needed. <br>
Note: This API has a limit of 100 requests per minute.

Path Parameters

environmentId *: string
regionId *: string
The region ID to identify the target resource.
exchangeId *: string

Query Parameters

startDate *: string(rfc2616)
endDate *: string(rfc2616)
period *: integer

Response

json
Successful operation.
0: object
Examples
application/json
{ "destination": "myDestinationId", "messagesPublished": 100, "messagesDelivered": 10 }