调用 ListSlowQueryAdviceApi 接口获取慢日志诊断历史信息。
同步请求
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
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。 |
PageSize | Integer | 是 | 10 | 每页记录数,取值范围1~100,默认值为 10。 |
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
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": "0MO9k41", "InstanceId": "QQVWZZtDjjZ", "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": "Ysyrp", "Status": "LYa", "AdviceNum": 806, "SummaryId": "h", "SlowQueryNum": 119, "AdviceIndexNum": 596, "NoAdviceSQLNum": 742, "AdviceRewriteNum": 171 } ] } }