forked from docs/doc-exports
Reviewed-by: Eotvos, Oliver <oliver.eotvos@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
440 lines
31 KiB
HTML
440 lines
31 KiB
HTML
<a name="functiongraph_06_0139"></a><a name="functiongraph_06_0139"></a>
|
|
|
|
<h1 class="topictitle1">Querying Tenant-Level Function Statistics</h1>
|
|
<div id="body1352181710514"><div class="section" id="functiongraph_06_0139__section155213177516"><h4 class="sectiontitle">Function</h4><p id="functiongraph_06_0139__p1452112178519">This API is used to query tenant-level function statistics.</p>
|
|
<p id="functiongraph_06_0139__p1852161718513">The statistics include function format, quota and usage, and traffic report.</p>
|
|
<p id="functiongraph_06_0139__p18521141745116">You can query data in a specific period using the filter and period parameters.</p>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section11522317185111"><h4 class="sectiontitle">URI</h4><p id="functiongraph_06_0139__p115222017175111">GET /v2/{project_id}/fgs/functions/statistics</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__table135231817145120" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="functiongraph_06_0139__row16523171720519"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="functiongraph_06_0139__p8523917145118">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="functiongraph_06_0139__p10524161745114">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="functiongraph_06_0139__p10524117185119">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="functiongraph_06_0139__p752441720516">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row8523817115112"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="functiongraph_06_0139__p6524817145118">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="functiongraph_06_0139__p1752591720515">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="functiongraph_06_0139__p1952513175517">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="functiongraph_06_0139__p4525111715512">Project ID. For details, see <a href="functiongraph_06_0260.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__table1752711174517" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="functiongraph_06_0139__row6526121735117"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="functiongraph_06_0139__p20527217135118">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="functiongraph_06_0139__p1152761711511">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="functiongraph_06_0139__p15271117155119">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="functiongraph_06_0139__p1752716176512">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row2526917155115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0139__p10528171775110">filter</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0139__p13528117115119">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0139__p135281017115111">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0139__p452911713519">Parameter filter.</p>
|
|
<ul id="functiongraph_06_0139__ul1529191745111"><li id="functiongraph_06_0139__li20529131713519">monitor_data: Query detailed statistics.</li><li id="functiongraph_06_0139__li12529151725113">monthly_report: Query monthly statistics.</li></ul>
|
|
<p id="functiongraph_06_0139__p75293171510">Enumeration values:</p>
|
|
<ul id="functiongraph_06_0139__ul1952951710511"><li id="functiongraph_06_0139__li0529101713512"><strong id="functiongraph_06_0139__b18530417135118">monitor_data</strong></li><li id="functiongraph_06_0139__li195301617155114"><strong id="functiongraph_06_0139__b5530191725113">monthly_report</strong></li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row1552691795117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0139__p6530181719517">period</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0139__p95301178514">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0139__p19530181715119">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0139__p7530817185111">The unit is minute. This parameter must be used together with the filter parameter metric.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row352613179512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0139__p953118171511">option</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0139__p8531131714510">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0139__p1953151795116">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0139__p1153121710517">Monthly statistical period. This parameter is valid only when filter is set to monthly_report.</p>
|
|
<p id="functiongraph_06_0139__p55317177517">If a value beyond the preceding range is specified, the default value 0 will be used.</p>
|
|
<ul id="functiongraph_06_0139__ul25313178518"><li id="functiongraph_06_0139__li1053214177513">0: current month</li><li id="functiongraph_06_0139__li1753231765111">1: last month</li><li id="functiongraph_06_0139__li19532417135113">2: last three months</li><li id="functiongraph_06_0139__li6532131785111">3: last six months</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row12526517135111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0139__p12532121755117">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0139__p2532101719518">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0139__p1653311713513">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0139__p115331717165112">Maximum number of data records returned in a request. Max.: 500. Default: 100.</p>
|
|
<p id="functiongraph_06_0139__p553331785112">Default: <strong id="functiongraph_06_0139__b20533151719513">100</strong></p>
|
|
<p id="functiongraph_06_0139__p55331217155110">Minimum: <strong id="functiongraph_06_0139__b453351725114">1</strong></p>
|
|
<p id="functiongraph_06_0139__p2533131717513">Maximum: <strong id="functiongraph_06_0139__b35331517115112">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row85262017175117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="functiongraph_06_0139__p1753319177517">marker</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="functiongraph_06_0139__p135347177511">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="functiongraph_06_0139__p953441713511">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="functiongraph_06_0139__p1153420173512">Start position of the current query. The default value is 0.</p>
|
|
<p id="functiongraph_06_0139__p8534917195115">Default: <strong id="functiongraph_06_0139__b14534817165118">0</strong></p>
|
|
<p id="functiongraph_06_0139__p10534181745116">Minimum: <strong id="functiongraph_06_0139__b953481735110">1</strong></p>
|
|
<p id="functiongraph_06_0139__p205351017195112">Maximum: <strong id="functiongraph_06_0139__b20535171718518">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section1253521725116"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="functiongraph_06_0139__row1253711710519"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="functiongraph_06_0139__p135381417115110">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="functiongraph_06_0139__p10538131715111">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="functiongraph_06_0139__p55391117185117">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="functiongraph_06_0139__p1153912172512">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row18537101765114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0139__p165405174518">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0139__p354071716516">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0139__p2540101713514">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0139__p12540151710510">User token.</p>
|
|
<p id="functiongraph_06_0139__p205401417125120">It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row1253710179515"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="functiongraph_06_0139__p19541317155110">Content-Type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="functiongraph_06_0139__p9541217155111">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="functiongraph_06_0139__p7541151745115">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="functiongraph_06_0139__p854151714513">Message body type (format).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section1254261725117"><h4 class="sectiontitle">Response Parameters</h4><p id="functiongraph_06_0139__p11542141710517"><strong id="functiongraph_06_0139__b354221785113">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__response_ListStatisticsResponseBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0139__row054281716513"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="functiongraph_06_0139__p20543317175116">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="functiongraph_06_0139__p1954321715110">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="functiongraph_06_0139__p17544201725117">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row454221725118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0139__p10544517125114">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0139__p3545151718518">Array of <a href="#functiongraph_06_0139__response_MonthUsed">MonthUsed</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0139__p354521755120">Number of monthly invocations.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row19542151710515"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0139__p1545117205119">gbs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0139__p1654520178511">Array of <a href="#functiongraph_06_0139__response_MonthUsed">MonthUsed</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0139__p1954661725115">Monthly resource usage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row847014435412"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0139__p14708419541">gpu_gbs</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0139__p347010411545">Array of <a href="#functiongraph_06_0139__response_MonthUsed">MonthUsed</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0139__p4470204185413">Monthly GPU usage.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row45421217145118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="functiongraph_06_0139__p254611717517">statistics</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="functiongraph_06_0139__p105461817145119"><a href="#functiongraph_06_0139__response_ListFunctionStatisticsResponseBody">ListFunctionStatisticsResponseBody</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="functiongraph_06_0139__p6546317165115">Function Metrics</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0139__response_MonthUsed"></a><a name="response_MonthUsed"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__response_MonthUsed" frame="border" border="1" rules="all"><caption><b>Table 5 </b>MonthUsed</caption><thead align="left"><tr id="functiongraph_06_0139__row9547111765111"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="functiongraph_06_0139__p155485179510">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="functiongraph_06_0139__p454810171515">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="functiongraph_06_0139__p554891712516">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row2547317125114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0139__p205481917165110">date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0139__p15549191713517">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0139__p754921725118">Date.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row135471917165118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="functiongraph_06_0139__p165495178518">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="functiongraph_06_0139__p135498175513">Number</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="functiongraph_06_0139__p354971715513">Usage.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0139__response_ListFunctionStatisticsResponseBody"></a><a name="response_ListFunctionStatisticsResponseBody"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__response_ListFunctionStatisticsResponseBody" frame="border" border="1" rules="all"><caption><b>Table 6 </b>ListFunctionStatisticsResponseBody</caption><thead align="left"><tr id="functiongraph_06_0139__row10550217195113"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="functiongraph_06_0139__p0551191712517">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="functiongraph_06_0139__p145527178518">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="functiongraph_06_0139__p11552171795114">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row7550131710518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p175521917125111">count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p1155213177517">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p1555261715511">Function invocations.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row145502174518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p955312173512">duration</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p135531717125116">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p35531817185119">Average latency, in milliseconds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row195501517175113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p145531617155110">fail_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p15553817135114">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p1755491720519">Number of errors.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row1155091795117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p1055481705119">max_duration</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p1655410177516">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p1555421717513">Maximum latency, in milliseconds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row455011745120"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p19554517125114">min_duration</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p5555171715118">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p25551517185110">Minimum latency, in milliseconds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row7550917125118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p9555171715513">reject_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p17556111710518">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p1055651735112">Number of throttles.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row355013171518"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p14556141719516">function_error_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p655761765117">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p1855716172512">Number of function errors.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row8551317145119"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p05571217115114">system_error_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p95581517165119">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p4558191718512">Number of system errors.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row1655114176516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p12558191715113">reserved_instance_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p4558141765111">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p10558617185112">Reserved instance metrics.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row1655161765115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="functiongraph_06_0139__p3559141710516">concurrency_num</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="functiongraph_06_0139__p1355931711514">Array of <a href="#functiongraph_06_0139__response_SlaReportsValue">SlaReportsValue</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="functiongraph_06_0139__p105599176516">Elastic instance metrics.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="functiongraph_06_0139__response_SlaReportsValue"></a><a name="response_SlaReportsValue"></a><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__response_SlaReportsValue" frame="border" border="1" rules="all"><caption><b>Table 7 </b>SlaReportsValue</caption><thead align="left"><tr id="functiongraph_06_0139__row11559151765116"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.1"><p id="functiongraph_06_0139__p556021719511">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.6.2.4.1.2"><p id="functiongraph_06_0139__p45618171517">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.6.2.4.1.3"><p id="functiongraph_06_0139__p12561161775110">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row1559101715117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="functiongraph_06_0139__p1856181735116">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="functiongraph_06_0139__p14561117105117">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="functiongraph_06_0139__p195613171517">Timestamp.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row9560141765115"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.1 "><p id="functiongraph_06_0139__p956291715512">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.6.2.4.1.2 "><p id="functiongraph_06_0139__p155621917135111">Double</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.6.2.4.1.3 "><p id="functiongraph_06_0139__p656212175512">Value. If the value is -1, the metric has no data in the current period. The possible cause is that the function is not executed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="functiongraph_06_0139__p6562111718519"><strong id="functiongraph_06_0139__b4562131765113">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="functiongraph_06_0139__row10563131735119"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.1"><p id="functiongraph_06_0139__p1156451713513">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.8.2.4.1.2"><p id="functiongraph_06_0139__p17564617165119">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.8.2.4.1.3"><p id="functiongraph_06_0139__p15564181716515">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row1356321735110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="functiongraph_06_0139__p15641717125116">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="functiongraph_06_0139__p35647176519">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="functiongraph_06_0139__p1156581718511">Error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row155631317195114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.1 "><p id="functiongraph_06_0139__p1256521718519">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.8.2.4.1.2 "><p id="functiongraph_06_0139__p1856591795118">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.8.2.4.1.3 "><p id="functiongraph_06_0139__p556561735111">Error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section456511175519"><h4 class="sectiontitle">Example Requests</h4><p id="functiongraph_06_0139__p18566121718511">Query tenant-level function statistics.</p>
|
|
<pre class="screen" id="functiongraph_06_0139__screen95661117175120">GET /v2/{project_id}/fgs/functions/statistics</pre>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section956619176519"><h4 class="sectiontitle">Example Responses</h4><p id="functiongraph_06_0139__p4566181745118"><strong id="functiongraph_06_0139__b156671714516">Status code: 200</strong></p>
|
|
<p id="functiongraph_06_0139__p1256681715513">Query successful.</p>
|
|
<pre class="screen" id="functiongraph_06_0139__screen125751917175117">{
|
|
"statistics" : {
|
|
"count" : [ {
|
|
"timestamp" : 1596679200000,
|
|
"value" : -1
|
|
}, {
|
|
"timestamp" : 1596682800000,
|
|
"value" : 2
|
|
}, {
|
|
"timestamp" : 1596686400000,
|
|
"value" : -1
|
|
} ],
|
|
"duration" : [ {
|
|
"timestamp" : 1596679200000,
|
|
"value" : -1
|
|
}, {
|
|
"timestamp" : 1596682800000,
|
|
"value" : 950
|
|
}, {
|
|
"timestamp" : 1596686400000,
|
|
"value" : -1
|
|
} ],
|
|
"fail_count" : [ {
|
|
"timestamp" : 1596679200000,
|
|
"value" : -1
|
|
}, {
|
|
"timestamp" : 1596682800000,
|
|
"value" : 0
|
|
}, {
|
|
"timestamp" : 1596686400000,
|
|
"value" : -1
|
|
} ],
|
|
"max_duration" : [ {
|
|
"timestamp" : 1596679200000,
|
|
"value" : -1
|
|
}, {
|
|
"timestamp" : 1596682800000,
|
|
"value" : 740
|
|
}, {
|
|
"timestamp" : 1596686400000,
|
|
"value" : -1
|
|
} ],
|
|
"min_duration" : [ {
|
|
"timestamp" : 1596679200000,
|
|
"value" : -1
|
|
}, {
|
|
"timestamp" : 1596682800000,
|
|
"value" : 210
|
|
}, {
|
|
"timestamp" : 1596686400000,
|
|
"value" : -1
|
|
} ],
|
|
"reject_count" : [ {
|
|
"timestamp" : 1596679200000,
|
|
"value" : -1
|
|
}, {
|
|
"timestamp" : 1596682800000,
|
|
"value" : 0
|
|
}, {
|
|
"timestamp" : 1596686400000,
|
|
"value" : -1
|
|
} ]
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section2401318165118"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="functiongraph_06_0139__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="functiongraph_06_0139__row1458201745115"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="functiongraph_06_0139__p10405185513">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="functiongraph_06_0139__p1740171825113">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="functiongraph_06_0139__row145821417175114"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0139__p194021875118">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0139__p0401818175119">Query successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="functiongraph_06_0139__row20582201715119"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="functiongraph_06_0139__p1401818115113">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="functiongraph_06_0139__p10401318185111">Bad Request</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="functiongraph_06_0139__section13402018135119"><h4 class="sectiontitle">Error Codes</h4><p id="functiongraph_06_0139__p13401718145111">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="FunctionMetrics.html">Function Metrics</a></div>
|
|
</div>
|
|
</div>
|
|
|