文档

分页获取历史巡检结果

更新时间:

分页获取历史巡检结果,按产品、日期、严重级别查询。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称

类型

是否必选

示例值

描述

Action String GetHistoryAdvices

系统规定参数。取值:GetHistoryAdvices

Language String zh

请求使用的语言。

Product String ecs

云产品Code。

Severity String 1

严重级别:

  • 1: 警告
  • 2: 严重
PageSize Integer 10

每页数据条数。

PageNum Integer 1

分页号。

StartDate String 2023-07-01

时间范围查询条件起始时间,输入日期格式为 yyyy-mm-dd。

EndDate String 2023-07-01

时间范围查询条件结束时间,输入日期格式为 yyyy-mm-dd。

Reverse Boolean true

是否降序:

  • true:按降序排序
  • false:按升序排序

返回数据

名称

类型

示例值

描述

RequestId String 566331F9-5AB3-550F-B745-A730331F97A9

请求ID。

Data Object

查询结果。

PageNo Integer 1

分页号。

Total Integer 100

数据总条数。

Result Array of Advice

查询结果对象数组。

Severity Integer 1

严重级别:

  • 1: 警告
  • 2: 严重
Product String ecs

云产品Code。

GmtCreated String 2023-07-01 00:00:00

巡检项结果创建时间,格式为yyyy-mm-dd hh:mm:ss。

Description String CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高

巡检项描述,推荐操作和操作说明。

CheckId String EcsHighCpuUtilization

巡检项Code。

ResourceId String i-2zecnwitr2s7aca6****

资源/实例ID。

CheckName String ECS 性能负载巡检

巡检项名称。

Url String https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou

巡检项对应资源跳转url。

示例

请求示例

http(s)://advisor.cn-hangzhou.aliyuncs.com/?Action=GetHistoryAdvices
&Language=zh
&Product=ecs
&Severity=1
&PageSize=10
&PageNum=1
&StartDate=2023-07-01
&EndDate=2023-07-01
&Reverse=true
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<GetHistoryAdvicesResponse>
    <RequestId>566331F9-5AB3-550F-B745-A730331F97A9</RequestId>
    <Data>
        <PageNo>1</PageNo>
        <Total>100</Total>
        <Result>
            <Severity>1</Severity>
            <Product>ecs</Product>
            <GmtCreated>2023-07-01 00:00:00</GmtCreated>
            <Description>CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高</Description>
            <CheckId>EcsHighCpuUtilization</CheckId>
            <ResourceId>i-2zecnwitr2s7aca6****</ResourceId>
            <CheckName>ECS 性能负载巡检</CheckName>
            <Url>https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou</Url>
        </Result>
    </Data>
</GetHistoryAdvicesResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "566331F9-5AB3-550F-B745-A730331F97A9",
  "Data" : {
    "PageNo" : 1,
    "Total" : 100,
    "Result" : [ {
      "Severity" : 1,
      "Product" : "ecs",
      "GmtCreated" : "2023-07-01 00:00:00",
      "Description" : "CPU负载,公网带宽负载,内存负载百分比算法超过标准值过高",
      "CheckId" : "EcsHighCpuUtilization",
      "ResourceId" : "i-2zecnwitr2s7aca6****",
      "CheckName" : "ECS 性能负载巡检",
      "Url" : "https://ecs.console.aliyun.com/#/server/i-2zecnwitr2s7aca6****/detail?regionId=cn-hangzhou"
    } ]
  }
}

错误码

HttpCode

错误码

错误信息

描述

403 Forbidden.RAM The user is not authorized to operate on the specified resource, or this API does not support RAM. 未授权错误。
500 InternalError The request processing has failed due to some unknown error. 服务端错误。

访问错误中心查看更多错误码。

  • 本页导读 (0)
文档反馈