查询监控空间的使用情况信息
查询监控空间的使用情况信息
Path Parameters
Possible values: <= 63 characters
订阅名
Possible values: <= 63 characters
资源组名
Possible values: <= 63 characters
区域
Possible values: <= 63 characters
监控空间名
Request Body required
- Array [
- ]
filter object[] required
用量过滤器
筛选键,例如gpu
筛选值,例如[0,1,2]
Possible values: [USAGE_GRANULARITY_UNSPECIFIED
, USAGE_GRANULARITY_HOUR
, USAGE_GRANULARITY_DAY
, USAGE_GRANULARITY_MONTH
, USAGE_GRANULARITY_YEAR
]
用量粒度
用量开始时间
用量结束时间
- 200
- default
OK
Schema
- Array [
- ]
results object[] required
用量结果
{
"results": [
{
"resource_id": "string",
"resource_type": "string",
"usage_name": "string",
"usage_unit": "string",
"usage_quantity": 0,
"granularity": "USAGE_GRANULARITY_UNSPECIFIED",
"start": "2024-12-05T02:41:59.644Z",
"end": "2024-12-05T02:41:59.644Z"
}
]
}
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"
}
]
}