public static final class UpdateCloudGtmMonitorTemplateRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
UpdateCloudGtmMonitorTemplateRequest.Builder |
acceptLanguage(String acceptLanguage)
The language of the response.
|
UpdateCloudGtmMonitorTemplateRequest |
build() |
UpdateCloudGtmMonitorTemplateRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
evaluationCount(Integer evaluationCount)
The number of retries.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
extendInfo(String extendInfo)
The extended information.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
failureRate(Integer failureRate)
Percentage of selected node probe failures (%), that is, the percentage of abnormal detection points among the total detection points.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
interval(Integer interval)
The time interval (in seconds) for each health check probe.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
ispCityNodes(List<UpdateCloudGtmMonitorTemplateRequest.IspCityNodes> ispCityNodes)
The health check nodes.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
name(String name)
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.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
templateId(String templateId)
The ID of the health check template that you want to modify.
|
UpdateCloudGtmMonitorTemplateRequest.Builder |
timeout(Integer timeout)
Probe timeout (in milliseconds), data packets not returned within the timeout period are considered as health check timeouts:
2000
3000
5000
10000
example:
5000
|
public UpdateCloudGtmMonitorTemplateRequest.Builder acceptLanguage(String acceptLanguage)
The language of the response. Valid values:
en-US
public UpdateCloudGtmMonitorTemplateRequest.Builder clientToken(String clientToken)
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.
example:1ae05db4-10e7-11ef-b126-00163e24**22
public UpdateCloudGtmMonitorTemplateRequest.Builder evaluationCount(Integer evaluationCount)
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
public UpdateCloudGtmMonitorTemplateRequest.Builder extendInfo(String extendInfo)
The extended information. The value of this parameter is a JSON string. The required parameters vary based on the health check protocol.
HTTP or HTTPS:
host: the Host field of an HTTP or HTTPS request header during an HTTP or HTTPS health check. The parameter value indicates the HTTP website that you want to visit. By default, the value is the primary domain name. You can change the value based on your business requirements.
path: the URL for HTTP or HTTPS health checks. Default value: /.
code: the alert threshold. During an HTTP or HTTPS health check, the system checks whether a web server functions as expected based on the status code that is returned from the web server. If the returned status code is greater than the specified threshold, the corresponding application service address is deemed abnormal. Valid values:
sni: specifies whether to enable Server Name Indication (SNI). This parameter is used only when the health check protocol is HTTPS. SNI is an extension to the Transport Layer Security (TLS) protocol, which allows a client to specify the host to be connected when the client sends a TLS handshake request. TLS handshakes occur before any data of HTTP requests is sent. Therefore, SNI enables servers to identify the services that clients are attempting to access before certificates are sent. This allows the servers to present correct certificates to the clients. Valid values:
followRedirect: specifies whether to follow 3XX redirects. Valid values:
ping:
packetNum: the total number of Internet Control Message Protocol (ICMP) packets that are sent to the address for each ping-based health check. Valid values: 20, 50, and 100.
packetLossRate: the ICMP packet loss rate for each ping-based health check. The packet loss rate in a health check can be calculated by using the following formula: Packet loss rate in a health check = (Number of lost packets/Total number of sent ICMP packets) × 100%. If the packet loss rate reaches the threshold, an alert is triggered. Valid values: 10, 30, 40, 80, 90, and 100.
{"code":200,"path":"\index.htm","host":"aliyun.com"}
public UpdateCloudGtmMonitorTemplateRequest.Builder failureRate(Integer failureRate)
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
public UpdateCloudGtmMonitorTemplateRequest.Builder interval(Integer interval)
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.
example:60
public UpdateCloudGtmMonitorTemplateRequest.Builder ispCityNodes(List<UpdateCloudGtmMonitorTemplateRequest.IspCityNodes> ispCityNodes)
The health check nodes. You can call the ListCloudGtmMonitorNodes operation to obtain the health check nodes.
public UpdateCloudGtmMonitorTemplateRequest.Builder name(String name)
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.
example:Ping-IPv4
public UpdateCloudGtmMonitorTemplateRequest.Builder templateId(String templateId)
The ID of the health check template that you want to modify. This ID uniquely identifies the health check template.
This parameter is required.
example:mtp-89518052425100**80
public UpdateCloudGtmMonitorTemplateRequest.Builder timeout(Integer timeout)
Probe timeout (in milliseconds), data packets not returned within the timeout period are considered as health check timeouts:
5000
public UpdateCloudGtmMonitorTemplateRequest build()
Copyright © 2026. All rights reserved.