DescribeDBClusterPerformance

更新时间:
复制 MD 格式

View target cluster performance data.

Operation description

For the service endpoint address, see service endpoint.

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

adb:DescribeDBClusterPerformance

list

*DBClusterLakeVersion

acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The ID of an enterprise edition, basic edition, or Data Lakehouse Edition cluster.

Note

You can call the DescribeDBClusters operation to query the IDs of all clusters in a specific region.

amv-bp1hx5n1o8f61****

Key

string

No

The key of the performance metric. Separate multiple keys with commas (,). For a list of supported metrics, see metric overview.

AnalyticDB_CPU_Usage_Percentage

StartTime

string

No

The start of the time range. The time is in UTC and must be in the yyyy-MM-ddTHH:mmZ format.

2022-03-10T23:56Z

EndTime

string

No

The end of the time range. The time is in UTC and must be in the yyyy-MM-ddTHH:mmZ format.

Note

The end time must be later than the start time. The time range cannot exceed two days.

2022-03-11T15:01Z

RegionId

string

Yes

The region ID.

Note

You can call the DescribeRegions operation to query the regions and availability zones supported by AnalyticDB for MySQL, including the region IDs.

cn-hangzhou

ResourcePools

string

No

The name of the resource pool.

user_default

Response elements

Element

Type

Description

Example

object

EndTime

string

The end time of the query. The time is in UTC and uses the yyyy-MM-ddTHH:mmZ format.

2022-03-11T15:01Z

RequestId

string

The request ID.

BD8C3096-8BC6-51DF-A4AB-BACD9DC10435

StartTime

string

The start time of the query. The time is in UTC and uses the yyyy-MM-ddTHH:mmZ format.

2022-03-10T23:56Z

DBClusterId

string

The cluster ID.

Note

Call the DescribeDBClusters operation to query the IDs of all clusters in a specific region.

amv-bp1hx5n1o8f61****

Performances

array<object>

The cluster performance metrics.

array<object>

Key

string

The name of the performance metric.

AnalyticDB_CPU_Usage_Percentage

Unit

string

The unit of the monitoring metric.

%

Series

array<object>

The time series data for the metric.

object

The details of a time series.

Values

array

An array of data points for the time series.

string

A data point, which is an array that contains a timestamp string and a value string.

[ [ "2023-06-27T13:21:00+08:00","0.1250" ], [ "2022-03-11T10:00:42.739Z","0.3125" ]... ]

Name

string

The name of the performance metric. This parameter is the Value Name of the monitoring metric. For more information, see Overview of Monitoring Items.

AnalyticDB_Storage_CPU_Avg_Usage_Percentage

Tags

string

A JSON string that contains the tags for the metric series.

{instance_name: "am-***"}

TranslateKey

string

A key for internal internationalization (i18n). You can safely ignore this parameter.

AnalyticDB_RP_WaitTime

Examples

Success response

JSON format

{
  "EndTime": "2022-03-11T15:01Z",
  "RequestId": "BD8C3096-8BC6-51DF-A4AB-BACD9DC10435",
  "StartTime": "2022-03-10T23:56Z",
  "DBClusterId": "amv-bp1hx5n1o8f61****",
  "Performances": [
    {
      "Key": "AnalyticDB_CPU_Usage_Percentage",
      "Unit": "%",
      "Series": [
        {
          "Values": [
            "[\n  [ \n  \"2023-06-27T13:21:00+08:00\",\"0.1250\" \n  ], \n  [ \n  \"2022-03-11T10:00:42.739Z\",\"0.3125\" \n  ]...\n]"
          ],
          "Name": "AnalyticDB_Storage_CPU_Avg_Usage_Percentage",
          "Tags": "\n{instance_name: \"am-***\"}",
          "TranslateKey": "AnalyticDB_RP_WaitTime"
        }
      ]
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 IdempotentParameterMismatch The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.