forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
233 lines
22 KiB
HTML
233 lines
22 KiB
HTML
<a name="rds_06_0100"></a><a name="rds_06_0100"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Slow Query Log Statistics</h1>
|
|
<div id="body32001227"><div class="section" id="rds_06_0100__en-us_topic_0231893217_section61759636"><h4 class="sectiontitle">Function</h4><p id="rds_06_0100__en-us_topic_0231893217_p33831530">This API is used to query and collect statistics on slow query logs based on service requirements.</p>
|
|
<ul id="rds_06_0100__en-us_topic_0231893217_ul12259155218373"><li id="rds_06_0100__en-us_topic_0231893217_en-us_topic_0110967248_li836513175363">Before calling an API, you need to understand the API in <a href="rds_03_0001.html">Authentication</a>.</li><li id="rds_06_0100__en-us_topic_0231893217_en-us_topic_0110967248_li1991981933613">Before calling this API, obtain the required <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0100__en-us_topic_0231893217_section2563029124413"><h4 class="sectiontitle">Constraints</h4><p id="rds_06_0100__en-us_topic_0231893217_p121571021134413">This API is supported for MySQL only.</p>
|
|
</div>
|
|
<div class="section" id="rds_06_0100__en-us_topic_0231893217_section18965813"><h4 class="sectiontitle">URI</h4><ul id="rds_06_0100__en-us_topic_0231893217_ul13194498"><li id="rds_06_0100__en-us_topic_0231893217_li41603465301">URI format<p id="rds_06_0100__en-us_topic_0231893217_p11160246123012"><a name="rds_06_0100__en-us_topic_0231893217_li41603465301"></a><a name="en-us_topic_0231893217_li41603465301"></a>GET https://{<em id="rds_06_0100__en-us_topic_0231893217_i1288545311165">Endpoint</em>}/v3/{project_id}/instances/{instance_id}/slowlog/statistics?cur_page={cur_page}&per_page={per_page}&type={type}&start_date={start_date}&end_date={end_date}</p>
|
|
</li></ul>
|
|
<ul id="rds_06_0100__en-us_topic_0231893217_ul55999443"><li id="rds_06_0100__en-us_topic_0231893217_li21405046">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0100__en-us_topic_0231893217_table58427690" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_06_0100__en-us_topic_0231893217_row1482002"><th align="left" class="cellrowborder" valign="top" width="21.3%" id="mcps1.3.3.3.1.1.2.4.1.1"><p id="rds_06_0100__en-us_topic_0231893217_p52933326"><strong id="rds_06_0100__en-us_topic_0231893217_b9217151464612">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="14.899999999999999%" id="mcps1.3.3.3.1.1.2.4.1.2"><p id="rds_06_0100__en-us_topic_0231893217_p59740974"><strong id="rds_06_0100__en-us_topic_0231893217_b24231814174610">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.800000000000004%" id="mcps1.3.3.3.1.1.2.4.1.3"><p id="rds_06_0100__en-us_topic_0231893217_p7180698"><strong id="rds_06_0100__en-us_topic_0231893217_b567221416461">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0100__en-us_topic_0231893217_row44765691"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p2142393">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p39316155">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p30492010">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_06_0100__en-us_topic_0231893217_p18985742094">For details about how to obtain the project ID, see <a href="rds_03_0002.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row5992637"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p15641626">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p59012183">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p15257500">Specifies the ID of the DB instance to be queried.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row58022045101612"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p1314616411719">cur_page</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p18906893174547">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p55063325174547">Specifies the page offset (the current page number, such as 1, 2, 3, or 4.)</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row15171643151612"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p914618418175">per_page</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p9826466174547">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p57746301174547">Specifies the number of records on each page. The value ranges from 0 to 100.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row241814298545"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p24007821174547">start_date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p65585369174547">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p18878213132417">Specifies the start date in the "yyyy-mm-ddThh:mm:ssZ" format.</p>
|
|
<p id="rds_06_0100__en-us_topic_0231893217_p442615191195"><strong id="rds_06_0100__en-us_topic_0231893217_b842352706151812">T</strong> is the separator between the calendar and the hourly notation of time. <strong id="rds_06_0100__en-us_topic_0231893217_b842352706153833">Z</strong> indicates the time zone offset.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row205151333105411"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p32183997174547">end_date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p56766964174547">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p1850612457243">Specifies the end time in the "yyyy-mm-ddThh:mm:ssZ" format.</p>
|
|
<p id="rds_06_0100__en-us_topic_0231893217_p494616411342"><strong id="rds_06_0100__en-us_topic_0231893217_b750911578459">T</strong> is the separator between the calendar and the hourly notation of time. <strong id="rds_06_0100__en-us_topic_0231893217_b25141057134514">Z</strong> indicates the time zone offset.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row1094152745413"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p956544614368">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p1193327112018">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.800000000000004%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p2053145617536">Specifies the statement type. If it is left blank, all statement types are queried. Valid value:</p>
|
|
<ul id="rds_06_0100__en-us_topic_0231893217_ul1281145815538"><li id="rds_06_0100__en-us_topic_0231893217_li115141015414">INSERT</li><li id="rds_06_0100__en-us_topic_0231893217_li7588523548">UPDATE</li><li id="rds_06_0100__en-us_topic_0231893217_li397815385412">SELECT</li><li id="rds_06_0100__en-us_topic_0231893217_li1161666544">DELETE</li><li id="rds_06_0100__en-us_topic_0231893217_li158120588535">CREATE</li><li id="rds_06_0100__en-us_topic_0231893217_li16802914152910">ALL</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0100__en-us_topic_0231893217_section36474591"><h4 class="sectiontitle">Request</h4><ul id="rds_06_0100__ul1183180183717"><li id="rds_06_0100__li1283110163719">Request parameters<p id="rds_06_0100__p848415163614"><a name="rds_06_0100__li1283110163719"></a><a name="li1283110163719"></a>None</p>
|
|
</li></ul>
|
|
<ul id="rds_06_0100__ul12221211195714"><li id="rds_06_0100__en-us_topic_0231893217_li4411135064210">Example<p id="rds_06_0100__en-us_topic_0231893217_p1454414211213"><a name="rds_06_0100__en-us_topic_0231893217_li4411135064210"></a><a name="en-us_topic_0231893217_li4411135064210"></a>GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/cee5265e1e5845649e354841234567dfin01/slowlog/statistics?cur_page=1&per_page=2&type=INSERT&start_date=2020-02-06T10:41:14+0800&end_date=2020-02-07T10:41:14+0800</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0100__en-us_topic_0231893217_section59835867"><h4 class="sectiontitle">Response</h4><ul id="rds_06_0100__en-us_topic_0231893217_ul66273227"><li id="rds_06_0100__en-us_topic_0231893217_li59588135">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0100__en-us_topic_0231893217_table66531170" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Description</caption><thead align="left"><tr id="rds_06_0100__en-us_topic_0231893217_row12984378"><th align="left" class="cellrowborder" valign="top" width="19.220000000000002%" id="mcps1.3.5.2.1.1.2.4.1.1"><p id="rds_06_0100__en-us_topic_0231893217_p45101667"><strong id="rds_06_0100__en-us_topic_0231893217_b3391913134818">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.01%" id="mcps1.3.5.2.1.1.2.4.1.2"><p id="rds_06_0100__en-us_topic_0231893217_p29356372"><strong id="rds_06_0100__en-us_topic_0231893217_b177197134484">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="67.77%" id="mcps1.3.5.2.1.1.2.4.1.3"><p id="rds_06_0100__en-us_topic_0231893217_p29055926"><strong id="rds_06_0100__en-us_topic_0231893217_b189531113194819">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0100__en-us_topic_0231893217_row4719792"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p312631422613">pageNumber</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.01%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p57211920192612">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.77%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p1191930112613">Indicates the current page number.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row5801050"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p171261514142617">pageRecord</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.01%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p1172112019261">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.77%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p171919300261">Indicates the number of records on each page.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row1562610185558"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p131261814162617">slowLogList</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.01%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p9721172062620">List</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.77%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p60622679185558">See <a href="#rds_06_0100__en-us_topic_0231893217_table1950773843311">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row46227617185624"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p612661442616">totalRecord</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.01%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p5721142018265">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.77%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p66634382185624">Indicates the total number of records.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_06_0100__en-us_topic_0231893217_table1950773843311"></a><a name="en-us_topic_0231893217_table1950773843311"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_06_0100__en-us_topic_0231893217_table1950773843311" frame="border" border="1" rules="all"><caption><b>Table 3 </b>slow_log_list field data structure description</caption><thead align="left"><tr id="rds_06_0100__en-us_topic_0231893217_row1950719385338"><th align="left" class="cellrowborder" valign="top" width="19.220000000000002%" id="mcps1.3.5.2.1.2.2.4.1.1"><p id="rds_06_0100__en-us_topic_0231893217_p165072385333">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.04%" id="mcps1.3.5.2.1.2.2.4.1.2"><p id="rds_06_0100__en-us_topic_0231893217_p175081838173315"><strong id="rds_06_0100__en-us_topic_0231893217_b433195693">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="67.74%" id="mcps1.3.5.2.1.2.2.4.1.3"><p id="rds_06_0100__en-us_topic_0231893217_p1250813820337">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_06_0100__en-us_topic_0231893217_row20508638193311"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p46758891">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p29373839">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p30470722">Indicates the number of executions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row1750883815335"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p123050">time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p9967070">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p2026335">Indicates the execution time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row1050853893315"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p27564685185558">lockTime</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p18147022185558">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p10508113843313">Indicates the lock wait time.</p>
|
|
<p id="rds_06_0100__p9255016162718">This parameter is not present in the response for PostgreSQL DB engine.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row13508183819331"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p61882053185624">rowsSent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p46390393185624">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p550820383335">Indicates the number of sent rows.</p>
|
|
<p id="rds_06_0100__p1909115342812">This parameter is not present in the response for PostgreSQL DB engine.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row26041859185714"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p62791567185714">rowsExamined</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__p18234659102312">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p61265200185714">Indicates the number of scanned rows.</p>
|
|
<p id="rds_06_0100__p1887115565284">This parameter is not present in the response for PostgreSQL DB engine.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row8051277185753"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p65936923185753">database</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p39290538185753">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p28417034185753">Indicates the database which the slow log belongs to.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row62737284185755"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p65776751185755">users</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p26316620185755">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p51271494185755">Indicates the account.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row24608043185759"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p60502836185759">querySample</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p1782674185759">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p10178909185759">Indicates the execution syntax.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row2025783011386"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p325819308383">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p132581130143820">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p16258530153812">Indicates the statement type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_06_0100__en-us_topic_0231893217_row0376204863619"><td class="cellrowborder" valign="top" width="19.220000000000002%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_06_0100__en-us_topic_0231893217_p8588161113810">clientIP</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_06_0100__en-us_topic_0231893217_p658815117386">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="67.74%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_06_0100__en-us_topic_0231893217_p458919153810">Indicates the IP address.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_06_0100__en-us_topic_0231893217_ul26818564"><li id="rds_06_0100__en-us_topic_0231893217_li40040492">Example normal response<pre class="codeblock" id="rds_06_0100__en-us_topic_0231893217_codeblock1595400517759">{
|
|
"pageNumber": 1,
|
|
"pageRecord": 10,
|
|
"slowLogList": [],
|
|
"totalRecord": 0,
|
|
"startTime": null,
|
|
"endTime":null
|
|
}</pre>
|
|
</li><li id="rds_06_0100__en-us_topic_0231893217_li15461118163817">Abnormal response<p id="rds_06_0100__en-us_topic_0231893217_p46896054"><a name="rds_06_0100__en-us_topic_0231893217_li15461118163817"></a><a name="en-us_topic_0231893217_li15461118163817"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0100__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_06_0100__en-us_topic_0032347778_ul7858132212142"><li id="rds_06_0100__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_06_0100__en-us_topic_0032347778_p1040982941020"><a name="rds_06_0100__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_06_0100__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_06_0100__en-us_topic_0032347778_p0723374409"><a name="rds_06_0100__en-us_topic_0032347778_li11583183218149"></a><a name="en-us_topic_0032347778_li11583183218149"></a>For details, see <a href="en-us_topic_0032488240.html">Status Codes</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_06_0100__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_06_0100__en-us_topic_0032347778_p19357163913406">For details, see <a href="en-us_topic_0032488241.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0056887472.html">Log Information Queries</a></div>
|
|
</div>
|
|
</div>
|
|
|