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
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 |
---|