Queries the resource usage of an application.
Debugging
Request headers
This operation uses only common request headers. For more information, see Common request parameters and common response parameters.
Request syntax
GET /pop/v1/paas/quota/queryResourceStatics HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 7171a6ca-d1cd-4928-8642-7d5cfe69**** | The ID of the application. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 7CCF7092-72CA-4431-90D6-C7D98752**** | The ID of the request. |
Message | String | success | The returned message.
|
TraceId | String | ac1a08a015623098794277264e**** | The ID of the trace. It can be used to query the details of a request. |
Data | Object | The resource usage. |
|
Summary | Object | The resource usage of the current month. |
|
Cpu | Float | 3354 | The CPU usage. Unit: core per minute. |
Memory | Float | 6708 | The memory usage. Unit: GiB per minute. |
RealTimeRes | Object | The real-time resource usage. |
|
Cpu | Float | 13 | The CPU usage. Unit: core per minute. |
Memory | Float | 26 | The memory usage. Unit: GiB per minute. |
ErrorCode | String | This parameter is left empty. | The error code.
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the resource usage of an application was obtained. Valid values:
|
Examples
Sample requests
GET /pop/v1/paas/quota/queryResourceStatics?AppId=7171a6ca-d1cd-4928-8642-7d5cfe69**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<QueryResourceStaticsResponse>
<RequestId>7CCF7092-72CA-4431-90D6-C7D98752****</RequestId>
<Message>success</Message>
<TraceId>ac1a08a015623098794277264e****</TraceId>
<Data>
<Summary>
<Cpu>3354</Cpu>
<Memory>6708</Memory>
</Summary>
<RealTimeRes>
<Cpu>13</Cpu>
<Memory>26</Memory>
</RealTimeRes>
</Data>
<Code>200</Code>
<Success>true</Success>
</QueryResourceStaticsResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "7CCF7092-72CA-4431-90D6-C7D98752****",
"Message" : "success",
"TraceId" : "ac1a08a015623098794277264e****",
"Data" : {
"Summary" : {
"Cpu" : 3354,
"Memory" : 6708
},
"RealTimeRes" : {
"Cpu" : 13,
"Memory" : 26
}
},
"Code" : "200",
"Success" : true
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidServerlessRegion.Unsupported | The current region is not supported: %s | The error message returned because the %s region is not supported. |
400 | InvalidApplication.NotFound | The current application does not exist. | The error message returned because the specified application cannot be found. |
500 | Measuredata.Query.Error | An error occurred while querying measurement information. | The error message returned because an error occurred in the query. |
For a list of error codes, visit the API Error Center.