Creates a health check template based on the specified parameters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
alidns:CreateCloudGtmMonitorTemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AcceptLanguage |
string |
No |
The language of the response. Valid values:
|
en-US |
| ClientToken |
string |
No |
The client token that is used to ensure the idempotence of the request. Make sure that the client token is unique for each request. The token can contain a maximum of 64 ASCII characters. |
1ae05db4-10e7-11ef-b126-00163e24**** |
| Name |
string |
Yes |
The name of the health check template. Name the template to easily identify the health check protocol. |
Ping-IPv4 |
| IpVersion |
string |
Yes |
The IP address type for health checks.
|
IPv4 |
| Protocol |
string |
Yes |
The protocol for health checks on the destination IP address.
|
ping |
| Interval |
integer |
Yes |
The health check interval in seconds. The default value is 60. The minimum interval is 15 seconds, which is available only for Ultimate Edition instances. |
60 |
| Timeout |
integer |
Yes |
The health check timeout in milliseconds. If a packet is not returned within the timeout period, the health check is considered to have timed out. Valid values:
|
5000 |
| EvaluationCount |
integer |
Yes |
The number of consecutive failures that must occur before the system considers the application service unhealthy. This setting helps prevent false alarms caused by transient issues such as network jitter. Valid values:
|
2 |
| FailureRate |
integer |
Yes |
The failure rate threshold. An endpoint is considered unhealthy if the percentage of unhealthy detection points exceeds this value. Valid values:
|
50 |
| ExtendInfo |
string |
No |
The extended information in a JSON string. The parameters vary based on the protocol.
|
{\"code\":200,\"path\":\"\\index.htm\",\"host\":\"aliyun.com\"} |
| IspCityNodes |
array<object> |
Yes |
A list of detection points. For more information, see ListCloudGtmMonitorNodes. |
|
|
object |
No |
A detection point. |
||
| CityCode |
string |
No |
The city code for the detection point. |
503 |
| IspCode |
string |
No |
The ISP code for the detection point. |
465 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The unique request ID. |
B57C121B-A45F-44D8-A9B2-13E5A5044195 |
| Success |
boolean |
Indicates whether the operation was successful.
|
true |
| TemplateId |
string |
The ID of the health check template. The ID is the unique identifier of the template. |
mtp-89518052425100**** |
Examples
Success response
JSON format
{
"RequestId": "B57C121B-A45F-44D8-A9B2-13E5A5044195",
"Success": true,
"TemplateId": "mtp-89518052425100****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.