public class HealthCheck extends AbstractModel
Constructor and Description |
---|
HealthCheck() |
HealthCheck(HealthCheck 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 |
getCheckPort()
Get Health check port (a custom check parameter), which is the port of the real server by default.
|
String |
getCheckType()
Get Health check protocol (a custom check parameter).
|
String |
getContextType()
Get Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`.
|
Long |
getHealthNum()
Get Health threshold.
|
Long |
getHealthSwitch()
Get Whether to enable health check.
|
Long |
getIntervalTime()
Get Health check interval in seconds.
|
String |
getRecvContext()
Get Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`.
|
String |
getSendContext()
Get Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`.
|
Long |
getTimeOut()
Get Health check response timeout period in seconds.
|
Long |
getUnHealthyNum()
Get Unhealthy threshold.
|
void |
setCheckPort(Long CheckPort)
Set Health check port (a custom check parameter), which is the port of the real server by default.
|
void |
setCheckType(String CheckType)
Set Health check protocol (a custom check parameter).
|
void |
setContextType(String ContextType)
Set Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`.
|
void |
setHealthNum(Long HealthNum)
Set Health threshold.
|
void |
setHealthSwitch(Long HealthSwitch)
Set Whether to enable health check.
|
void |
setIntervalTime(Long IntervalTime)
Set Health check interval in seconds.
|
void |
setRecvContext(String RecvContext)
Set Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`.
|
void |
setSendContext(String SendContext)
Set Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`.
|
void |
setTimeOut(Long TimeOut)
Set Health check response timeout period in seconds.
|
void |
setUnHealthyNum(Long UnHealthyNum)
Set Unhealthy threshold.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public HealthCheck()
public HealthCheck(HealthCheck source)
public Long getHealthSwitch()
public void setHealthSwitch(Long HealthSwitch)
HealthSwitch
- Whether to enable health check. Valid values: 1: enable; 0: disable
Note: this field may return null, indicating that no valid values can be obtained.public Long getTimeOut()
public void setTimeOut(Long TimeOut)
TimeOut
- Health check response timeout period in seconds. Value range: 2–60. Default value: 2. The value of this parameter should be smaller than the check interval.
Note: this field may return null, indicating that no valid values can be obtained.public Long getIntervalTime()
public void setIntervalTime(Long IntervalTime)
IntervalTime
- Health check interval in seconds. Value range: 5–300. Default value: 5.
Note: this field may return null, indicating that no valid values can be obtained.public Long getHealthNum()
public void setHealthNum(Long HealthNum)
HealthNum
- Health threshold. Value range: 2–10. Default value: 3, indicating that if a forward is found healthy three consecutive times, it will be considered normal.
Note: this field may return null, indicating that no valid values can be obtained.public Long getUnHealthyNum()
public void setUnHealthyNum(Long UnHealthyNum)
UnHealthyNum
- Unhealthy threshold. Value range: 2–10. Default value: 3, indicating that if a forward is found unhealthy three consecutive times, it will be considered exceptional.
Note: this field may return null, indicating that no valid values can be obtained.public Long getCheckPort()
public void setCheckPort(Long CheckPort)
CheckPort
- Health check port (a custom check parameter), which is the port of the real server by default. Unless you want to specify a port, we recommend you leave it empty.
Note: this field may return null, indicating that no valid values can be obtained.public String getContextType()
public void setContextType(String ContextType)
ContextType
- Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`. This parameter represents the input format of the health check. Valid values: HEX, TEXT. If the value is `HEX`, the characters of `SendContext` and `RecvContext` can only be selected from `0123456789ABCDEF`, and the length must be an even number.
Note: this field may return null, indicating that no valid values can be obtained.public String getSendContext()
public void setSendContext(String SendContext)
SendContext
- Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`. This parameter represents the content of the request sent by the health check. It can contain up to 500 visible ASCII characters.
Note: this field may return null, indicating that no valid values can be obtained.public String getRecvContext()
public void setRecvContext(String RecvContext)
RecvContext
- Health check protocol (a custom check parameter), which is required if the value of `CheckType` is `CUSTOM`. This parameter represents the result returned by the health check. It can contain up to 500 visible ASCII characters.
Note: this field may return null, indicating that no valid values can be obtained.public String getCheckType()
public void setCheckType(String CheckType)
CheckType
- Health check protocol (a custom check parameter). Valid values: TCP, CUSTOM (applicable only to UDP listeners. If custom health check is used, this parameter will be required).
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.