public static final class AddDnsGtmMonitorRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
AddDnsGtmMonitorRequest.Builder |
addrPoolId(String addrPoolId)
The ID of the address pool.
|
AddDnsGtmMonitorRequest |
build() |
AddDnsGtmMonitorRequest.Builder |
evaluationCount(Integer evaluationCount)
The maximum number of consecutive exceptions detected.
|
AddDnsGtmMonitorRequest.Builder |
interval(Integer interval)
The health check interval.
|
AddDnsGtmMonitorRequest.Builder |
ispCityNode(List<AddDnsGtmMonitorRequest.IspCityNode> ispCityNode)
The monitored nodes.
|
AddDnsGtmMonitorRequest.Builder |
lang(String lang)
The language of the values of specific response parameters.
|
AddDnsGtmMonitorRequest.Builder |
monitorExtendInfo(String monitorExtendInfo)
The extended information.
|
AddDnsGtmMonitorRequest.Builder |
protocolType(String protocolType)
The health check protocol.
|
AddDnsGtmMonitorRequest.Builder |
timeout(Integer timeout)
The timeout period.
|
public AddDnsGtmMonitorRequest.Builder addrPoolId(String addrPoolId)
The ID of the address pool.
This parameter is required.
example:pool1
public AddDnsGtmMonitorRequest.Builder evaluationCount(Integer evaluationCount)
The maximum number of consecutive exceptions detected. If the number of consecutive exceptions detected reaches the maximum number, the application service is deemed abnormal.
This parameter is required.
example:1
public AddDnsGtmMonitorRequest.Builder interval(Integer interval)
The health check interval. Unit: seconds.
This parameter is required.
example:60
public AddDnsGtmMonitorRequest.Builder ispCityNode(List<AddDnsGtmMonitorRequest.IspCityNode> ispCityNode)
The monitored nodes.
This parameter is required.
public AddDnsGtmMonitorRequest.Builder lang(String lang)
The language of the values of specific response parameters. Default value: en. Valid values: en, zh, and ja.
example:en
public AddDnsGtmMonitorRequest.Builder monitorExtendInfo(String monitorExtendInfo)
The extended information. The required parameters vary based on the value of ProtocolType.
HTTP or HTTPS
port: the port that you want to check
host: the host settings
path: the URL path
code: the response code. The health check result is deemed abnormal if the returned value is greater than the specified value.
failureRate: the failure rate
sni: specifies whether to enable server name indication (SNI). This parameter is available only when ProtocolType is set to HTTPS. Valid values:
nodeType: the type of the node for monitoring when Type is set to DOMAIN. Valid values:
PING
failureRate: the failure rate
packetNum: the number of ping packets
packetLossRate: the loss rate of ping packets
nodeType: the type of the node for monitoring when Type is set to DOMAIN. Valid values:
TCP
port: the port that you want to check
failureRate: the failure rate
nodeType: the type of the node for monitoring when Type is set to DOMAIN. Valid values:
This parameter is required.
example:{"code":200,"path":"\index.htm","host":"aliyun.com"}
public AddDnsGtmMonitorRequest.Builder protocolType(String protocolType)
The health check protocol. Valid values:
This parameter is required.
example:http
public AddDnsGtmMonitorRequest.Builder timeout(Integer timeout)
The timeout period. Unit: milliseconds.
This parameter is required.
example:30000
public AddDnsGtmMonitorRequest build()
Copyright © 2026. All rights reserved.