描述
用户可以查询某日期范围内、某个用户实例下、某个数据库的慢查询明细,目前支持MySQL、PostgreSQL和PPAS类型的实例。
请求参数
https://rds.aliyuncs.com/?Action=DescribeSlowLogRecords
&DBInstanceId=riauvjz6zajfiq6ba1370329449201
&StartTime=2011-06-11T15:00Z
&EndTime=2011-06-11T16:00Z
&<公共请求参数>
<DescribeSlowLogRecordsResponse>
<RequestId>542BB8D6-4268-45CC-A557-B03EFD7AB30A</RequestId>
<DBInstanceID>riauvjz6zajfiq6ba1370329449201</DBInstanceID>
<Engine>MySQL</Engine>
<TotalRecordCount>1</TotalRecordCount>
<PageNumber>1</PageNumber>
<PageRecordCount>1</PageRecordCount>
<Items>
<SQLSlowRecord>
<HostAddress>192.168.0.123</HostAddress>
<DBName>test</DBName>
<SQLText>update test.zxb set id=0 limit 1</SQLText>
<QueryTimes>123</QueryTimes>
<LockTimes>12</LockTimes>
<ParseRowCounts>125</ParseRowCounts>
<ReturnRowCounts>1</ReturnRowCounts>
<ExecutionStartTime>2011-06-11T15:00:08Z</ExecutionStartTime>
</SQLSlowRecord>
</Items>
</DescribeSlowLogRecordsResponse>
{
"RequestId":"542BB8D6-4268-45CC-A557-B03EFD7AB30A"
"Engine":"MySQL",
"PageNumber":1,
"PageRecordCount":1,
"TotalRecordCount":1
"Items":
{"SQLSlowRecord":
[
{
HostAddress:”192.168.0.123”
DBName:”test”
SQLText:” update test.zxb set id=0 limit 1”
QueryTimes:”123”
LockTimes”12”
ParseRowCounts:”125”
ReturnRowCounts:”1”
ExecutionStartTime:”2011-06-11T15:00:08Z”
}
]
}
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。