http(s)://rds.aliyuncs.com/?Action=DescribeSQLLogReports
&DBInstanceId=rm-uf6wjk5xxxxxxx
&EndTime=2021-03-18T16:00:00Z
&StartTime=2021-03-13T16:00:00Z
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeSQLLogReportsResponse>
<TotalRecordCount>60</TotalRecordCount>
<PageRecordCount>30</PageRecordCount>
<RequestId>08A3B71B-FE08-4B03-974F-CC7EA6DB1828 </RequestId>
<PageNumber>1</PageNumber>
<Items>
<ReportTime>2019-03-27T16:00:00Z</ReportTime>
<LatencyTopNItems>
<LatencyTopNItem>
<AvgLatency>500</AvgLatency>
<SQLExecuteTimes>5</SQLExecuteTimes>
<SQLText>SELECT * FROM table_name;</SQLText>
</LatencyTopNItem>
</LatencyTopNItems>
<QPSTopNItems>
<QPSTopNItem>
<SQLExecuteTimes>5</SQLExecuteTimes>
<SQLText>SELECT * FROM table_name;</SQLText>
</QPSTopNItem>
</QPSTopNItems>
</Item>
</Items>
</DescribeSQLLogReportsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
"TotalRecordCount" : "60",
"PageRecordCount" : "30",
"RequestId" : "08A3B71B-FE08-4B03-974F-CC7EA6DB1828\t",
"PageNumber" : "1",
"Items" : {
"Item" : [ {
"ReportTime" : "2019-03-27T16:00:00Z",
"LatencyTopNItems" : {
"LatencyTopNItem" : [ {
"AvgLatency" : "500",
"SQLExecuteTimes" : "5",
"SQLText" : "SELECT * FROM table_name;"
"QPSTopNItems" : {
"QPSTopNItem" : [ {
"SQLExecuteTimes" : "5",
"SQLText" : "SELECT * FROM table_name;"
访问错误中心查看更多错误码。