查询指标
查询指标
Path Parameters
Possible values: <= 63 characters
订阅名
Possible values: <= 63 characters
资源组名
Possible values: <= 63 characters
区域
Possible values: <= 63 characters
监控空间名
仪表板名
面板名
Request Body required
query_filter object
表示查询过滤器
资源ID
filters object
筛选条件,例如(gpu:4)
开始时间
结束时间
指标间隔步长,秒(如60=1min,300=5min)。当获取的panel为即时值时,该参数无用;需满足(end-start)/step<11000
时间校准对齐,根据step,调整校准start,end time取整,默认false
- 200
- default
OK
Schema
- Array [
- Array [
- ]
- ]
metrics_result object[]
指标结果
metrics_attrs object
指标属性
values object[]
指标值
时间
值
开始时间
结束时间
指标间隔步长,秒(如60=1min,300=5min)。当获取的panel为即时值时,该参数无用;需满足(end-start)/step<11000
时间校准对齐,根据step,调整校准start,end time取整,默认false
{
"metrics_result": [
{
"metrics_attrs": {},
"values": [
{
"metric_time": "2024-12-05T02:41:59.627Z",
"values": 0
}
]
}
],
"start": 0,
"end": 0,
"step": 0,
"range_align": true
}
Default error response
Schema
- Array [
- ]
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
details object[]
A list of messages that carry the error details. There is a common set of message types for APIs to use.
The type of the serialized message.
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}