查询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 |
| 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 |
| 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 |
示例
正常返回示例
JSON格式
{
"PerformanceKeys": {
"PerformanceItem": [
{
"MetricName": "mean_cpu_usage",
"Measurement": "PolarDBSupabaseMemUsage",
"Points": {
"PerformanceItemValue": [
{
"Value": "42.38",
"Timestamp": 1600822800000
}
]
},
"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"
}
错误码
|
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无效 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。