forked from docs/doc-exports
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
366 lines
28 KiB
HTML
366 lines
28 KiB
HTML
<a name="ListGaussMySqlSlowLog"></a><a name="ListGaussMySqlSlowLog"></a>
|
|
|
|
<h1 class="topictitle1">Querying Database Slow Logs</h1>
|
|
<div id="body0000001139477333"><div class="section" id="ListGaussMySqlSlowLog__section44230431101549"><h4 class="sectiontitle">Function</h4><p id="ListGaussMySqlSlowLog__p1350220403353">This API is used to query database slow logs. Before using this API:</p>
|
|
<ul id="ListGaussMySqlSlowLog__ul924420236520"><li id="ListGaussMySqlSlowLog__li136356359522">Learn how to <a href="gaussdb_03_0001.html">authorize and authenticate</a> it.</li><li id="ListGaussMySqlSlowLog__li1991981933613">Obtain the required <a href="gaussdb_00_0003.html">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section84423324115"><h4 class="sectiontitle">URI</h4><p id="ListGaussMySqlSlowLog__p7442143211114">GET /v3/{project_id}/instances/{instance_id}/slowlog</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__table16443183221113" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row16442632171118"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ListGaussMySqlSlowLog__p9443332151115">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ListGaussMySqlSlowLog__p12443163281113">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ListGaussMySqlSlowLog__p04431632101116">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ListGaussMySqlSlowLog__p114431232131118">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row344283219118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p144431132161117">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p9443193215114">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p1844317326110">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p748877132">Project ID of a tenant in a region.</p>
|
|
<p id="ListGaussMySqlSlowLog__p204817781311">To obtain this value, see <a href="gaussdb_10_0004.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row154421432161112"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p74432325116">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p19444113291119">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p19444123217115">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p4444193214112">DB instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__table1744416323118" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query parameters</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row18444163210118"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="ListGaussMySqlSlowLog__p1844433217119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="ListGaussMySqlSlowLog__p19445932161120">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="ListGaussMySqlSlowLog__p17445173218116">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="ListGaussMySqlSlowLog__p104456322111">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row8444932191110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p3445173221115">start_date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p24451732111116">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p15445432151110">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p13304820101318">Start time in the "yyyy-mm-ddThh:mm:ssZ" format.</p>
|
|
<p id="ListGaussMySqlSlowLog__p1596361044319"><strong id="ListGaussMySqlSlowLog__b5738519571">T</strong> is the separator between calendar and hourly notation of time. <strong id="ListGaussMySqlSlowLog__b187444191712">Z</strong> indicates the time zone offset.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1744414327118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p44451232201112">end_date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p2044513326116">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p044615327117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p1737926191318">End time in the "yyyy-mm-ddThh:mm:ssZ" format.</p>
|
|
<p id="ListGaussMySqlSlowLog__p9187153310449"><strong id="ListGaussMySqlSlowLog__b19212192316719">T</strong> is the separator between calendar and hourly notation of time. <strong id="ListGaussMySqlSlowLog__b192133239717">Z</strong> indicates the time zone offset.</p>
|
|
<p id="ListGaussMySqlSlowLog__p133702621314">Only error logs generated within the last month can be queried.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row174445326118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p154461329116">offset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p8446143214116">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p1444663213112">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p124464322111">Index offset. If <strong id="ListGaussMySqlSlowLog__b105711653135914">offset</strong> is set to <em id="ListGaussMySqlSlowLog__i145718534593">N</em>, the resource query starts from the N+1 piece of data. The value is <strong id="ListGaussMySqlSlowLog__b3571105312599">0</strong> by default, indicating that the query starts from the first piece of data. The value cannot be a negative number.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1744412323116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p544633281116">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p3446232121118">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p144461032111117">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p1044614322113">Number of records to be queried. The default value is <strong id="ListGaussMySqlSlowLog__b19309965223950">100</strong>. The value must be a positive integer. The minimum value is <strong id="ListGaussMySqlSlowLog__b137207574223950">1</strong> and the maximum value is <strong id="ListGaussMySqlSlowLog__b207983387423950">100</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row164441732131115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p1447153217112">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p14447113221114">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p0447832161117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p1534594011130">Statement type. The default value <strong id="ListGaussMySqlSlowLog__b210173493023950">All</strong>. If this parameter is left empty, all statement types are queried. Valid value:</p>
|
|
<ul id="ListGaussMySqlSlowLog__ul73451240111310"><li id="ListGaussMySqlSlowLog__li3345194019130">ALL</li><li id="ListGaussMySqlSlowLog__li133451040141316">INSERT</li><li id="ListGaussMySqlSlowLog__li13345134016137">UPDATE</li><li id="ListGaussMySqlSlowLog__li8345144018135">SELECT</li><li id="ListGaussMySqlSlowLog__li16345940161317">DELETE</li><li id="ListGaussMySqlSlowLog__li1934594091315">CREATE</li><li id="ListGaussMySqlSlowLog__li1734554041315">DROP</li><li id="ListGaussMySqlSlowLog__li14345194010137">ALTER</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row18444332131114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p12447173216111">node_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p744710322117">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p1447133251117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p184471132151112">Node ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section1844743217115"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row14486327116"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ListGaussMySqlSlowLog__p1844843261116">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ListGaussMySqlSlowLog__p144873216112">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ListGaussMySqlSlowLog__p1144873241112">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ListGaussMySqlSlowLog__p7448123214115">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row104484328115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p1044833214111">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p1448153220113">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p544843215119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p11449832181115">User token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row14484325113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ListGaussMySqlSlowLog__p3449132171120">X-Language</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ListGaussMySqlSlowLog__p5449103291110">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ListGaussMySqlSlowLog__p5449153215111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ListGaussMySqlSlowLog__p744920324112">Language.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section17449132171116"><h4 class="sectiontitle">Response Parameters</h4><p id="ListGaussMySqlSlowLog__p6449123281116"><strong id="ListGaussMySqlSlowLog__b168005143925059">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__response_MysqlSlowLog" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row1244963218113"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="ListGaussMySqlSlowLog__p14450113281117">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="ListGaussMySqlSlowLog__p3450153211119">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="ListGaussMySqlSlowLog__p94501032131114">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row44495325113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p17450532141116">slow_log_list</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p94501732171114">Array of <a href="#ListGaussMySqlSlowLog__response_MysqlSlowLogList">MysqlSlowLogList</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p164501932171119">Error log details.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row744903219118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p1245193211116">long_query_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p11451932121110">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p154518324111">Slow query log threshold.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row4449103241114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p3451732111116">total_record</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p1545115323112">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p74511532181111">Total number of records.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="ListGaussMySqlSlowLog__response_MysqlSlowLogList"></a><a name="response_MysqlSlowLogList"></a><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__response_MysqlSlowLogList" frame="border" border="1" rules="all"><caption><b>Table 5 </b>MysqlSlowLogList</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row945216329116"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="ListGaussMySqlSlowLog__p6452123213115">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="ListGaussMySqlSlowLog__p24521032161114">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="ListGaussMySqlSlowLog__p8452173251115">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row5452173213116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p2452153217114">node_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p10452173211119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p6453173251118">Node ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row11452832131110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p1345383215117">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p10453103216113">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p1645319322111">Number of executions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1545210325117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p9453163211117">time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p16453133261116">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p44531632101113">Execution time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row445233211112"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p3453163241115">lock_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p74531932161116">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p16454132101116">Lock wait time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1045211320111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p17454173219116">rows_sent</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p145543261116">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p164551232191111">Number of sent rows.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row94521932121120"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p20455732151119">rows_examined</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p15455113214117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p14559326110">Number of scanned rows.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row18452153214114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p194551332121118">database</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p8455133218119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p14455832181110">Database which slow logs belong to.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row10452173241119"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p1945533231113">users</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p104567323113">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p1645623251114">Account.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1745217322115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p1045683217118">query_sample</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p1456143218111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p174561732141114">Execution syntax.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1452163241111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p445613326115">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p15456153201113">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p845643221118">Statement type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row18452153216118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p8456153261119">start_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p4456832151117">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p16457132141112">Start time in the UTC format.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row145210324113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p545783291120">client_ip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p345713261112">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p1445743291113">IP address.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ListGaussMySqlSlowLog__p1845723281113"><strong id="ListGaussMySqlSlowLog__b76767555125254">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__response_MysqlErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row1457132131111"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="ListGaussMySqlSlowLog__p745718323119">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.2"><p id="ListGaussMySqlSlowLog__p134581332131111">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.6.2.4.1.3"><p id="ListGaussMySqlSlowLog__p10458113214114">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row045783231113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p1345853281119">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p945853210111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p1045873241114">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row184571232181116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p8458193231119">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p19458632191112">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p1245810321113">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="ListGaussMySqlSlowLog__p74584325117"><strong id="ListGaussMySqlSlowLog__b17458632121111">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ListGaussMySqlSlowLog__table1458173212110" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="ListGaussMySqlSlowLog__row9459632121113"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="ListGaussMySqlSlowLog__p4459163218118">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.2"><p id="ListGaussMySqlSlowLog__p445919323119">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.8.2.4.1.3"><p id="ListGaussMySqlSlowLog__p145973261110">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="ListGaussMySqlSlowLog__row145913324114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p94596329118">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p12459193291120">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p144591932161113">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="ListGaussMySqlSlowLog__row1345913322111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ListGaussMySqlSlowLog__p1746023220114">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ListGaussMySqlSlowLog__p18460532131119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ListGaussMySqlSlowLog__p1346083210119">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section11460832111111"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="ListGaussMySqlSlowLog__screen152168572283">GET https://gaussdb-mysql.eu-de.otc.t-systems.com/v3/054e292c9880d4992f02c0196d3ea468/instances/096c0fc43e804757b59946b80dc27f8bin07/slowlog?offset=0&limit=1&start_date=2022-07-10T00:00:00+0800&end_date=2022-07-19T00:00:00+0800&node_id=cc07c60e94ec4575989840e648fb4f66no07&type=INSERT</pre>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section1746016322116"><h4 class="sectiontitle">Example Response</h4><p id="ListGaussMySqlSlowLog__p84602327113"><strong id="ListGaussMySqlSlowLog__b137958919225059">Status code: 200</strong></p>
|
|
<div class="p" id="ListGaussMySqlSlowLog__p3460163281119">Success.<pre class="screen" id="ListGaussMySqlSlowLog__screen5461153251114">{
|
|
"slow_log_list" : [ {
|
|
"node_id" : "cc07c60e94ec4575989840e648fb4f66no07",
|
|
"count" : 1,
|
|
"time" : "1.04899 s",
|
|
"lock_time" : "0.00003 s",
|
|
"rows_sent" : 0,
|
|
"rows_examined" : 0,
|
|
"database" : "gaussdb-mysql",
|
|
"users" : "root",
|
|
"query_sample" : "INSERT INTO time_zone_name (Name, Time_zone_id) VALUES (N @time_zone_id);",
|
|
"type" : "INSERT",
|
|
"start_time" : "2022-07-11T00:00:00+0800",
|
|
"client_ip" : "192.*.*.1"
|
|
} ],
|
|
"long_query_time" : 10,
|
|
"total_record" : 1
|
|
}</pre>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section4778540915440"><h4 class="sectiontitle">Status Code</h4><p id="ListGaussMySqlSlowLog__p0723374409">For details, see <a href="gaussdb_10_0002.html">Status Codes</a>.</p>
|
|
</div>
|
|
<div class="section" id="ListGaussMySqlSlowLog__section1852693910184"><h4 class="sectiontitle">Error Code</h4><p id="ListGaussMySqlSlowLog__p16527143915184">For details, see <a href="gaussdb_10_0003.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000007.html">Log Management</a></div>
|
|
</div>
|
|
</div>
|
|
|