Queries the top N applications in Application Monitoring.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:GetArmsTopNMetric |
none |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/getArmsTopNMetric HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The field based on which you want to sort the returned entries. |
cn-hangzhou |
| OrderBy |
string |
Yes |
The number of entries to return. Valid values: 0 to 100. |
count |
| Limit |
integer |
Yes |
The beginning of the time range to query. |
10 |
| StartTime |
integer |
Yes |
The end of the time range to query. |
1675823135951 |
| EndTime |
integer |
Yes |
The SAE application type. Valid values:
|
1675824035951 |
| AppSource |
string |
No |
The CPU allocation policy. Valid values:
|
micro_service |
| CpuStrategy |
string |
No |
The additional information that is returned. Valid values:
|
always |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The request ID. |
success |
| RequestId |
string |
3B763F98-0BA2-5C23-B6B8-558568D2C1C2 |
3B763F98-0BA2-5C23-B6B8-558568D2**** |
| Data |
array<object> |
The details of applications. |
|
|
object |
The details of the application. |
||
| AppId |
string |
The application ID. |
7171a6ca-d1cd-4928-8642-7d5cfe69**** |
| Name |
string |
The application name. |
test |
| RegionId |
string |
The namespace ID. |
cn-hangzhou |
| Count |
integer |
The total number of requests. |
100 |
| Error |
integer |
The number of errors. |
0 |
| Rt |
integer |
The average response time. Unit: milliseconds. |
100 |
| Code |
string |
The HTTP status code. Valid values:
|
200 |
| Success |
boolean |
Indicates whether the application list was retrieved. Valid values:
|
true |
Examples
Success response
JSON format
{
"Message": "success",
"RequestId": "3B763F98-0BA2-5C23-B6B8-558568D2****",
"Data": [
{
"AppId": "7171a6ca-d1cd-4928-8642-7d5cfe69****",
"Name": "test",
"RegionId": "cn-hangzhou",
"Count": 100,
"Error": 0,
"Rt": 100
}
],
"Code": "200",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.