Queries performance data about an ApsaraDB for ClickHouse cluster.
Operation description
You can query the performance data of a specified cluster over a specific time range based on the performance metrics. The data is collected every 30 seconds.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
clickhouse:DescribeDBClusterPerformance | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The cluster ID. | cc-bp125e3uu94wo**** |
Key | string | No | The performance metrics that you want to query. Separate multiple performance metrics with commas (,). You can query up to five performance metrics at a time. You can query the following performance metrics: Note
The Key parameter is required.
| MEM_USAGE |
StartTime | string | Yes | The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in Coordinated Universal Time (UTC). | 2021-11-27T16:37Z |
EndTime | string | Yes | The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC. Note
The end time must be later than the start time. The interval cannot be more than 32 days.
| 2021-11-27T16:38Z |
Response parameters
Examples
Sample success responses
JSON
format
{
"EndTime": "2021-11-27T16:38Z",
"RequestId": "FE242962-6DA3-5FC8-9691-37B62A3210F7",
"StartTime": "2021-11-27T16:37Z",
"DBClusterId": "cc-bp125e3uu94wo****",
"Performances": [
{
"Key": "MEM_USAGE",
"Unit": "%",
"Series": [
{
"Values": [
{
"Point": [
"[ \"2021-11-26T16:39:00Z\",\"15.08\" ]"
]
}
],
"Name": "cc-bp125e3uu94wo1s0k16****"
}
],
"Name": "mem_usage"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-09-26 | API Description Update | View Change Details |