查看DRDS慢SQL。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 |
|---|---|---|---|---|
| DrdsInstanceId | string | 是 | 实例 ID。 | drds*************** |
| DbName | string | 是 | 数据库名称。 | test_db |
| ExeTime | long | 是 | SQL 执行时间,单位为毫秒(ms)。 | 1000 |
| StartTime | long | 是 | SQL 查询结束时间,格式为 Unix 时间戳,单位为毫秒(UTC 时间)。 | 1568269711000 |
| EndTime | long | 是 | SQL 查询开始时间,格式为 Unix 时间戳,单位为毫秒(UTC 时间)。 | 1568267711000 |
| PageNumber | integer | 否 | 页数。 | 1 |
| PageSize | integer | 否 | 每页记录数。 | 20 |
返回参数
示例
正常返回示例
JSON格式
{
"PageSize": 20,
"PageNumber": 1,
"RequestId": "509BDE17-505A-4B3B-854D-30D3F0******",
"Total": 1,
"Success": true,
"Items": {
"Item": [
{
"SendTime": 1568267711,
"Host": "10.0.***.***",
"Sql": "SELECT count(1) from payment_order where order_status = '08';",
"ResponseTime": 1568267711,
"Schema": "user"
}
]
}
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 |
|---|---|---|---|
| 400 | ActionUnauthorized | The specified action is not available for you | 指定的action未授权,请您先做RAM授权再进行操作。 |
| 404 | InvalidDRDSInstanceId.NotFound | The DrdsInstanceId provided does not exist in our records. | - |
| 404 | InvalidDbName.NotFound | The Drds DbName provided does not exist in our records. | - |
| 500 | InternalError | The request processing has failed due to some unknown error. | 请求失败,内部错误 |
访问错误中心查看更多错误码。
变更历史
| 变更时间 | 变更内容概要 | 操作 |
|---|---|---|
| 2025-03-07 | OpenAPI 错误码发生变更、OpenAPI 入参发生变更 | 查看变更详情 |
