Retrieves the performance metrics of an AI container.
Try it now

RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
polardb:DescribeAIDBClusterPerformance | get | *All Resource
| None | None |
Request syntax
POST HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
DBClusterId | string | Yes | The cluster ID. Note Call the DescribeDBClusters operation to query the details of all clusters under your account, including the cluster ID. | pc-**************** |
Key | string | Yes | The name of the metric. | PolarDBAIModelCall |
StartTime | string | Yes | The beginning of the time range to query. Specify the time in the | 2025-09-17T02:18:00Z |
EndTime | string | Yes | The end of the time range to query. The end time must be later than the start time. Specify the time in the | 2025-09-23T01:01:00Z |
Interval | string | No | The time granularity of the data to retrieve. Valid values: 60 (minutes) and 3600 (hours).
| 60 |
Response parameters
Parameter | Type | Description | Example |
object | The response schema. | ||
PerformanceKeys | array<object> | The details of the instance performance parameters. | |
object | A list of cluster performance data. | ||
Measurement | string | The performance metric. | PolarDBAIModelCall |
MetricName | string | The name of the specific performance metric. | model_input_amount |
Points | array<object> | The array of performance data. | |
object | A performance data point. | ||
Value | string | The value of the metric. | 42.38 |
Timestamp | integer | The UNIX timestamp that indicates when the metric was collected. Unit: milliseconds. | 1724206183 |
DBNodeId | string | The ID of the cluster node. | pi-************* |
DBVersion | string | The version number of the database AI engine. Example: 3.0 | 3.0 |
EndTime | string | The end of the time range that was queried. The time is in the | 2022-11-16T16:00Z |
RequestId | string | The request ID. | D0CEC6AC-7760-409A-A0D5-E6CD86****** |
StartTime | string | The beginning of the time range that was queried. The time is 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 | The API key for the model service. | xxx |
Interval | string | The time granularity of the performance data. 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.