public class UpstreamHealthChecker extends AbstractModel
Constructor and Description |
---|
UpstreamHealthChecker() |
UpstreamHealthChecker(UpstreamHealthChecker 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 |
---|---|
String |
getActiveCheckHttpPath()
Get The path for active health check.
|
Long |
getActiveCheckInterval()
Get The interval for active health check in seconds.
|
Long |
getActiveCheckTimeout()
Get The timeout period for active health check in seconds.
|
UpstreamHealthCheckerReqHeaders[] |
getActiveRequestHeader()
Get Header of the active health check request
|
Boolean |
getEnableActiveCheck()
Get Specifies whether to enable active health check
|
Boolean |
getEnablePassiveCheck()
Get Specifies whether the enable passive health check
|
String |
getHealthyHttpStatus()
Get The HTTP status code that indicates that the upstream is healthy
|
Long |
getHttpFailureThreshold()
Get The threshold on consecutive HTTP errors.
|
Long |
getTcpFailureThreshold()
Get The threshold on consecutive TCP errors.
|
Long |
getTimeoutThreshold()
Get The threshold on consecutive timeouts.
|
String |
getUnhealthyHttpStatus()
Get The HTTP status code that indicates that the upstream is unhealthy
|
Long |
getUnhealthyTimeout()
Get The period for an abnormal to recover automatically in seconds.
|
void |
setActiveCheckHttpPath(String ActiveCheckHttpPath)
Set The path for active health check.
|
void |
setActiveCheckInterval(Long ActiveCheckInterval)
Set The interval for active health check in seconds.
|
void |
setActiveCheckTimeout(Long ActiveCheckTimeout)
Set The timeout period for active health check in seconds.
|
void |
setActiveRequestHeader(UpstreamHealthCheckerReqHeaders[] ActiveRequestHeader)
Set Header of the active health check request
|
void |
setEnableActiveCheck(Boolean EnableActiveCheck)
Set Specifies whether to enable active health check
|
void |
setEnablePassiveCheck(Boolean EnablePassiveCheck)
Set Specifies whether the enable passive health check
|
void |
setHealthyHttpStatus(String HealthyHttpStatus)
Set The HTTP status code that indicates that the upstream is healthy
|
void |
setHttpFailureThreshold(Long HttpFailureThreshold)
Set The threshold on consecutive HTTP errors.
|
void |
setTcpFailureThreshold(Long TcpFailureThreshold)
Set The threshold on consecutive TCP errors.
|
void |
setTimeoutThreshold(Long TimeoutThreshold)
Set The threshold on consecutive timeouts.
|
void |
setUnhealthyHttpStatus(String UnhealthyHttpStatus)
Set The HTTP status code that indicates that the upstream is unhealthy
|
void |
setUnhealthyTimeout(Long UnhealthyTimeout)
Set The period for an abnormal to recover automatically in seconds.
|
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 UpstreamHealthChecker()
public UpstreamHealthChecker(UpstreamHealthChecker source)
public Boolean getEnableActiveCheck()
public void setEnableActiveCheck(Boolean EnableActiveCheck)
EnableActiveCheck
- Specifies whether to enable active health checkpublic Boolean getEnablePassiveCheck()
public void setEnablePassiveCheck(Boolean EnablePassiveCheck)
EnablePassiveCheck
- Specifies whether the enable passive health checkpublic String getHealthyHttpStatus()
public void setHealthyHttpStatus(String HealthyHttpStatus)
HealthyHttpStatus
- The HTTP status code that indicates that the upstream is healthypublic String getUnhealthyHttpStatus()
public void setUnhealthyHttpStatus(String UnhealthyHttpStatus)
UnhealthyHttpStatus
- The HTTP status code that indicates that the upstream is unhealthypublic Long getTcpFailureThreshold()
public void setTcpFailureThreshold(Long TcpFailureThreshold)
TcpFailureThreshold
- The threshold on consecutive TCP errors. Range: [0, 254]. `0` indicates not to check TCP.public Long getTimeoutThreshold()
public void setTimeoutThreshold(Long TimeoutThreshold)
TimeoutThreshold
- The threshold on consecutive timeouts. Range: [0, 254]. `0` indicates not to check TCP.public Long getHttpFailureThreshold()
public void setHttpFailureThreshold(Long HttpFailureThreshold)
HttpFailureThreshold
- The threshold on consecutive HTTP errors. Range: [0, 254]. `0` indicates not to check HTTP.public String getActiveCheckHttpPath()
public void setActiveCheckHttpPath(String ActiveCheckHttpPath)
ActiveCheckHttpPath
- The path for active health check. It defaults to `/`.public Long getActiveCheckTimeout()
public void setActiveCheckTimeout(Long ActiveCheckTimeout)
ActiveCheckTimeout
- The timeout period for active health check in seconds. Default: `5`.public Long getActiveCheckInterval()
public void setActiveCheckInterval(Long ActiveCheckInterval)
ActiveCheckInterval
- The interval for active health check in seconds. Default: `5`.public UpstreamHealthCheckerReqHeaders[] getActiveRequestHeader()
public void setActiveRequestHeader(UpstreamHealthCheckerReqHeaders[] ActiveRequestHeader)
ActiveRequestHeader
- Header of the active health check requestpublic Long getUnhealthyTimeout()
public void setUnhealthyTimeout(Long UnhealthyTimeout)
UnhealthyTimeout
- The period for an abnormal to recover automatically in seconds. If only the passive health check is enabled, it must be greater than 0. Otherwise the abnormal nodes can not recovered automatically. The default value is 30 seconds.Copyright © 2023. All rights reserved.