DescribeAIDBClusterPerformance

Updated at:

Retrieves the performance metrics of an AI container.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

polardb:DescribeAIDBClusterPerformance

get

*AICluster

acs:polardb:{#regionId}:{#accountId}:aicluster/{#DBClusterId}

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 YYYY-MM-DDThh:mmZ format. The time must be in UTC.

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 YYYY-MM-DDThh:mmZ format. The time must be in UTC.

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

  • If you set Interval to 60, you can query data generated within the last month. The maximum time range for a single query is 7 days.

  • If you set Interval to 3600, you can query data generated within the last month. The maximum time range for a single query is 7 days.

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 YYYY-MM-DDThh:mmZ format. The time must be in UTC.

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 yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

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

  • 3600

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.