描述
用户可以查询某日期范围内、某个用户实例下、某个DB的慢查询汇总情况,支持分页查询。对于SQL Server和MySQL两种实例类型,慢查询返回的SQLSlowLog参数值是不一样的,详情请见下面的SQLSlowLog参数表。
请求参数
https://rds.aliyuncs.com/?Action=DescribeSlowLogs
&DBInstanceId=riauvjz6zajfiq6ba1370329449201
&StartTime=2011-06-11Z
&EndTime=2011-12-11Z
&SortKey= TotalExecutionCounts
&<公共请求参数>
https://rds.aliyuncs.com/?Action=DescribeSlowLogs
&DBInstanceId=riauvjz6zajfiq6ba1370329449201
&StartTime=2011-06-11Z
&EndTime=2011-12-11Z
&SortKey= TotalExecutionCounts
&<公共请求参数>
<DescribeSlowLogsResponse>
<RequestId>A5409D02-D661-4BF3-8F3D-0A814D0574E7</RequestId>
<DBInstanceID>riauvjz6zajfiq6ba1370329449201</DBInstanceID>
<Engine>SQLServer</Engine>
<StartTime>2011-06-11Z</StartTime>
<EndTime>2011-12-11Z</EndTime>
<TotalRecordCount>1</TotalRecordCount>
<PageNumber>1</PageNumber>
<PageRecordCount>1</PageRecordCount>
<Items>
<SQLSlowLog>
<SQLText>update test.zxb set id=0 limit 1</SQLText>
<SQLServerTotalExecutionCounts>178</SQLServerTotalExecutionCounts>
<SQLServerTotalExecutionTimes>189</SQLServerTotalExecutionTimes>
<TotalLogicalReadcounts>89</TotalLogicalReadcounts>
<TotalPhysicalReadcounts>90</TotalPhysicalReadcounts>
<ReportTime>2013-11-12Z</ReportTime>
</SQLSlowLog>
</Items>
</DescribeSlowLogsResponse>
{
"RequestId":"A5409D02-D661-4BF3-8F3D-0A814D0574E7"
"StartTime":"2011-06-11Z ",
"EndTime":"2011-12-11Z ",
"Engine":"SQLServer",
"PageNumber":1,
"PageRecordCount":1,
"TotalRecordCount":1,
"Items":
{"SQLSlowLog":
[
{ "SQLText":”update test.zxb set id=0 limit 1”
"SQLServerTotalExecutionCounts":178
"SQLServerTotalExecutionTimes":189
"TotalLogicalReadcounts":89
"TotalPhysicalReadcounts":90
"ReportTime":"2013-11-12Z "
}
]
}
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。