DescribeAdvisorChecks

Updated at:

Queries the inspection items currently available to the user.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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: Enabled.

  • disabled: Disabled.

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: Security and compliance.

  • 2: Performance and efficiency.

  • 3: Business stability.

  • 4: Cost optimization.

  • 5: Service limits.

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.