DescribeAIDBClusterPerformance
Retrieves the performance metrics of an AI container.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeAIDBClusterPerformance |
get |
*AICluster
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the describedbclusters operation to query the details of all clusters under your account, such as the cluster ID. |
pc-**************** |
| Key |
string |
Yes |
The name of the monitoring metric. |
PolarDBAIModelCall |
| StartTime |
string |
Yes |
The start time of the query. Specify the time in the |
2025-09-17T02:18:00Z |
| EndTime |
string |
Yes |
The end time of the query. The end time must be later than the start time. Specify the time in the |
2025-09-23T01:01:00Z |
| Interval |
string |
No |
Specifies the time granularity of the data to be retrieved. Valid values: 60 (minutes) and 3600 (hours).
|
60 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| PerformanceKeys |
array<object> |
The details of the instance performance metrics. |
|
|
array<object> |
The list of cluster performance data. |
||
| Measurement |
string |
The performance metrics. |
PolarDBAIModelCall |
| MetricName |
string |
The specific measurement name of the performance metrics. |
model_input_amount |
| Points |
array<object> |
The array of performance data. |
|
|
object |
The array of performance data. |
||
| Value |
string |
The value of the monitoring metric. |
42.38 |
| Timestamp |
integer |
The specific time point of the monitoring metric. The format is a UNIX timestamp, and the unit is milliseconds. |
1724206183 |
| DBNodeId |
string |
The ID of the database cluster node. |
pi-************* |
| DBVersion |
string |
The version number of the database AI DPI engine. -3.0 |
3.0 |
| EndTime |
string |
The end time of the query. The end time must be later than the start time. Specify the time in the |
2022-11-16T16:00Z |
| RequestId |
string |
The request ID. |
D0CEC6AC-7760-409A-A0D5-E6CD86****** |
| StartTime |
string |
The start time of the query. Specify the time in the |
2022-11-15T16:00Z |
| DBClusterId |
string |
The ID of the database cluster. |
pc-a************ |
| DBType |
string |
The type of the database engine. Only polardb_ai is supported. |
polardb_ai |
| ApiKey |
string |
An API key for the model service. |
xxx |
| Interval |
string |
The data granularity of performance. Valid values:
|
60 |
Examples
Success response
JSON format
{
"PerformanceKeys": [
{
"Measurement": "PolarDBAIModelCall",
"MetricName": "model_input_amount",
"Points": [
{
"Value": "42.38",
"Timestamp": 1724206183
}
],
"DBNodeId": "pi-*************"
}
],
"DBVersion": "3.0",
"EndTime": "2022-11-16T16:00Z",
"RequestId": "D0CEC6AC-7760-409A-A0D5-E6CD86******",
"StartTime": "2022-11-15T16:00Z",
"DBClusterId": "pc-a************",
"DBType": "polardb_ai",
"ApiKey": "xxx",
"Interval": "60"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBNodeId.Malformed | The specified parameter DBNodeId is not valid. | The specified DBNodeId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.