forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com> Co-committed-by: Wuwan, Qi <wuwanqi1@noreply.gitea.eco.tsi-dev.otc-service.com>
572 lines
25 KiB
HTML
572 lines
25 KiB
HTML
<a name="EN-US_TOPIC_0000002341058270"></a><a name="EN-US_TOPIC_0000002341058270"></a>
|
||
|
||
<h1 class="topictitle1">Monitoring a Resource Pool</h1>
|
||
<div id="body1708331107508"><div class="section"><h4 class="sectiontitle">Function</h4><p>This API is used to obtain the monitored resource pool information.</p>
|
||
</div>
|
||
<div class="section" id="EN-US_TOPIC_0000002341058270__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p>GET /v2/{project_id}/pools/{pool_name}/monitor</p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p>Mandatory</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p>project_id</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p>Yes</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p>Project ID. For details, see <a href="modelarts_03_0147.html">Obtaining a Project ID and Name</a>.</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p>pool_name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p>Yes</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p>Resource pool ID. The value is the <strong>metadata.name</strong> field in the resource pool details.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p>Mandatory</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p>time_range</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p>No</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p>Time range for query. The default value is <strong>-1.-1.60</strong>. The format is startTimeInMillis.endTimeInMillis.durationInMinutes. Parameter description:</p>
|
||
<ul><li><p><strong>startTimeInMillis</strong>: Start time (UTC) of the query, in milliseconds. If this parameter is set to <strong>-1</strong>, the server calculates the start time as follows: endTimeInMillis – durationInMinutes x 60 x 1000.</p>
|
||
</li><li><p><strong>endTimeInMillis</strong>: End time (UTC) of the query, in milliseconds. If this parameter is set to <strong>-1</strong>, the server calculates the end time as follows: startTimeInMillis + durationInMinutes x 60 x 1000. If the calculated end time is later than the current system time, the current system time is used.</p>
|
||
</li><li><p><strong>durationInMinutes</strong>: Time span, in minutes. The value must be greater than <strong>0</strong>, and also greater than or equal to the result of "(endTimeInMillis – startTimeInMillis)/(60 x 1000) – 1".</p>
|
||
<p>If both the start time and end time are set to <strong>-1</strong>, the system sets the end time to the current UTC time (in milliseconds) and calculates the start time as follows: endTimeInMillis – durationInMinutes x 60 x 1000. For example, <strong>-1.-1.60</strong> indicates the latest 60 minutes. Constraint: In a single request, the following condition must be met: durationInMinutes x 60/period ≤ 1440.</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p>statistics</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p>No</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p>Statistical mode. The options are as follows:</p>
|
||
<ul><li><p><strong>maximum</strong>: maximum value statistics (default setting)</p>
|
||
</li><li><p><strong>minimum</strong>: minimum value statistics</p>
|
||
</li><li><p><strong>sum</strong>: sum statistics</p>
|
||
</li><li><p><strong>average</strong>: average value statistics</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p>period</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p>No</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p>Monitoring data granularity, in seconds. The options are as follows:</p>
|
||
<ul><li><p><strong>60</strong>: The granularity is 1 minute, which is the default value.</p>
|
||
</li><li><p><strong>300</strong>: The granularity is 5 minutes.</p>
|
||
</li><li><p><strong>900</strong>: The granularity is 15 minutes.</p>
|
||
</li><li><p><strong>3600</strong>: The granularity is 1 hour.</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="section"><h4 class="sectiontitle">Request Parameters</h4><p>None</p>
|
||
</div>
|
||
<div class="section"><h4 class="sectiontitle">Response Parameters</h4><p><strong>Status code: 200</strong></p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_PoolMonitor" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p>metrics</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p>Array of <a href="#EN-US_TOPIC_0000002341058270__response_PoolMetricItem">PoolMetricItem</a> objects</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p>Metric list. The JSON array can contain a maximum of 20 metrics.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058270__response_PoolMetricItem"></a><a name="response_PoolMetricItem"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_PoolMetricItem" frame="border" border="1" rules="all"><caption><b>Table 4 </b>PoolMetricItem</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p>metric</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p>Array of <a href="#EN-US_TOPIC_0000002341058270__response_PoolMetricItemValue">PoolMetricItemValue</a> objects</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p>Metrics.</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p>dataPoints</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p>Array of <a href="#EN-US_TOPIC_0000002341058270__response_PoolMetricDataPoint">PoolMetricDataPoint</a> objects</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p>Key metrics.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058270__response_PoolMetricItemValue"></a><a name="response_PoolMetricItemValue"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_PoolMetricItemValue" frame="border" border="1" rules="all"><caption><b>Table 5 </b>PoolMetricItemValue</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p>metricName</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p>Metric name. The options are as follows:</p>
|
||
<ul><li><p><strong>cpuUsage</strong>: CPU usage</p>
|
||
</li><li><p><strong>memUsedRate</strong>: memory usage</p>
|
||
</li><li><p><strong>gpuUtil</strong>: GPU usage</p>
|
||
</li><li><p><strong>gpuMemUsage</strong>: used GPU memory</p>
|
||
</li><li><p><strong>npuUtil</strong>: NPU usage</p>
|
||
</li><li><p><strong>npuMemUsage</strong>: used NPU memory</p>
|
||
</li><li><p><strong>diskCapacity</strong>: disk capacity</p>
|
||
</li><li><p><strong>diskAvailableCapacity</strong>: available disk capacity</p>
|
||
</li><li><p><strong>diskUsedRate</strong>: disk usage</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p>namespace</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p>Metric namespace. The options are as follows:</p>
|
||
<ul><li><p><strong>PAAS.CONTAINER</strong>: namespace of component, instance, process, and container metrics</p>
|
||
</li><li><p><strong>PAAS.NODE</strong>: namespace of host, network, disk, and file system metrics</p>
|
||
</li><li><p><strong>PAAS.SLA</strong>: namespace of SLA metrics</p>
|
||
</li><li><p><strong>PAAS.AGGR</strong>: namespace of cluster metrics</p>
|
||
</li><li><p><strong>CUSTOMMETRICS</strong>: default namespace of custom metrics</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p>dimensions</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p>Array of <a href="#EN-US_TOPIC_0000002341058270__response_PoolMetricDimensionItem">PoolMetricDimensionItem</a> objects</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p>Dimensions.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058270__response_PoolMetricDimensionItem"></a><a name="response_PoolMetricDimensionItem"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_PoolMetricDimensionItem" frame="border" border="1" rules="all"><caption><b>Table 6 </b>PoolMetricDimensionItem</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p>name</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p>Metric dimension name.</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p>value</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p>Metric dimension value.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058270__response_PoolMetricDataPoint"></a><a name="response_PoolMetricDataPoint"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_PoolMetricDataPoint" frame="border" border="1" rules="all"><caption><b>Table 7 </b>PoolMetricDataPoint</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p>timestamp</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p>Integer</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p>Timestamp.</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p>unit</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p>Time series unit.</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p>statistics</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p>Array of <a href="#EN-US_TOPIC_0000002341058270__response_PoolMetricDataPointValue">PoolMetricDataPointValue</a> objects</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p>List of statistical values.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="tablenoborder"><a name="EN-US_TOPIC_0000002341058270__response_PoolMetricDataPointValue"></a><a name="response_PoolMetricDataPointValue"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_PoolMetricDataPointValue" frame="border" border="1" rules="all"><caption><b>Table 8 </b>PoolMetricDataPointValue</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p>statistic</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p>Statistical mode. The options are as follows:</p>
|
||
<ul><li><p><strong>maximum</strong>: maximum value statistics</p>
|
||
</li><li><p><strong>average</strong>: average value statistics</p>
|
||
</li></ul>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p>value</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p>Float</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p>Statistical result. The value <strong>-1</strong> indicates invalid data.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p><strong>Status code: 404</strong></p>
|
||
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__response_ErrorResponse" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.1"><p>Parameter</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.2"><p>Type</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.10.2.4.1.3"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p>error_code</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p>Error code.</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p>error_msg</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p>String</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p>Error message.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="section"><h4 class="sectiontitle">Example Requests</h4><p>Obtain the monitored resource pool information.</p>
|
||
<pre class="screen">GET https://{endpoint}/v2/{project_id}/pools/{pool_name}/monitor
|
||
|
||
{ }</pre>
|
||
</div>
|
||
<div class="section"><h4 class="sectiontitle">Example Responses</h4><p><strong>Status code: 200</strong></p>
|
||
<p>OK</p>
|
||
<pre class="screen">{
|
||
"metrics" : [ {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "cpuUsage",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 7.944
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 7.88
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "memUsedRate",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 13.83
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 13.836
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "gpuUtil",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "gpuMemUsage",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "npuUtil",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "npuMemUsage",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : -1
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "diskAvailableCapacity",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Megabytes",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 834383.4
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Megabytes",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 834379.2
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "diskCapacity",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Megabytes",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 1105920
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Megabytes",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 1105920
|
||
} ]
|
||
} ]
|
||
}, {
|
||
"metric" : {
|
||
"dimensions" : [ {
|
||
"name" : "clusterId",
|
||
"value" : "83df17f1-d74c-11ec-a070-0255ac1000c3"
|
||
} ],
|
||
"metricName" : "diskUsedRate",
|
||
"namespace" : "PAAS.AGGR"
|
||
},
|
||
"dataPoints" : [ {
|
||
"timestamp" : 1655193600000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 24.553
|
||
} ]
|
||
}, {
|
||
"timestamp" : 1655197200000,
|
||
"unit" : "Percent",
|
||
"statistics" : [ {
|
||
"statistic" : "average",
|
||
"value" : 24.553
|
||
} ]
|
||
} ]
|
||
} ]
|
||
}</pre>
|
||
<p><strong>Status code: 404</strong></p>
|
||
<p>Not found.</p>
|
||
<pre class="screen">{
|
||
"error_code" : "ModelArts.50015001",
|
||
"error_msg" : "pool not found"
|
||
}</pre>
|
||
</div>
|
||
<div class="section"><h4 class="sectiontitle">Status Codes</h4>
|
||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002341058270__status_code" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p>Status Code</p>
|
||
</th>
|
||
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p>Description</p>
|
||
</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody><tr><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p>200</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p>OK</p>
|
||
</td>
|
||
</tr>
|
||
<tr><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p>404</p>
|
||
</td>
|
||
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p>Not found.</p>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
<div class="section"><h4 class="sectiontitle">Error Codes</h4><p>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="pools_management.html">Resource Pool Management</a></div>
|
||
</div>
|
||
</div>
|
||
|