Domain name for API request: tdmq.intl.tencentcloudapi.com.
Used to obtain the RocketMQ metric sorting list, such as sorting topics under a cluster instance by the most occupied storage space.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: DescribeRocketMQTopUsages. |
| Version | Yes | String | Common Params. The value used for this API: 2020-02-17. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| ClusterId | Yes | String | Cluster ID |
| MetricName | Yes | String | Metric name. support the following:. consumeLag. specifies the consumer group backlog count. deadLetterCount. specifies the dead letter count. Topic production rate. Topic consumption rate. specifies the Topic consumption rate. topicStorageSize. specifies the Topic storage space. Topic API call count. |
| Limit | Yes | Integer | Sort quantity. The maximum value is 20. |
| Parameter Name | Type | Description |
|---|---|---|
| Values | Array of Integer | Metric Value List |
| Dimensions | Array of DimensionInstance | Dimension combinations corresponding to metric value. this API has the following dimensions:. tenant,namespace,group,topic |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: tdmq.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRocketMQTopUsages
<Common request parameters>
{
"ClusterId": "rocketmq-abc",
"MetricName": "consumeLag",
"Limit": 1
}{
"Response": {
"Dimensions": [
{
"Dimensions": [
{
"Name": "tenant",
"Value": "rocketmq-vvqb9emabapx"
},
{
"Name": "namespace",
"Value": "test_ns"
},
{
"Name": "topic",
"Value": "test_topic"
}
]
},
{
"Dimensions": [
{
"Name": "tenant",
"Value": "rocketmq-vvqb9emabapx"
},
{
"Name": "namespace",
"Value": "test_ns"
},
{
"Name": "topic",
"Value": "test_topic2"
}
]
}
],
"RequestId": "f0288e86-ee7d-4a73-a788-81ca6680b06c",
"Values": [
309,
0
]
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| ResourceNotFound.Cluster | The cluster does not exist. |
Feedback