DescribeAdvisorChecks
Queries the inspection items currently available to the user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
advisor:DescribeAdvisorChecks |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Language |
string |
No |
The language. |
zh |
| Product |
string |
No |
The cloud service code. |
ecs |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The error code. |
200 |
| RequestId |
string |
The request ID. |
566331F9-5AB3-550F-B745-A730331F97A9 |
| Data |
object |
||
| AdvisorCheck |
array<object> |
The query result. |
|
|
object |
The query result object. |
||
| Status |
string |
Indicates whether the diagnostic item is disabled. Valid values:
|
enabled |
| Product |
string |
The cloud service code. |
ecs |
| OperateColumn |
string |
The operation field, which uses the JSON fields defined in the frontend template or the action of the diagnostic suggestion. |
[{"key": "Detail", "value": "/diagnosis?product=${Product}&resourceId=${Resource.resourceId}", "type": "template"} ] |
| GmtModified |
string |
The update time of the inspection item configuration. Format: yyyy-mm-dd hh:mm:ss. |
2023-07-01 00:00:00 |
| ViewColumn |
string |
The display column, which is the specific configuration for displaying inspection item details in the console. |
[{"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, {"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, {"key":"EcsHighCpuUtilization_xxxx", "type":"DEFAULT"}, ] |
| GmtCreated |
string |
The creation time of the inspection item configuration. Format: yyyy-mm-dd hh:mm:ss. |
2023-07-01 00:00:00 |
| Description |
string |
The description of the inspection item, which includes recommended actions and operation instructions. |
The CPU load, public network bandwidth load, or memory load percentage exceeds the standard threshold |
| Tips |
string |
A one-sentence summary of the inspection suggestion. |
Check the resource usage of the instance or upgrade the instance type |
| Code |
string |
The code of the inspection item. |
EcsHighCpuUtilization |
| Category |
string |
The category of the inspection item. Valid values:
|
1 |
| Name |
string |
The name of the inspection item. |
ECS performance and load inspection |
Examples
Success response
JSON format
{
"Code": "200",
"RequestId": "566331F9-5AB3-550F-B745-A730331F97A9",
"Data": {
"AdvisorCheck": [
{
"Status": "enabled",
"Product": "ecs",
"OperateColumn": "[{\"key\": \"Detail\", \"value\": \"/diagnosis?product=${Product}&resourceId=${Resource.resourceId}\", \"type\": \"template\"} ]",
"GmtModified": "2023-07-01 00:00:00",
"ViewColumn": "[{\"key\":\"EcsHighCpuUtilization_xxxx\", \"type\":\"DEFAULT\"}, {\"key\":\"EcsHighCpuUtilization_xxxx\", \"type\":\"DEFAULT\"}, {\"key\":\"EcsHighCpuUtilization_xxxx\", \"type\":\"DEFAULT\"}, ]",
"GmtCreated": "2023-07-01 00:00:00",
"Description": "CPU load, public bandwidth load, and memory load percentages exceed the standard threshold",
"Tips": "Check the resource usage of the instance or upgrade the instance type",
"Code": "EcsHighCpuUtilization",
"Category": "1",
"Name": "ECS Performance Load Inspection"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | A server error occurred. |
| 403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API doesn't support RAM. | Authentication failed. |
| 403 | Forbidden.NotActivated | User has not activated Advisor Service. | The user has not opened the Advisor product. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.