调用 SlowQueryAdviceTaskHistoryApi 接口获取慢日志诊断历史信息。
同步请求
| 参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | SlowQueryAdviceTaskHistoryApi | 本次请求的目的,取值为 SlowQueryAdviceTaskHistoryApi。 |
| Version | String | 是 | 2018-01-01 | API 的版本号,取值为 2018-01-01。 |
InstanceType | String | 是 | MySQL | 数据库类型,取值如下:
|
InstanceId | String | 是 | vedb-xxxx | 实例 ID。 说明
|
| PageNumber | Integer | 是 | 1 | 页码,取值范围 1~200。 |
| PageSize | Integer | 是 | 10 | 每页记录数,取值范围 1~100。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Total | Integer | 0 | 慢日志诊断任务总数。 |
| ResList | Array of Object | Array of ResList Object | 慢日志诊断历史,由创建时间从新到旧排序。 |
POST /?Action=SlowQueryAdviceTaskHistoryApi&Version=2018-01-01 HTTP/1.1 Host: / Content-Type: application/json; charset=UTF-8 X-Date: 20250626T033433Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250626/cn-beijing/dbw/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "InstanceType": "MySQL", "InstanceId": "mysql-84c8b6******", "PageNumber": 1, "PageSize": 10 }
{ "ResponseMetadata": { "RequestId": "20250626113444104080177020262C4F", "Action": "SlowQueryAdviceTaskHistoryApi", "Version": "2018-01-01", "Service": "dbw", "Region": "cn-beijing" }, "Result": { "Total": 142, "ResList": [ { "Db": "V", "Date": "20250427", "Status": "SUCCESS", "AdviceNum": 0, "SummaryId": "9853ae90-4052-4953-b117-b1f590358819", "SlowQueryNum": 0, "AdviceIndexNum": 0, "NoAdviceSQLNum": 142, "AdviceRewriteNum": 0 } ] } }