Modifies the information about a health check template based on specified parameters.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
alidns:UpdateCloudGtmMonitorTemplate | update | *All Resources * |
| 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. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. | 1ae05db4-10e7-11ef-b126-00163e24**22 |
TemplateId | string | Yes | The ID of the health check template that you want to modify. This ID uniquely identifies the health check template. | mtp-89518052425100**80 |
Name | string | No | The name of the health check probe template, which is generally recommended to be distinguishable and memorable for configuration personnel, ideally indicating the health check protocol for easier identification. | Ping-IPv4 |
Interval | integer | No | The time interval (in seconds) for each health check probe. By default, it probes every 60 seconds. The minimum supported interval for health checks is 15 seconds, available for flagship edition instances. | 60 |
Timeout | integer | No | Probe timeout (in milliseconds), data packets not returned within the timeout period are considered as health check timeouts:
| 5000 |
EvaluationCount | integer | No | The number of retries. The system will only judge the application service as abnormal after consecutive monitoring failures to prevent inaccurate monitoring results due to momentary network fluctuations or other reasons. Available retry options are:
| 2 |
FailureRate | integer | No | Percentage of selected node probe failures (%), that is, the percentage of abnormal detection points among the total detection points. When the failure ratio exceeds the set threshold, the service address is judged as abnormal. The available failure ratio thresholds are:
| 50 |
ExtendInfo | string | No | The extended information. The value of this parameter is a JSON string. The required parameters vary based on the health check protocol.
| {\"code\":200,\"path\":\"\\index.htm\",\"host\":\"aliyun.com\"} |
IspCityNodes | array<object> | No | The health check nodes. You can call the ListCloudGtmMonitorNodes operation to obtain the health check nodes. | |
NodeList | object | No | The health check node. | |
CityCode | string | No | The city code of the health check node. | 503 |
IspCode | string | No | The Internet service provider (ISP) code of the health check node. | 465 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "6856BCF6-11D6-4D7E-AC53-FD579933522B",
"Success": true
}
Error codes
For a list of error codes, visit the Service error codes.