forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Li, Qiao <qiaoli@huawei.com> Co-committed-by: Li, Qiao <qiaoli@huawei.com>
121 lines
9.5 KiB
HTML
121 lines
9.5 KiB
HTML
<a name="waf_02_0077"></a><a name="waf_02_0077"></a>
|
|
|
|
<h1 class="topictitle1">Querying the Total Number of Requests per Second</h1>
|
|
<div id="body42367314"><div class="section" id="waf_02_0077__section24663769"><h4 class="sectiontitle">Function Description</h4><p class="msonormal" id="waf_02_0077__p9200401">This API is used to query the total number of requests per second.</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0077__section51608295"><h4 class="sectiontitle">URI</h4><ul id="waf_02_0077__ul32967466"><li id="waf_02_0077__li28271739">URI format<p id="waf_02_0077__p53119059"><a name="waf_02_0077__li28271739"></a><a name="li28271739"></a>GET /v1/{project_id}/waf/event/request/peak?from={from}&to={to}&hosts={hostids}</p>
|
|
<div class="note" id="waf_02_0077__note63241148751"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="waf_02_0077__p23244481054">An example of a URI is as follows:</p>
|
|
<p id="waf_02_0077__p774833712618">GET /v1/3ac26c59e15a4a11bb680a103a29ddb6/waf/event/attack/type?from=1543976973635&to=1563976973635&hosts=3211757cafa3437aae24d760022e79ba&hosts=93029844064b43739b51ca63036fbc4b&hosts=34fe5f5c60ef4e43a9975296765d1217</p>
|
|
</div></div>
|
|
</li><li id="waf_02_0077__li8309483">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0077__table7676484" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="waf_02_0077__row53791928"><th align="left" class="cellrowborder" valign="top" width="25.507449255074494%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="waf_02_0077__p62178935"><strong id="waf_02_0077__b47578335273">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.348265173482652%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="waf_02_0077__p3328970"><strong id="waf_02_0077__b1288643514271">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.348265173482652%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="waf_02_0077__p1211162"><strong id="waf_02_0077__b11479370279">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="39.796020397960206%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="waf_02_0077__p30995278"><strong id="waf_02_0077__b557993862713">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0077__row27589583"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0077__p20163716">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0077__p22648277">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0077__p22571180">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0077__p16326254">Specifies the project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0077__row12718564"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0077__p23570740">from</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0077__p30181797">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0077__p629819401359">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0077__p18857034">Specifies the start time (UTC) in milliseconds. For example, <strong id="waf_02_0077__b755774118549">1548172800000</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0077__row22044242519"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0077__p1820412246510">to</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0077__p74981428751">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0077__p918445753">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0077__p1020414242511">Specifies the end time (UTC) in milliseconds. For example, <strong id="waf_02_0077__b949424855410">1548431999000</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="waf_02_0077__row61969231"><td class="cellrowborder" valign="top" width="25.507449255074494%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="waf_02_0077__p53451813">hosts</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="waf_02_0077__p34629567">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.348265173482652%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="waf_02_0077__p53531525">Array</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="39.796020397960206%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="waf_02_0077__p41086305">Specifies the domain IDs.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="waf_02_0077__section61821472"><h4 class="sectiontitle">Request</h4><p id="waf_02_0077__p7459926151510">Request parameters</p>
|
|
<p class="msonormal" id="waf_02_0077__p39656376">None</p>
|
|
</div>
|
|
<div class="section" id="waf_02_0077__section19522341"><h4 class="sectiontitle">Response</h4><p id="waf_02_0077__p6890153231515">Response parameters</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0077__table595532713613" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="waf_02_0077__row095519271617"><th align="left" class="cellrowborder" valign="top" width="20.142014201420142%" id="mcps1.3.4.3.2.4.1.1"><p id="waf_02_0077__p17955827167"><strong id="waf_02_0077__b174431848103910">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.761676167616763%" id="mcps1.3.4.3.2.4.1.2"><p id="waf_02_0077__p99551271569"><strong id="waf_02_0077__b82804507394">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.0963096309631%" id="mcps1.3.4.3.2.4.1.3"><p id="waf_02_0077__p995522713617"><strong id="waf_02_0077__b131611852133910">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0077__row2955927862"><td class="cellrowborder" valign="top" width="20.142014201420142%" headers="mcps1.3.4.3.2.4.1.1 "><p id="waf_02_0077__p9955427764">qps</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.761676167616763%" headers="mcps1.3.4.3.2.4.1.2 "><p id="waf_02_0077__p29557271764">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.0963096309631%" headers="mcps1.3.4.3.2.4.1.3 "><p id="waf_02_0077__p1095518271362">Specifies the total number of requests per second.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="waf_02_0077__section65815403158"><h4 class="sectiontitle">Example</h4><p id="waf_02_0077__p386464011458"></p>
|
|
<div class="p" id="waf_02_0077__p11354134501516">Response example<pre class="screen" id="waf_02_0077__screen4589340161519">{
|
|
"qps": 800
|
|
}</pre>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="waf_02_0077__section41483341"><h4 class="sectiontitle">Status Code</h4><div class="p" id="waf_02_0077__waf_02_0012_a652d4922b7df48fca0a65bc1a38ea5f2"><a href="#waf_02_0077__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0">Table 3</a> describes the normal status code returned by the API.
|
|
<div class="tablenoborder"><a name="waf_02_0077__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><a name="waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0"></a><table cellpadding="4" cellspacing="0" summary="" id="waf_02_0077__waf_02_0012_t82c3440f3efb42a38b9d4dc4011a33d0" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Status code</caption><thead align="left"><tr id="waf_02_0077__waf_02_0012_r3d6e2f205c444705bdbb9daaac74e575"><th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.6.2.2.2.4.1.1"><p id="waf_02_0077__waf_02_0012_af3c4073076f24eca88d94e3fa1effdc6">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.41%" id="mcps1.3.6.2.2.2.4.1.2"><p id="waf_02_0077__waf_02_0012_en-us_topic_0144911667_p4531342288">Description</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.589999999999996%" id="mcps1.3.6.2.2.2.4.1.3"><p id="waf_02_0077__waf_02_0012_ada185614bba24140995b8123b3e9faa8">Meaning</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="waf_02_0077__waf_02_0012_rc7b2adc390904a1ba79e303017797786"><td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.6.2.2.2.4.1.1 "><p id="waf_02_0077__waf_02_0012_a93f3895d44bb4226934cc626ac50e37b">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.41%" headers="mcps1.3.6.2.2.2.4.1.2 "><p id="waf_02_0077__waf_02_0012_en-us_topic_0144911667_p7538425819">OK</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.589999999999996%" headers="mcps1.3.6.2.2.2.4.1.3 "><p id="waf_02_0077__waf_02_0012_en-us_topic_0144911667_p369874114414">The request has succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p id="waf_02_0077__waf_02_0012_en-us_topic_0144911667_p482819399522">For details about error status codes, see <a href="waf_02_0085.html">Status Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="waf_02_0069.html">Event Logs</a></div>
|
|
</div>
|
|
</div>
|
|
|