Files
doc-exports/docs/ces/api-ref/UpdateAlarmTemplate.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

546 lines
58 KiB
HTML

<a name="UpdateAlarmTemplate"></a><a name="UpdateAlarmTemplate"></a>
<h1 class="topictitle1">Modifying a Custom Alarm Template</h1>
<div id="body8662426"><div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section1895123616516"><h4 class="sectiontitle">Function</h4><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p2951203619518">This API is used to modify a custom alarm template.</p>
</div>
<div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section69512036175113"><h4 class="sectiontitle">URI</h4><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p16951836175118">PUT /v2/{project_id}/alarm-templates/{template_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_table13952536105115" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row8952153655111"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p159527367518">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p16952236105113">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p495223617512">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1595293611511">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row3952636185111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1595273695115">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8952173615115">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p179528366519">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateAlarmTemplate__p42316702175455">Project ID.</p>
<p id="UpdateAlarmTemplate__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="UpdateAlarmTemplate__en-us_topic_0000001646899046_p18100524114814">Minimum: <strong id="UpdateAlarmTemplate__b51897351034110">1</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001646899046_p81001524104817">Maximum: <strong id="UpdateAlarmTemplate__b161446878583314">64</strong></p>
<p id="UpdateAlarmTemplate__p4697184133915"><strong id="UpdateAlarmTemplate__b36798381425135">Regular expression matching</strong>: ^[a-zA-Z0-9-]{1,64}$</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row795263610512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1495383695110">template_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p14953103605117">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p6953123617518">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p18953193665120">ID of an alarm template.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p4953936125110">Minimum: <strong id="UpdateAlarmTemplate__b750195011445">2</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p149531036155118">Maximum: <strong id="UpdateAlarmTemplate__b205467297983314">64</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section2095313615115"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row199533364513"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p119548368519">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p10954123615512">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p69541636175119">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p19541536175117">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1095323675119"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p0954143645115">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p18954183625114">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p5954136175115">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="UpdateAlarmTemplate__p28362853619">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="UpdateAlarmTemplate__b70370369033916">X-Subject-Token</strong> in the response header is the token.</p>
<p id="UpdateAlarmTemplate__p1083828163613">Minimum: <strong id="UpdateAlarmTemplate__b174555198834110">1</strong></p>
<p id="UpdateAlarmTemplate__p68302815364">Maximum: <strong id="UpdateAlarmTemplate__b19884977284330">16384</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_request_UpdateAlarmTemplateRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row169543363512"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1395518369519">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p595553665113">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p395553615517">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p995513665113">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1995517362516"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p6955133616516">template_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1895512361511">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p395543615118">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateAlarmTemplate__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="UpdateAlarmTemplate__en-us_topic_0000001646733802_p0875105213511">Minimum: <strong id="UpdateAlarmTemplate__b72779758134110">1</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001646733802_p687545218516">Maximum: <strong id="UpdateAlarmTemplate__b12603532338024">128</strong></p>
<p id="UpdateAlarmTemplate__p1959935815149"><strong id="UpdateAlarmTemplate__b9117829125235">Regular expression matching</strong>:</p>
<pre class="codeblock" id="UpdateAlarmTemplate__codeblock1522614461519">^([\u4E00-\u9FFF]|[a-z]|[A-Z]|[0-9]|_|-|\(|\)|\.|\s)+$</pre>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row199551136125116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p695563617515">template_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8955123611519">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p795617369516">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p9956136135111">Type of a custom alarm template.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p119564361516">The value can be:</p>
<ul id="UpdateAlarmTemplate__en-us_topic_0000001822039557_ul1095618369514"><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li10956133611515"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p6956163610515"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li10956133611515"></a><a name="en-us_topic_0000001822039557_li10956133611515"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b795610360516">0</strong>: metric template</p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1195653695119"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8956536125113"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1195653695119"></a><a name="en-us_topic_0000001822039557_li1195653695119"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b10956153610512">2</strong>: event template</p>
</li></ul>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row99551536115111"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p89561636115118">template_description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p109567365512">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1695623625116">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p14956123615113">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="UpdateAlarmTemplate__en-us_topic_0000001822039557_row10955236185113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p895683620511">policies</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p495611364519">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p29571367514">Array of <a href="#UpdateAlarmTemplate__en-us_topic_0000001822039557_request_Policies">Policies</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p495763614516">Alarm policies in an alarm template.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p2957103619517">Array length: <strong id="UpdateAlarmTemplate__b203017057755058">1</strong> to <strong id="UpdateAlarmTemplate__b93493644955058">50</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_request_Policies"></a><a name="en-us_topic_0000001822039557_request_Policies"></a><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_request_Policies" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Policies</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1595743611518"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p199581236145117">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8958183610519">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1995863675115">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1995813635117">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row13957936175110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1795819360517">namespace</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1695819365512">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p595863616516">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__p415810410715">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="UpdateAlarmTemplate__b38830889881620">service</strong> and <strong id="UpdateAlarmTemplate__b109763490481620">item</strong> must start with a letter and can contain only letters, digits, and underscores (_).</p>
<p id="UpdateAlarmTemplate__p31591141378">Minimum: <strong id="UpdateAlarmTemplate__b157979905481643">3</strong></p>
<p id="UpdateAlarmTemplate__p1015984270">Maximum: <strong id="UpdateAlarmTemplate__b20313232018221">32</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row39571436155117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p29591336115115">dimension_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p199598366518">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1895923614516">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p12959173616517">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="UpdateAlarmTemplate__b54041519104812">DimensionName</strong> in event alarm templates must be left blank.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row189571036165119"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p13959153615519">metric_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p7959936185111">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1495920368514">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p7959163655110">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="UpdateAlarmTemplate__b1883182115317">cpu_util</strong> indicates the CPU usage of an ECS. The DDS metric <strong id="UpdateAlarmTemplate__b17831102135311">mongo001_command_ps</strong> indicates the command execution frequency.</p>
<p id="UpdateAlarmTemplate__p11245355111017"><strong id="UpdateAlarmTemplate__b174536731995611">Regular expression matching:</strong> ^([A-Za-z]){1}([0-9A-Za-z]|_|-)*$</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row119572365514"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p29595368515">period</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p15959193685110">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p13959173611511">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1195943620512">Interval (seconds) for checking whether the alarm rule conditions are met.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p159591136105110">The value can be:</p>
<ul id="UpdateAlarmTemplate__en-us_topic_0000001822039557_ul19959836185118"><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li49598363515"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p7959183616513"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li49598363515"></a><a name="en-us_topic_0000001822039557_li49598363515"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b10959143625118">0</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li16959103618516"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1960193611513"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li16959103618516"></a><a name="en-us_topic_0000001822039557_li16959103618516"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b1296093612517">1</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li69607362519"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p129601236175118"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li69607362519"></a><a name="en-us_topic_0000001822039557_li69607362519"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b169601936195115">300</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li896043675116"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p496018361514"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li896043675116"></a><a name="en-us_topic_0000001822039557_li896043675116"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b1696043645117">1200</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li109601836155117"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p496073615512"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li109601836155117"></a><a name="en-us_topic_0000001822039557_li109601836155117"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b199601836135112">3600</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li159608362516"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p89601236165111"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li159608362516"></a><a name="en-us_topic_0000001822039557_li159608362516"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b4960143665116">14400</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li396011368515"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1796073675116"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li396011368515"></a><a name="en-us_topic_0000001822039557_li396011368515"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b996083612515">86400</strong></p>
</li></ul>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row18957736165120"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p9960203612515">filter</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p199601636135113">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p69601736195119">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__p4842306490">Data aggregation method. The value can be:</p>
<ul id="UpdateAlarmTemplate__ul984103013497"><li id="UpdateAlarmTemplate__li138443012497"><strong id="UpdateAlarmTemplate__b9085736023332">average</strong>: average value of metric data within an aggregation period.</li><li id="UpdateAlarmTemplate__li384130174912"><strong id="UpdateAlarmTemplate__b56632083223427">max</strong>: maximum value of metric data in an aggregation period.</li><li id="UpdateAlarmTemplate__li78414307495"><strong id="UpdateAlarmTemplate__b130503065151916">min</strong>: minimum value of metric data within an aggregation period.</li><li id="UpdateAlarmTemplate__li18849304493"><strong id="UpdateAlarmTemplate__b165362531332233">sum</strong>: sum of metric data within an aggregation period.</li><li id="UpdateAlarmTemplate__li1784123064912"><strong id="UpdateAlarmTemplate__b31943791433252">variance</strong>: variance value of metric data within an aggregation period.</li></ul>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1795717363515"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8960123617519">comparison_operator</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8960123617510">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1696093616518">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__p175725158812">Operator of an alarm threshold.</p>
<p id="UpdateAlarmTemplate__p125729151889"><strong id="UpdateAlarmTemplate__b48817881645016">Regular expression matching:</strong> ^(&gt;|&lt;|&gt;=|&lt;=|=|!=)$</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1195712365513"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p20961163614515">value</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1496118362513">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p17961193625110">Number</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p9961336195114">Alarm threshold.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p14961936185114">Minimum: <strong id="UpdateAlarmTemplate__b92231295844034">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p39613367517">Maximum: <strong id="UpdateAlarmTemplate__b1633182055317">Number.MAX_VALUE</strong> (<strong id="UpdateAlarmTemplate__b1633172014531">1.7976931348623156E108</strong>)</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row8958173635117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p596193605117">unit</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p89611361515">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p09611536195111">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__p726225612330">Data unit. The value can contain a maximum of 32 characters. You can set this parameter based on your service needs.</p>
<p id="UpdateAlarmTemplate__p16262125623317">Minimum: <strong id="UpdateAlarmTemplate__b2251482227488">0</strong></p>
<p id="UpdateAlarmTemplate__p726365615337">Maximum: <strong id="UpdateAlarmTemplate__b19197848668221">32</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row59583369512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p796193616512">count</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1596117366513">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p5962143619516">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p13962173645113">Number of consecutive alarm triggering times. For event alarms, the value ranges from <strong id="UpdateAlarmTemplate__b194617283530">1</strong> to <strong id="UpdateAlarmTemplate__b546528115313">180</strong>. For metric and website alarms, the value can be <strong id="UpdateAlarmTemplate__b19475280535">1</strong>, <strong id="UpdateAlarmTemplate__b13471128115316">2</strong>, <strong id="UpdateAlarmTemplate__b1647122813538">3</strong>, <strong id="UpdateAlarmTemplate__b4475285532">4</strong>, <strong id="UpdateAlarmTemplate__b154710283538">5</strong>, <strong id="UpdateAlarmTemplate__b14772815531">10</strong>, <strong id="UpdateAlarmTemplate__b124792815538">15</strong>, <strong id="UpdateAlarmTemplate__b104782825314">30</strong>, <strong id="UpdateAlarmTemplate__b144722885317">60</strong>, <strong id="UpdateAlarmTemplate__b84772815535">90</strong>, <strong id="UpdateAlarmTemplate__b1047192816536">120</strong>, or <strong id="UpdateAlarmTemplate__b9471128105317">180</strong>.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row189589362512"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p496215367513">alarm_level</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p996283615510">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p896203620512">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p149621368518">Alarm severity, which can be <strong id="UpdateAlarmTemplate__b191001732145717">1</strong> (critical), <strong id="UpdateAlarmTemplate__b19100143265716">2</strong> (major), <strong id="UpdateAlarmTemplate__b910023275710">3</strong> (minor), or <strong id="UpdateAlarmTemplate__b210063220576">4</strong> (warning). The default value is <strong id="UpdateAlarmTemplate__b22868488454928">2</strong>.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row5958636165110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p119621736185112">suppress_duration</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p49621836195116">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p17962936115119">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p99621836165115">Alarm suppression period, in seconds. When the period is <strong id="UpdateAlarmTemplate__b119231237155716">0</strong>, only one alarm is generated.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p129621236175115">The value can be:</p>
<ul id="UpdateAlarmTemplate__en-us_topic_0000001822039557_ul12962113614511"><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1296216367511"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p139626367513"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1296216367511"></a><a name="en-us_topic_0000001822039557_li1296216367511"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b1996213615117">0</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li59628368517"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p596212362514"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li59628368517"></a><a name="en-us_topic_0000001822039557_li59628368517"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b5962436105112">300</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li12962163675111"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p5962536185118"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li12962163675111"></a><a name="en-us_topic_0000001822039557_li12962163675111"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b296273619514">600</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li8962143618512"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p12963183611519"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li8962143618512"></a><a name="en-us_topic_0000001822039557_li8962143618512"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b296310362517">900</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1596343611518"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p16963153619511"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1596343611518"></a><a name="en-us_topic_0000001822039557_li1596343611518"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b396393675111">1800</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li11963183613518"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p15963123615511"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li11963183613518"></a><a name="en-us_topic_0000001822039557_li11963183613518"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b169631636135117">3600</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li179634368511"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p19963113675113"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li179634368511"></a><a name="en-us_topic_0000001822039557_li179634368511"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b12963163655115">10800</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li296383610519"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p20963113625116"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li296383610519"></a><a name="en-us_topic_0000001822039557_li296383610519"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b49633365517">21600</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li0963436195114"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p16963636125112"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li0963436195114"></a><a name="en-us_topic_0000001822039557_li0963436195114"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b179631436135117">43200</strong></p>
</li><li id="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1596314368511"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1196383675112"><a name="UpdateAlarmTemplate__en-us_topic_0000001822039557_li1596314368511"></a><a name="en-us_topic_0000001822039557_li1596314368511"></a><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b14963173610511">86400</strong></p>
</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section19963123645115"><h4 class="sectiontitle">Response Parameters</h4><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p139631536175119"><strong id="UpdateAlarmTemplate__b123146615454038">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_response_GoAPIErrorResponseV2" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1796353620513"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p0964123645118">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.3.2.4.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p896443695116">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.3.2.4.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p59641936175120">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row69631936125116"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p159641336105118">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p12964183610512">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p13964436115111">Status code customized by each cloud service when a request error occurs.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1296443665114">Minimum: <strong id="UpdateAlarmTemplate__b6909391377488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p109641436135116">Maximum: <strong id="UpdateAlarmTemplate__b168487489351236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row16964736155114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p139642366513">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1096413615516">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p99651936165112">Request error message.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1196533612513">Minimum: <strong id="UpdateAlarmTemplate__b15983054557488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1896515368517">Maximum: <strong id="UpdateAlarmTemplate__b23098736451236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1496423685114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1596583617511">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.3.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p9965153619514">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.3.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p69651336125117">Request ID.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1196513675116">Minimum: <strong id="UpdateAlarmTemplate__b8023093867488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p996543645117">Maximum: <strong id="UpdateAlarmTemplate__b27182076251236">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p896513610510"><strong id="UpdateAlarmTemplate__b209912913711394">Status code: 401</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_table1996583615115" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row4965103695116"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8966143665113">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.5.2.4.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1496693620519">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.5.2.4.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p59666361512">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1096553614516"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p19966103615511">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p169661836115113">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1496673685113">Status code customized by each cloud service when a request error occurs.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p17966173665112">Minimum: <strong id="UpdateAlarmTemplate__b6858635757488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1966173645114">Maximum: <strong id="UpdateAlarmTemplate__b131184078551236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row199651536115111"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1596633695114">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p896619369517">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1096615366511">Request error message.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p149661236205110">Minimum: <strong id="UpdateAlarmTemplate__b13541568387488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p10966143695110">Maximum: <strong id="UpdateAlarmTemplate__b60270483651236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row17965163645114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p14966173645118">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.5.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p596623610515">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.5.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p29671836205111">Request ID.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p096713685116">Minimum: <strong id="UpdateAlarmTemplate__b5773929797488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1596710363513">Maximum: <strong id="UpdateAlarmTemplate__b146297143651236">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p19671836105118"><strong id="UpdateAlarmTemplate__en-us_topic_0000001822039557_b1096773610516">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_table196783615514" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row20967236165110"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p18967936155113">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.7.2.4.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p189679369516">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.7.2.4.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p996783645112">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1696710361517"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p6967153616513">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p15967123612511">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1896863617511">Status code customized by each cloud service when a request error occurs.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p149685365511">Minimum: <strong id="UpdateAlarmTemplate__b16002385817488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p179681036165117">Maximum: <strong id="UpdateAlarmTemplate__b149946595651236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row996723665118"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p79681636155120">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p996819360510">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8968173614513">Request error message.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p189681436105114">Minimum: <strong id="UpdateAlarmTemplate__b6325359907488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1596803619513">Maximum: <strong id="UpdateAlarmTemplate__b12155110751236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1296753614514"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p9968936145119">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.7.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p89682367516">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.7.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p17968336185116">Request ID.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1816483725114">Minimum: <strong id="UpdateAlarmTemplate__b1330268787488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p181641537105116">Maximum: <strong id="UpdateAlarmTemplate__b73494048151236">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p5164113714517"><strong id="UpdateAlarmTemplate__b178434555431139">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_table39698362510" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row11969153615513"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p2016420372517">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.9.2.4.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p31645376518">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.9.2.4.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p31641437135119">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row49691836195114"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p101641037205110">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p14164737125115">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p61641737175117">Status code customized by each cloud service when a request error occurs.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p121641937135119">Minimum: <strong id="UpdateAlarmTemplate__b554597857488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p13164737135119">Maximum: <strong id="UpdateAlarmTemplate__b195205289351236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1196933616514"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p8164437185112">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p71641237165117">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p11641537145116">Request error message.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p2016418370514">Minimum: <strong id="UpdateAlarmTemplate__b17855833227488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p16164193716515">Maximum: <strong id="UpdateAlarmTemplate__b42567948851236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1696963619518"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p31641537185110">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.9.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1416493745112">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.9.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p4164737205116">Request ID.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p5165203755118">Minimum: <strong id="UpdateAlarmTemplate__b12911028167488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p10165193725111">Maximum: <strong id="UpdateAlarmTemplate__b47096702251236">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p14165123725120"><strong id="UpdateAlarmTemplate__b165433406131951">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_table7970336195112" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row39712369518"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p91657376519">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.4.11.2.4.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p116593735110">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.4.11.2.4.1.3"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p2165143712513">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1297119362512"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p181650375514">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p516553715514">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p101651537105113">Status code customized by each cloud service when a request error occurs.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p71659377512">Minimum: <strong id="UpdateAlarmTemplate__b18679194757488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1416533755115">Maximum: <strong id="UpdateAlarmTemplate__b178362769751236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row19711736105111"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p20165937135116">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p191651237125111">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p6165183785114">Request error message.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p61656372515">Minimum: <strong id="UpdateAlarmTemplate__b4976184857488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p3165103735117">Maximum: <strong id="UpdateAlarmTemplate__b81822860651236">256</strong></p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row189711936145116"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p516515372518">request_id</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.4.11.2.4.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1165153725110">String</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.4.11.2.4.1.3 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p121653374512">Request ID.</p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p15165937145117">Minimum: <strong id="UpdateAlarmTemplate__b922268827488">0</strong></p>
<p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p816533765112">Maximum: <strong id="UpdateAlarmTemplate__b6002568151236">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section1116512372515"><h4 class="sectiontitle">Example Requests</h4><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p17165737105118">Modifying a custom template whose <strong id="UpdateAlarmTemplate__b48893527570">template_name</strong> is <strong id="UpdateAlarmTemplate__b13387654105719">my_template</strong>, including its metric period, aggregation method, threshold, unit, count, alarm suppression duration, and alarm severity.</p>
<pre class="screen" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_screen1516519379514">{
"template_name" : "my_template",
"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="UpdateAlarmTemplate__en-us_topic_0000001822039557_section716523714517"><h4 class="sectiontitle">Example Responses</h4><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p10166153765112">None</p>
</div>
<div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section141662373516"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row3973136145114"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p2016683785116">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p11661337145115">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row1397333655111"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p11664371513">204</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p016617377517">No Content</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row17973436115120"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p11166537155111">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p6166163735116">Parameter verification failed.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row0973636145111"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p171661237155116">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p71663379511">Authentication failed.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row3973113614510"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p316610372512">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p61667374512">Authentication failed.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row8973636145116"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p131662037155112">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p111661637205116">Resources not found.</p>
</td>
</tr>
<tr id="UpdateAlarmTemplate__en-us_topic_0000001822039557_row69731636185114"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1616663785119">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p7166143735110">Failed to complete the request because of an internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="UpdateAlarmTemplate__en-us_topic_0000001822039557_section1216610377516"><h4 class="sectiontitle">Error Codes</h4><p id="UpdateAlarmTemplate__en-us_topic_0000001822039557_p1216643755114">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>