Files
doc-exports/docs/ces/api-ref/ShowAlarmTemplate.html
qiujiandong1 e9265fb6b0 CES API Update -20250521 version
Reviewed-by: Ziuzko, Alevtina <alevtina.ziuzko@t-systems.com>
Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com>
Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
2025-12-05 10:48:24 +00:00

532 lines
57 KiB
HTML

<a name="ShowAlarmTemplate"></a><a name="ShowAlarmTemplate"></a>
<h1 class="topictitle1">Querying Details of an Alarm Template</h1>
<div id="body8662426"><div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section583243310528"><h4 class="sectiontitle">Function</h4><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1683233317522">This API is used to query details of an alarm template.</p>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section7832103310521"><h4 class="sectiontitle">URI</h4><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p9832113315218">GET /v2/{project_id}/alarm-templates/{template_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_table1483333310524" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row28336336524"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p283373318529">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p18833113395213">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p98331933195212">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p188331433125218">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row198330339523"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p118338332523">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p283315332523">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p178332337525">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ShowAlarmTemplate__p42316702175455">Project ID.</p>
<p id="ShowAlarmTemplate__p191415137612">For details about how to obtain the project ID, see <a href="ces_03_0057.html">Obtaining a Project ID</a>.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001646899046_p18100524114814">Minimum: <strong id="ShowAlarmTemplate__b92568844334114">1</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001646899046_p81001524104817">Maximum: <strong id="ShowAlarmTemplate__b72739820283317">64</strong></p>
<p id="ShowAlarmTemplate__p4697184133915"><strong id="ShowAlarmTemplate__b74206548925142">Regular expression matching</strong>: ^[a-zA-Z0-9-]{1,64}$</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row1283319330522"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p9834133320528">template_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2834153305219">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p138341433205214">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p283463317520">ID of an alarm template. The ID starts with <strong id="ShowAlarmTemplate__b102131738172415">at</strong> and is followed by letters, digits, or a combination of both. The value can contain a maximum of 64 characters.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1834183385210">Minimum: <strong id="ShowAlarmTemplate__b284030753114457">2</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1183419336524">Maximum: <strong id="ShowAlarmTemplate__b52028724383317">64</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section083420334525"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row28341833135211"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1383443310521">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p383420338520">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p583473345212">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14834153311524">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row7834233165215"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p10835143316526">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1835203305219">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1835123317526">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="ShowAlarmTemplate__p5976545113615">User token. It is a response to the API for obtaining a user token. This API is the only one that does not require authentication. After a response is returned, the value of <strong id="ShowAlarmTemplate__b98307069233920">X-Subject-Token</strong> in the response header is the token.</p>
<p id="ShowAlarmTemplate__p11976124516364">Minimum: <strong id="ShowAlarmTemplate__b116017507934114">1</strong></p>
<p id="ShowAlarmTemplate__p1597644523614">Maximum: <strong id="ShowAlarmTemplate__b8039326834334">16384</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section19835163335219"><h4 class="sectiontitle">Response Parameters</h4><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p283563315520"><strong id="ShowAlarmTemplate__b10666534782959">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_response_AlarmTemplate" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row17835173395213"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p383673317525">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p17836163385214">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1983643318520">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row14835173312527"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1783653375214">template_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p198361333195215">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p483693313524">ID of an alarm template. The ID starts with <strong id="ShowAlarmTemplate__b1675215512249">at</strong> and is followed by letters, digits, or a combination of both. The value can contain a maximum of 64 characters.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row188351333195214"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p3836123311526">template_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1683633305217">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001646733802_p1287545205118">Alarm template name. It must start with a letter and can contain letters, digits, underscores (_), hyphens (-), parentheses, and periods (.). Fuzzy match is supported.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001646733802_p0875105213511">Minimum: <strong id="ShowAlarmTemplate__b146469888234114">1</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001646733802_p687545218516">Maximum: <strong id="ShowAlarmTemplate__b802641608028">128</strong></p>
<p id="ShowAlarmTemplate__p161801194143"><strong id="ShowAlarmTemplate__b12212088405239">Regular expression matching</strong>:</p>
<pre class="codeblock" id="ShowAlarmTemplate__codeblock868291421410">^([\u4E00-\u9FFF]|[a-z]|[A-Z]|[0-9]|_|-|\(|\)|\.|\s)+$</pre>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row17835033115213"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p4836433135217">template_type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2836113385213">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p5836733175216">Type of an alarm template. <strong id="ShowAlarmTemplate__b81819832514">custom</strong> indicates custom alarm templates, and <strong id="ShowAlarmTemplate__b1318198132510">system</strong> indicates default alarm templates.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p48361338524">The value can be:</p>
<ul id="ShowAlarmTemplate__en-us_topic_0000001695093509_ul18836133318524"><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li383633315212"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6836033135219"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li383633315212"></a><a name="en-us_topic_0000001695093509_li383633315212"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b158361933115211">system</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li12836123355210"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2083663315524"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li12836123355210"></a><a name="en-us_topic_0000001695093509_li12836123355210"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b4836833185213">custom</strong></p>
</li></ul>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row14835203385213"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p483693345217">create_time</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p188379338529">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1983793375220">Time when an alarm template was created. The value is in the 2006-01-02T15:04:05.000Z format.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row198359339528"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6837733155211">template_description</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p11837103318522">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6837733195217">Supplementary information about an alarm template. The description can contain 0 to 256 characters and is left blank by default.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row8835173312526"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p3837633165218">policies</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1583773315210">Array of <a href="#ShowAlarmTemplate__en-us_topic_0000001695093509_response_GetPolicies">policies</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p168371332521">Alarm policies in an alarm template.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1883723395212">Array length: <strong id="ShowAlarmTemplate__b14132412015510">1</strong> to <strong id="ShowAlarmTemplate__b7307741425510">50</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_response_GetPolicies"></a><a name="en-us_topic_0000001695093509_response_GetPolicies"></a><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_response_GetPolicies" frame="border" border="1" rules="all"><caption><b>Table 4 </b>policies</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row12837183312522"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p28381033115213">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.4.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p283803313524">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.4.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p88389337524">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row78371433145218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p178381733185212">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p12838113310529">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__p15244114912135">Namespace of a service. For details about the namespace of each service, see <a href="ces_03_0059.html">Service Namespaces</a>. The namespace must be in the service.item format and contain 3 to 32 characters. <strong id="ShowAlarmTemplate__b26326868481622">service</strong> and <strong id="ShowAlarmTemplate__b203445514581622">item</strong> must start with a letter and can contain only letters, digits, and underscores (_).</p>
<p id="ShowAlarmTemplate__p924464961311">Minimum: <strong id="ShowAlarmTemplate__b194889378681647">3</strong></p>
<p id="ShowAlarmTemplate__p1924404912137">Maximum: <strong id="ShowAlarmTemplate__b17895252948225">32</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row1083743314523"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2838113313521">dimension_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p20838153315216">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1583812335527">Resource dimension, which must start with a letter. A dimension allows a maximum of 32 characters can only contain digits, letters, underscores (_), and hyphens (-). If there are multiple dimensions, use commas (,) to separate them. <strong id="ShowAlarmTemplate__b185232790811507">DimensionName</strong> in event alarm templates must be left blank.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row98371433125215"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p8839633105214">metric_name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p15839173313525">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1883973314525">Metric name of a resource. For details about the metrics of each service, see <a href="ces_03_0059.html">Service Metric Names</a>. The value must start with a letter and can only contain digits, letters, underscores (_), and hyphens (-). It allows 1 to 96 characters. For example, the ECS metric <strong id="ShowAlarmTemplate__b15100164942511">cpu_util</strong> indicates the CPU usage of an ECS. The DDS metric <strong id="ShowAlarmTemplate__b1910034919255">mongo001_command_ps</strong> indicates the command execution frequency.</p>
<p id="ShowAlarmTemplate__p11245355111017"><strong id="ShowAlarmTemplate__b129293774495614">Regular expression matching:</strong> ^([A-Za-z]){1}([0-9A-Za-z]|_|-)*$</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row2837033175218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p158391133185211">period</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p883953325217">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p198399335523">Interval (seconds) for checking whether the alarm rule conditions are met.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p5839163315529">The value can be:</p>
<ul id="ShowAlarmTemplate__en-us_topic_0000001695093509_ul168391933135216"><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li19839163316528"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2083993320524"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li19839163316528"></a><a name="en-us_topic_0000001695093509_li19839163316528"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b4839173395217">0</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li68391633155214"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p68391133125219"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li68391633155214"></a><a name="en-us_topic_0000001695093509_li68391633155214"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b18839163395217">1</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li1183913315523"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p128396339525"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li1183913315523"></a><a name="en-us_topic_0000001695093509_li1183913315523"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b6839183316528">300</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li9839133155219"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p13839143316524"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li9839133155219"></a><a name="en-us_topic_0000001695093509_li9839133155219"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b108391833195216">1200</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li783923316529"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p98391433155213"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li783923316529"></a><a name="en-us_topic_0000001695093509_li783923316529"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b083919335529">3600</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li2839173317529"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1383953315524"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li2839173317529"></a><a name="en-us_topic_0000001695093509_li2839173317529"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b08398332526">14400</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li48391333145213"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p28397332521"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li48391333145213"></a><a name="en-us_topic_0000001695093509_li48391333145213"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b8839113375214">86400</strong></p>
</li></ul>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row11837153385211"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p17839163311524">filter</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p683933316526">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__p345120415495">Data aggregation method. The value can be:</p>
<ul id="ShowAlarmTemplate__ul1945104114915"><li id="ShowAlarmTemplate__li1745111419495"><strong id="ShowAlarmTemplate__b160806061723334">average</strong>: average value of metric data within an aggregation period.</li><li id="ShowAlarmTemplate__li545174111492"><strong id="ShowAlarmTemplate__b19527898023429">max</strong>: maximum value of metric data in an aggregation period.</li><li id="ShowAlarmTemplate__li14451641114919"><strong id="ShowAlarmTemplate__b178274514651918">min</strong>: minimum value of metric data within an aggregation period.</li><li id="ShowAlarmTemplate__li3451164115493"><strong id="ShowAlarmTemplate__b39036455632235">sum</strong>: sum of metric data within an aggregation period.</li><li id="ShowAlarmTemplate__li845111418498"><strong id="ShowAlarmTemplate__b145358086433254">variance</strong>: variance value of metric data within an aggregation period.</li></ul>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row13838143316525"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p784063325214">comparison_operator</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p9840113316526">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__p175725158812">Operator of an alarm threshold.</p>
<p id="ShowAlarmTemplate__p125729151889"><strong id="ShowAlarmTemplate__b51366236545018">Regular expression matching:</strong> ^(&gt;|&lt;|&gt;=|&lt;=|=|!=)$</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row128388334523"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p784014338525">value</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p884073335214">Number</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1840113317528">Alarm threshold.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p128401337523">Minimum: <strong id="ShowAlarmTemplate__b51612131944038">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p78404332525">Maximum: <strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b1984015332525">2.34854258277383E108</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row2838733135219"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1384017332521">unit</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p38407336525">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__p17161138113411">Data unit. The value can contain a maximum of 32 characters. You can set this parameter based on your service needs.</p>
<p id="ShowAlarmTemplate__p1316148143411">Minimum: <strong id="ShowAlarmTemplate__b144186817474812">0</strong></p>
<p id="ShowAlarmTemplate__p191611983347">Maximum: <strong id="ShowAlarmTemplate__b1710890098225">32</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row683815331520"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16840183311525">count</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p118409333527">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p984043315525">Number of consecutive alarm triggering times. For event alarms, the value ranges from <strong id="ShowAlarmTemplate__b1829439505115339">1</strong> to <strong id="ShowAlarmTemplate__b891382876115339">180</strong>. For metric and website alarms, the value can be <strong id="ShowAlarmTemplate__b601572952115339">1</strong>, <strong id="ShowAlarmTemplate__b1821953674115339">2</strong>, <strong id="ShowAlarmTemplate__b1499859080115339">3</strong>, <strong id="ShowAlarmTemplate__b1729879156115339">4</strong>, <strong id="ShowAlarmTemplate__b512470857115339">5</strong>, <strong id="ShowAlarmTemplate__b885902988115339">10</strong>, <strong id="ShowAlarmTemplate__b1560715989115339">15</strong>, <strong id="ShowAlarmTemplate__b1690779005115339">30</strong>, <strong id="ShowAlarmTemplate__b670381899115339">60</strong>, <strong id="ShowAlarmTemplate__b2098603159115339">90</strong>, <strong id="ShowAlarmTemplate__b367931882115339">120</strong>, or <strong id="ShowAlarmTemplate__b1210047231115339">180</strong>.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row7838193313526"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p68402033145210">alarm_level</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p12840173365217">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p118411133125212">Alarm severity, which can be <strong id="ShowAlarmTemplate__b14391213262">1</strong> (critical), <strong id="ShowAlarmTemplate__b1344151218263">2</strong> (major), <strong id="ShowAlarmTemplate__b20441412142615">3</strong> (minor), or <strong id="ShowAlarmTemplate__b044212172612">4</strong> (warning). The default value is <strong id="ShowAlarmTemplate__b84615598154930">2</strong>.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row183819335523"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p184113311526">suppress_duration</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.4.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p584115338526">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.4.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p484118338528">Alarm suppression period, in seconds. When the period is <strong id="ShowAlarmTemplate__b9340317152613">0</strong>, only one alarm is generated.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p784113311521">The value can be:</p>
<ul id="ShowAlarmTemplate__en-us_topic_0000001695093509_ul11841233195216"><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li11841173365211"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p9841433135214"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li11841173365211"></a><a name="en-us_topic_0000001695093509_li11841173365211"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b5841163315526">0</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li48410334529"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p19841113325213"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li48410334529"></a><a name="en-us_topic_0000001695093509_li48410334529"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b5841163315525">300</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li5841113395219"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p78411133115217"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li5841113395219"></a><a name="en-us_topic_0000001695093509_li5841113395219"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b13841433195212">600</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li384113313522"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p9841183385216"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li384113313522"></a><a name="en-us_topic_0000001695093509_li384113313522"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b984143325216">900</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li284111336523"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p168411033185210"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li284111336523"></a><a name="en-us_topic_0000001695093509_li284111336523"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b884119333520">1800</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li118418331528"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p484153385211"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li118418331528"></a><a name="en-us_topic_0000001695093509_li118418331528"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b1884163365215">3600</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li208411133185210"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p5841173345213"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li208411133185210"></a><a name="en-us_topic_0000001695093509_li208411133185210"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b128411933105216">10800</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li68411333145211"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1384123325214"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li68411333145211"></a><a name="en-us_topic_0000001695093509_li68411333145211"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b1084193312524">21600</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li1884153315521"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p284173316522"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li1884153315521"></a><a name="en-us_topic_0000001695093509_li1884153315521"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b208411233185218">43200</strong></p>
</li><li id="ShowAlarmTemplate__en-us_topic_0000001695093509_li16841143335211"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1884113395213"><a name="ShowAlarmTemplate__en-us_topic_0000001695093509_li16841143335211"></a><a name="en-us_topic_0000001695093509_li16841143335211"></a><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b384193345215">86400</strong></p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14841033165215"><strong id="ShowAlarmTemplate__b171396988754042">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_response_GoAPIErrorResponseV2" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row6842633165214"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16842193365211">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.6.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p4842133325215">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.6.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p188421833175216">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row18842183375215"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p28421133195214">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p584219334528">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p8842123319523">Status code customized by each cloud service when a request error occurs.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p284223375219">Minimum: <strong id="ShowAlarmTemplate__b197638559774812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p084273313522">Maximum: <strong id="ShowAlarmTemplate__b193011887151239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row18423333529"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1884243385210">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p8842103395216">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1484316335520">Request error message.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p48431733135215">Minimum: <strong id="ShowAlarmTemplate__b110795382774812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p18843833135210">Maximum: <strong id="ShowAlarmTemplate__b128803301051239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row8842203365215"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14843133125210">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.6.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p158431333175210">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.6.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6843133325217">Request ID.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p188431533115216">Minimum: <strong id="ShowAlarmTemplate__b72217522374812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p17843123311526">Maximum: <strong id="ShowAlarmTemplate__b28407636851239">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p18431133125212"><strong id="ShowAlarmTemplate__b12738731711398">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_table15843183335215" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row58431933155215"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p178434338527">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.8.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p184483325210">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.8.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p18445336525">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row12843133312524"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p28441933155219">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1484411338529">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p18441033185210">Status code customized by each cloud service when a request error occurs.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p188449333528">Minimum: <strong id="ShowAlarmTemplate__b6434649174812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14844143311522">Maximum: <strong id="ShowAlarmTemplate__b80532148551239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row208431133205210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1884418334523">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p118441833185211">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1284453395217">Request error message.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p12844153313520">Minimum: <strong id="ShowAlarmTemplate__b189127328374812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p198441733145214">Maximum: <strong id="ShowAlarmTemplate__b39457414151239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row1784303385218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p138449333526">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.8.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p784473315528">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.8.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p9844103316528">Request ID.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2844133355210">Minimum: <strong id="ShowAlarmTemplate__b91447548174812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p484413312527">Maximum: <strong id="ShowAlarmTemplate__b194745772151239">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16844153335219"><strong id="ShowAlarmTemplate__en-us_topic_0000001695093509_b148448336527">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_table1684443311521" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row7845933175219"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16845113310528">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.10.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p15845183315525">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.10.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p48451733205220">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row17845203385214"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p984503310523">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6845163318525">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p284583316521">Status code customized by each cloud service when a request error occurs.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p19845033105213">Minimum: <strong id="ShowAlarmTemplate__b67838733874812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p784643395216">Maximum: <strong id="ShowAlarmTemplate__b52959587451239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row1284583355212"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14846633145217">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16846193313529">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p10846933135216">Request error message.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6846433205219">Minimum: <strong id="ShowAlarmTemplate__b174720053174812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p6846633125218">Maximum: <strong id="ShowAlarmTemplate__b139084610951239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row28451433205218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p984643316526">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.10.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16846143310526">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.10.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p68461933105217">Request ID.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2846123314525">Minimum: <strong id="ShowAlarmTemplate__b26648519974812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p11846183319523">Maximum: <strong id="ShowAlarmTemplate__b145901325651239">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p13846123320525"><strong id="ShowAlarmTemplate__b201002357431141">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_table684616332524" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row108461336523"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.12.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p208471333125210">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.12.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p984710337523">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.12.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p884793317527">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row884763375216"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.12.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p484714334526">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.12.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1584793313520">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.12.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p599143313529">Status code customized by each cloud service when a request error occurs.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p199916330526">Minimum: <strong id="ShowAlarmTemplate__b78872202174812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p799114338528">Maximum: <strong id="ShowAlarmTemplate__b3112047351239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row1847633105210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.12.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p3991203310527">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.12.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p17991123385219">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.12.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p19991933105220">Request error message.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1899133355216">Minimum: <strong id="ShowAlarmTemplate__b153324157874812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1199143365216">Maximum: <strong id="ShowAlarmTemplate__b112947976251239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row19847833165218"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.12.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p499113312528">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.12.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p299283365212">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.12.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p199925339526">Request ID.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p10992933185211">Minimum: <strong id="ShowAlarmTemplate__b168440542974812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p129927334526">Maximum: <strong id="ShowAlarmTemplate__b19839363051239">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1399253325218"><strong id="ShowAlarmTemplate__b162049272131955">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_table48481033165212" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row20849113311529"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.14.2.4.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1199283365215">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.14.2.4.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1699283395210">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.14.2.4.1.3"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p2992193310523">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row11849123305210"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.14.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p09921933175213">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.14.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p4992433175217">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.14.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p3992183312529">Status code customized by each cloud service when a request error occurs.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p599219336526">Minimum: <strong id="ShowAlarmTemplate__b150114639974812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p159924334524">Maximum: <strong id="ShowAlarmTemplate__b139949511851239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row15849173318527"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.14.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p3992933195210">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.14.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p15992123319523">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.14.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p899273345219">Request error message.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p7992333145217">Minimum: <strong id="ShowAlarmTemplate__b179684860774812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p149921733135211">Maximum: <strong id="ShowAlarmTemplate__b129538077251239">256</strong></p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row188491533175215"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.14.2.4.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1992143311529">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.14.2.4.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p39921233125217">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.14.2.4.1.3 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14992153318528">Request ID.</p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p899214331529">Minimum: <strong id="ShowAlarmTemplate__b123888396274812">0</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p59921433125212">Maximum: <strong id="ShowAlarmTemplate__b123629073351239">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section1099216333524"><h4 class="sectiontitle">Example Requests</h4><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p10992173313521">Querying details of an alarm template</p>
<pre class="screen" id="ShowAlarmTemplate__en-us_topic_0000001695093509_screen499233335210">/v2/{project_id}/alarm-templates/{template_id}</pre>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section19992193313522"><h4 class="sectiontitle">Example Responses</h4><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p299273375214"><strong id="ShowAlarmTemplate__b87305214282959">Status code: 200</strong></p>
<p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p20992113355212">OK</p>
<pre class="screen" id="ShowAlarmTemplate__en-us_topic_0000001695093509_screen0992203314522">{
"template_id" : "at1628592157541dB1klWgY6",
"template_name" : "my_template",
"template_type" : "custom",
"create_time" : "2006-01-02T15:04:05.000Z",
"template_description" : "hello world",
"policies" : [ {
"namespace" : "SYS.ECS",
"dimension_name" : "instance_id",
"metric_name" : "cpu_util",
"period" : 300,
"filter" : "sum",
"comparison_operator" : "&gt;",
"value" : 2,
"unit" : "bit/s",
"count" : 2,
"alarm_level" : 2,
"suppress_duration" : 300
} ]
}</pre>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section19992123375212"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="ShowAlarmTemplate__en-us_topic_0000001695093509_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row10850833155215"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p0992633205218">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p16992333165219">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row48506334524"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p499217334525">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p119921933105216">OK</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row16850433205217"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1399210339522">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1399293318522">Parameter verification failed.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row198501733195213"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p14992173311522">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p15992123318529">Authentication failed.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row3850533195213"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p10992133115214">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p4992163317526">Authentication failed.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row7850123317521"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p8993433185219">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p19936331526">Resources not found.</p>
</td>
</tr>
<tr id="ShowAlarmTemplate__en-us_topic_0000001695093509_row685011333527"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p899313314528">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p59931033165216">Failed to complete the request because of an internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="ShowAlarmTemplate__en-us_topic_0000001695093509_section39931133135214"><h4 class="sectiontitle">Error Codes</h4><p id="ShowAlarmTemplate__en-us_topic_0000001695093509_p1699317337525">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000005.html">Alarm Templates</a></div>
</div>
</div>