Queries the details of an alert template.
Operation Description
This topic provides an example on how to query the details of an alert template whose ID is 70****
.
debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Name | string | No | The name of the alert template. You must specify at least one of the For information about how to obtain the name of an alert template, see DescribeMetricRuleTemplateList. | ECS_Template1 |
TemplateId | string | No | The ID of the alert template. You must specify at least one of the For information about how to obtain the ID of an alert template, see DescribeMetricRuleTemplateList. | 70**** |
For more information about common request parameters, see Common parameters.
Response parameters
Examples
Sample success responses
JSON
format
{
"Code": 200,
"Message": "The specified resource is not found.",
"RequestId": "8F3A82AD-DA92-52B0-8EC6-C059D1C3839F",
"Success": true,
"Resource": {
"Description": "",
"Name": "ECS_Template1",
"RestVersion": "1",
"TemplateId": "70****",
"AlertTemplates": {
"AlertTemplate": [
{
"MetricName": "cpu_total",
"Selector": "{\"disk\":\"/\"}",
"Webhook": "https://www.aliyun.com",
"Namespace": "acs_ecs_dashboard",
"Category": "ecs",
"RuleName": "ECS_Rule",
"NoDataPolicy": "KEEP_LAST_STATE",
"Escalations": {
"Info": {
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
"Times": 3,
"Threshold": "90",
"Statistics": "Average"
},
"Warn": {
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
"Times": 3,
"Threshold": "90",
"Statistics": "Average"
},
"Critical": {
"ComparisonOperator": "GreaterThanOrEqualToThreshold",
"Times": 5,
"Threshold": "90",
"Statistics": "Average"
}
},
"Labels": {
"Labels": [
{
"Key": "label1",
"Value": "value1"
}
]
}
}
]
}
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ParameterInvalid | Illegal parameters. | - |
400 | %s | %s | - |
403 | AccessForbidden | User not authorized to operate on the specified resource. | - |
404 | ResourceNotFound | The specified resource is not found. | The specified resource is not found. |
500 | InternalError | The request processing has failed due to some unknown error. | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-12-26 | The error codes of the API operation change.,The response structure of the API operation changes. | see changesets | ||||||||||||||||
| ||||||||||||||||||
2022-12-22 | The error codes of the API operation change.,The response structure of the API operation changes. | see changesets | ||||||||||||||||
|