forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Lai, Weijian <laiweijian4@huawei.com> Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
320 lines
23 KiB
HTML
320 lines
23 KiB
HTML
<a name="EN-US_TOPIC_0000001909848040"></a><a name="EN-US_TOPIC_0000001909848040"></a>
|
|
|
|
<h1 class="topictitle1">Querying the Real-Time Resource Usage</h1>
|
|
<div id="body0000001600050933"><div class="section" id="EN-US_TOPIC_0000001909848040__section184315192215"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001909848040__p384411199218">Obtain the real-time usage of all resource pools in the current project.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section128451319321"><h4 class="sectiontitle">Debugging</h4><p id="EN-US_TOPIC_0000001909848040__p5847101911218">You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section584814191725"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0000001909848040__p1185012191526">GET /v2/{project_id}/metrics/runtime/pools</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__table1585481913210" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row1785212191425"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0000001909848040__p118554191211">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0000001909848040__p158566191022">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0000001909848040__p58571219724">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0000001909848040__p1985810191626">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row118526191422"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001909848040__p10859161915215">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001909848040__p12861119729">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001909848040__p208621219628">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001909848040__p148648196216">Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section1786511199210"><h4 class="sectiontitle">Request Parameters</h4><p id="EN-US_TOPIC_0000001909848040__p3866171919210">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section1986831919219"><h4 class="sectiontitle">Response Parameters</h4><p id="EN-US_TOPIC_0000001909848040__p1686915197211"><strong id="EN-US_TOPIC_0000001909848040__b1387031913217">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_PoolRuntimeMetricsList" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row287171912214"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p28751119627">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p1087616191213">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p28779191628">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row1487215195213"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p487819191624">apiVersion</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p1688020194211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p2881121910214">Resource version.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row1487271910215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p1188314191921">kind</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p68854190216">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p2088619195214">Resource type. The options are as follows:</p>
|
|
<ul id="EN-US_TOPIC_0000001909848040__ul17888101912211"><li id="EN-US_TOPIC_0000001909848040__li888871911211"><p id="EN-US_TOPIC_0000001909848040__p18888191728"><a name="EN-US_TOPIC_0000001909848040__li888871911211"></a><a name="li888871911211"></a>PoolMetricsList</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row1587213191329"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p1689016191523">items</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p1289101918219">Array of <a href="#EN-US_TOPIC_0000001909848040__response_MetricsItem">MetricsItem</a> objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p1889315191127">Metric list</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848040__response_MetricsItem"></a><a name="response_MetricsItem"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_MetricsItem" frame="border" border="1" rules="all"><caption><b>Table 3 </b>MetricsItem</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row68949191720"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p6898619921">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p690014195218">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p1990112191326">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row38941419124"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p990210198219">table</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p1490421911220"><a href="#EN-US_TOPIC_0000001909848040__response_table">table</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p790511917217">Indicates the resource list.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row198951319322"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p1390618191211">metadata</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p109087195212"><a href="#EN-US_TOPIC_0000001909848040__response_ResourceMetricsMetadata">ResourceMetricsMetadata</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p1690913192023">Indicates the metadata of a resource indicator.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848040__response_table"></a><a name="response_table"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_table" frame="border" border="1" rules="all"><caption><b>Table 4 </b>table</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row491001915213"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p149139191821">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p16914519821">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p1391611915212">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row199111919426"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p991713192024">allocated</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p149194191225"><a href="#EN-US_TOPIC_0000001909848040__response_Allocated">Allocated</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p16920171911220">Allocated Resources</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row17911151917214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p692112191024">capacity</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p092219191213"><a href="#EN-US_TOPIC_0000001909848040__response_Capacity">Capacity</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p49241119925">Total Resource Capacity</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848040__response_Allocated"></a><a name="response_Allocated"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_Allocated" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Allocated</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row14926019720"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p1692913191723">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.6.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p1493071915218">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.6.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p15932131919217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row69267191526"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p49331019225">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p1993412191822"><a href="#EN-US_TOPIC_0000001909848040__response_Value">Value</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p17936419322">Resource amount.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row59266192216"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p893761919212">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p2093811191424">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p1193918190216">UTC time, in the format yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row139274197215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p179401819624">window</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.6.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p159421719227">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.6.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p7944161918218">Statistics interval. 1s indicates 1 second, 1m indicates 1 minute, and 1h indicates 1 hour.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848040__response_Capacity"></a><a name="response_Capacity"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_Capacity" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Capacity</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row1594721918216"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p195112191121">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p49526199210">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.7.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p39541519922">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row13947151911215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p495519191720">value</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p1095611910218"><a href="#EN-US_TOPIC_0000001909848040__response_Value">Value</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p1095812192026">Number of resources.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row1994818196214"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p795915191210">maxValue</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p129611119529"><a href="#EN-US_TOPIC_0000001909848040__response_Value">Value</a> object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p1963819027">Maximum number of elastic resources.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row3948419726"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p159648191327">timestamp</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p496541920218">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p49671191026">UTC time. The format is yyyy-MM-dd'T'HH:mm:ss'Z'.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row14948619924"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p10968201913213">window</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p1996919197212">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p39701819422">Statistical interval. 1s indicates 1 second, 1m indicates 1 minute, and 1h indicates 1 hour.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848040__response_Value"></a><a name="response_Value"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_Value" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Value</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row69721219625"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.8.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p1497620191822">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.8.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p139788195212">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.8.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p149791195217">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row18972719221"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p39806192215">cpu</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p3982191918213">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p998311194217">Number of CPUs</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row29731819127"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p39841719727">memory</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p17985419325">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p149871119620">Memory</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row99739191728"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p109888191422">nvidia.com/t4</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.8.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p198918191824">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.8.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p499181911220">t4 volume</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001909848040__response_ResourceMetricsMetadata"></a><a name="response_ResourceMetricsMetadata"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__response_ResourceMetricsMetadata" frame="border" border="1" rules="all"><caption><b>Table 8 </b>ResourceMetricsMetadata</caption><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row2992141918220"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="EN-US_TOPIC_0000001909848040__p39958191929">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.2"><p id="EN-US_TOPIC_0000001909848040__p1599631916210">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.9.2.4.1.3"><p id="EN-US_TOPIC_0000001909848040__p10998619621">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row169928191722"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p1799919191529">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p14052017211">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p181102014210">Name of a resource indicator.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001909848040__row13992161910212"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="EN-US_TOPIC_0000001909848040__p3222012212">labels</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="EN-US_TOPIC_0000001909848040__p0310205214">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="EN-US_TOPIC_0000001909848040__p4432019219">Indicates the tag information of a resource metric.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section12617201729"><h4 class="sectiontitle">Example Requests</h4><p id="EN-US_TOPIC_0000001909848040__p681720227">None</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section1896201521"><h4 class="sectiontitle">Example Responses</h4><p id="EN-US_TOPIC_0000001909848040__p011320226"><strong id="EN-US_TOPIC_0000001909848040__b41118208216">Status code: 200</strong></p>
|
|
<p id="EN-US_TOPIC_0000001909848040__p6127206212">OK.</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001909848040__screen11171620220">{
|
|
"apiVersion" : "v2",
|
|
"kind" : "PoolMetricsList",
|
|
"items" : [ {
|
|
"table" : {
|
|
"allocated" : {
|
|
"value" : {
|
|
"cpu" : 5,
|
|
"memory" : "15548Mi",
|
|
"nvidia.com/t4" : "1073m"
|
|
},
|
|
"timestamp" : "2022-03-30T07:09:10Z",
|
|
"window" : "1m"
|
|
},
|
|
"capacity" : {
|
|
"value" : {
|
|
"cpu" : 16,
|
|
"memory" : "64Gi",
|
|
"nvidia.com/t4" : 2
|
|
},
|
|
"maxValue" : {
|
|
"cpu" : 16,
|
|
"memory" : "64Gi",
|
|
"nvidia.com/t4" : 2
|
|
},
|
|
"timestamp" : "2022-03-30T07:09:10Z",
|
|
"window" : "1m"
|
|
}
|
|
},
|
|
"metadata" : {
|
|
"name" : "hougang-rse-pool"
|
|
}
|
|
} ]
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section650162012215"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001909848040__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001909848040__row14511920727"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="EN-US_TOPIC_0000001909848040__p17531620527">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="EN-US_TOPIC_0000001909848040__p2546209218">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001909848040__row185182017210"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="EN-US_TOPIC_0000001909848040__p355020325">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="EN-US_TOPIC_0000001909848040__p13573201625">OK.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001909848040__section75942015216"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0000001909848040__p1861142013219">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="metrics_management.html">Resource indicators</a></div>
|
|
</div>
|
|
</div>
|
|
|