查詢PolarDB AI應用效能。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
polardb:DescribeApplicationPerformance |
get |
*dbcluster
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| 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 |
| StartStep |
integer |
否 |
||
| EndStep |
integer |
否 |
||
| Downsample |
string |
否 |
||
| MaxPoints |
integer |
否 |
||
| 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 |
||
| ComponentId |
string |
組件 ID |
pac-xxx |
| ComponentType |
string |
組件的類型 |
backend |
| EndTime |
string |
查詢結束時間。格式為 |
2025-05-23T02:21:00Z |
| RequestId |
string |
請求 id。 |
CDB3258F-B5DE-43C4-8935-CBA0CA****** |
| StartTime |
string |
查詢開始時間。格式為 |
2022-11-15T16:00Z |
| ApplicationId |
string |
應用叢集 ID |
pa-************** |
| ApplicationType |
string |
應用類型 |
supabase |
| Interval |
string |
樣本
正常返回樣本
JSON格式
{
"PerformanceKeys": {
"PerformanceItem": [
{
"MetricName": "mean_cpu_usage",
"Measurement": "PolarDBSupabaseMemUsage",
"Points": {
"PerformanceItemValue": [
{
"Value": "42.38",
"Timestamp": 1600822800000,
"Step": 0
}
]
},
"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": ""
}
錯誤碼
|
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無效 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。