public class TargetGroupHealthCheck extends AbstractModel
header, skipSign| Constructor and Description |
|---|
TargetGroupHealthCheck() |
TargetGroupHealthCheck(TargetGroupHealthCheck source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
Long |
getHealthNum()
Get Health detection threshold.
|
Boolean |
getHealthSwitch()
Get Whether to enable the health check.
|
Long |
getIntervalTime()
Get Detection interval time.
|
Long |
getPort()
Get Health check port, which is required when the probe protocol is TCP.
|
String |
getProtocol()
Get Protocol used for health check, which supports PING and TCP and is PING by default.
|
Long |
getTimeout()
Get Health check timeout.
|
Long |
getUnHealthNum()
Get Unhealth detection threshold.
|
void |
setHealthNum(Long HealthNum)
Set Health detection threshold.
|
void |
setHealthSwitch(Boolean HealthSwitch)
Set Whether to enable the health check.
|
void |
setIntervalTime(Long IntervalTime)
Set Detection interval time.
|
void |
setPort(Long Port)
Set Health check port, which is required when the probe protocol is TCP.
|
void |
setProtocol(String Protocol)
Set Protocol used for health check, which supports PING and TCP and is PING by default.
|
void |
setTimeout(Long Timeout)
Set Health check timeout.
|
void |
setUnHealthNum(Long UnHealthNum)
Set Unhealth detection threshold.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic TargetGroupHealthCheck()
public TargetGroupHealthCheck(TargetGroupHealthCheck source)
public Boolean getHealthSwitch()
public void setHealthSwitch(Boolean HealthSwitch)
HealthSwitch - Whether to enable the health check.public String getProtocol()
public void setProtocol(String Protocol)
Protocol - Protocol used for health check, which supports PING and TCP and is PING by default.
- PING: icmp
- TCP: tcppublic Long getPort()
public void setPort(Long Port)
Port - Health check port, which is required when the probe protocol is TCP.public Long getTimeout()
public void setTimeout(Long Timeout)
Timeout - Health check timeout. The default is 2 seconds. Value range: 2-30 seconds.public Long getIntervalTime()
public void setIntervalTime(Long IntervalTime)
IntervalTime - Detection interval time. The default is 5 seconds. Value range: 2-300 seconds.public Long getHealthNum()
public void setHealthNum(Long HealthNum)
HealthNum - Health detection threshold. The default is 3 times. Value range: 2-10 times.public Long getUnHealthNum()
public void setUnHealthNum(Long UnHealthNum)
UnHealthNum - Unhealth detection threshold. The default is 3 times. Value range: 2-10 times.Copyright © 2025. All rights reserved.