public static final class DescribeCloudGtmMonitorTemplateResponseBody.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeCloudGtmMonitorTemplateResponseBody |
build() |
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
createTime(String createTime)
Health check template creation time.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
createTimestamp(Long createTimestamp)
Health check template creation time (timestamp).
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
evaluationCount(Integer evaluationCount)
Retries count.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
extendInfo(String extendInfo)
The extended information.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
failureRate(Integer failureRate)
Percentage of selected node probe failures (%), that is, the percentage of abnormal detection points among the total detection points.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
interval(Integer interval)
The time interval (in seconds) between each check, with a default interval of 1 minute.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
ipVersion(String ipVersion)
Detect the type of the node IP address:
IPv4: Applicable when the target address type is IPv4;
IPv6: Applicable when the target address type is IPv6.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
ispCityNodes(DescribeCloudGtmMonitorTemplateResponseBody.IspCityNodes ispCityNodes)
Probe node list, detailed information can be obtained by calling ListCloudGtmMonitorNodes.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
name(String name)
The name of the health check probe template, which is recommended to be distinguishable for configuration personnel to differentiate and remember, ideally indicating the health check protocol.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
protocol(String protocol)
Protocol types to initiate probes to the target IP address:
ping
tcp
http
https
example:
ping
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
remark(String remark)
Remarks for the health check template.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
requestId(String requestId)
Unique request identification code.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
templateId(String templateId)
The ID of the health check template.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
timeout(Integer timeout)
Probe timeout (in milliseconds), data packets not returned within the timeout period are deemed as health check timeouts:
2000
3000
5000
10000
example:
5000
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
updateTime(String updateTime)
Health check template configuration modification time.
|
DescribeCloudGtmMonitorTemplateResponseBody.Builder |
updateTimestamp(Long updateTimestamp)
Health check template configuration modification time (timestamp).
|
public DescribeCloudGtmMonitorTemplateResponseBody.Builder createTime(String createTime)
Health check template creation time.
example:2024-03-23T13:09Z
public DescribeCloudGtmMonitorTemplateResponseBody.Builder createTimestamp(Long createTimestamp)
Health check template creation time (timestamp).
example:1527690629357
public DescribeCloudGtmMonitorTemplateResponseBody.Builder evaluationCount(Integer evaluationCount)
Retries count. 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 counts are:
2
public DescribeCloudGtmMonitorTemplateResponseBody.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: indicates whether Server Name Indication (SNI) is enabled. 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: indicates whether 3XX redirects are followed. 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 DescribeCloudGtmMonitorTemplateResponseBody.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 DescribeCloudGtmMonitorTemplateResponseBody.Builder interval(Integer interval)
The time interval (in seconds) between each check, with a default interval of 1 minute. The minimum supported health check interval is 15 seconds, available for flagship edition instances.
example:60
public DescribeCloudGtmMonitorTemplateResponseBody.Builder ipVersion(String ipVersion)
Detect the type of the node IP address:
IPv4
public DescribeCloudGtmMonitorTemplateResponseBody.Builder ispCityNodes(DescribeCloudGtmMonitorTemplateResponseBody.IspCityNodes ispCityNodes)
Probe node list, detailed information can be obtained by calling ListCloudGtmMonitorNodes.
public DescribeCloudGtmMonitorTemplateResponseBody.Builder name(String name)
The name of the health check probe template, which is recommended to be distinguishable for configuration personnel to differentiate and remember, ideally indicating the health check protocol.
example:Ping-IPv4
public DescribeCloudGtmMonitorTemplateResponseBody.Builder protocol(String protocol)
Protocol types to initiate probes to the target IP address:
ping
public DescribeCloudGtmMonitorTemplateResponseBody.Builder remark(String remark)
Remarks for the health check template.
example:test
public DescribeCloudGtmMonitorTemplateResponseBody.Builder requestId(String requestId)
Unique request identification code.
example:6AEC7A64-3CB1-4C49-8B35-0B901F1E26BF
public DescribeCloudGtmMonitorTemplateResponseBody.Builder templateId(String templateId)
The ID of the health check template. This ID uniquely identifies the health check template.
example:mtp-89518052425100**80
public DescribeCloudGtmMonitorTemplateResponseBody.Builder timeout(Integer timeout)
Probe timeout (in milliseconds), data packets not returned within the timeout period are deemed as health check timeouts:
5000
public DescribeCloudGtmMonitorTemplateResponseBody.Builder updateTime(String updateTime)
Health check template configuration modification time.
example:2024-03-29T13:20Z
public DescribeCloudGtmMonitorTemplateResponseBody.Builder updateTimestamp(Long updateTimestamp)
Health check template configuration modification time (timestamp).
example:1527690629357
public DescribeCloudGtmMonitorTemplateResponseBody build()
Copyright © 2026. All rights reserved.