全部產品
Search
文件中心

PolarDB:DescribeApplicationPerformance

更新時間:Aug 10, 2026

查詢 PolarDB AI 應用程式效能。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

polardb:DescribeApplicationPerformance

get

*dbcluster

acs:polardb:{#regionId}:{#accountId}:dbcluster/{#dbclusterId}

請求參數

名稱

類型

必填

描述

樣本值

ApplicationId

string

應用程式叢集 ID。

pa-**************

Key

string

查詢的效能指標,多個值之間以英文逗號(,)分隔。 說明 最多可傳入 5 個查詢的效能指標。

PolarDBSupabaseMemUsage

StartTime

string

查詢開始時間。格式為 yyyy-MM-ddTHH:mmZ(UTC 時間)。

2020-09-23T01:01Z

EndTime

string

查詢結束時間。格式為 yyyy-MM-ddTHH:mmZ(UTC 時間)。

2020-09-23T01:00Z

Interval

string

效能資料粒度。取值範圍如下:

  • 5

  • 30

  • 60

  • 600

  • 1800

  • 3600

  • 86400

5

StartStep

integer

起始步數。

1

EndStep

integer

截止步數。

100

Downsample

string

抽樣策略。

raw_sample

MaxPoints

integer

最大返回點數。

1000

Consumer

string

使用者。

c-xxxxxxx

ConsumerGroup

string

使用者群組。

cg-xxxxxx

ModelService

string

模型服務。

ms-xxxxxx

返回參數

名稱

類型

描述

樣本值

object

效能資料列表。

PerformanceKeys

object

PerformanceItem

array<object>

效能資料列表。

array<object>

MetricName

string

具體的效能指標度量名稱。

mean_cpu_usage

Measurement

string

效能指標。

PolarDBSupabaseMemUsage

Points

object

PerformanceItemValue

array<object>

效能資料值清單。

object

效能資料值清單。

Value

string

資料值。

42.38

Timestamp

integer

監控指標的具體時間點,格式為時間戳記,單位為毫秒。

1600822800000

Step

integer

步長。

5

ComponentId

string

元件 ID。

pac-xxx

ComponentType

string

元件的類型。

backend

EndTime

string

查詢結束時間。格式為 yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2025-05-23T02:21:00Z

RequestId

string

請求 ID。

CDB3258F-B5DE-43C4-8935-CBA0CA******

StartTime

string

查詢開始時間。格式為 yyyy-MM-ddTHH:mm:ssZ(UTC 時間)。

2022-11-15T16:00Z

ApplicationId

string

應用程式叢集 ID。

pa-**************

ApplicationType

string

應用程式類型。

supabase

Interval

string

資料粒度。

60

樣本

正常返回樣本

JSON格式

{
  "PerformanceKeys": {
    "PerformanceItem": [
      {
        "MetricName": "mean_cpu_usage",
        "Measurement": "PolarDBSupabaseMemUsage",
        "Points": {
          "PerformanceItemValue": [
            {
              "Value": "42.38",
              "Timestamp": 1600822800000,
              "Step": 5
            }
          ]
        },
        "ComponentId": "pac-xxx",
        "ComponentType": "backend"
      }
    ]
  },
  "EndTime": "2025-05-23T02:21:00Z",
  "RequestId": "CDB3258F-B5DE-43C4-8935-CBA0CA******",
  "StartTime": "2022-11-15T16:00Z",
  "ApplicationId": "pa-**************",
  "ApplicationType": "supabase",
  "Interval": "60"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 InvalidKey.Malformed The specified parameter Key is not valid. 指定的參數鍵無效。
400 InvalidEndTime.Malformed The specified parameter EndTime is not valid. 指定的參數EndTime無效。
400 InvalidStartTime.Malformed The specified parameter StartTime is not valid. 指定的參數 StartTime 無效。
400 InvalidParameterCombination The end time must be greater than the start time. 結束時間必須大於開始時間。
400 InvalidDateRange.Malformed The Date Range can not more than one month. 日期範圍不能超過一個月。
404 InvalidDBClusterId.NotFound The DBClusterId provided does not exist in our records. 目前的記錄中不存在提供的 DBClusterId。
404 InvalidDBClusterId.Malformed The specified parameter DBClusterId is not valid. 我們的記錄中不存在提供的 DBClusterId。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情