public class UpstreamHealthCheckConfig extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| UpstreamHealthCheckConfig() | 
| UpstreamHealthCheckConfig(UpstreamHealthCheckConfig 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 | 
|---|---|
| KongActiveHealthCheck | getActiveHealthCheck()Get 主动健康检查配置 | 
| Boolean | getEnableActiveHealthCheck()Get 开启主动健康检查 | 
| Boolean | getEnablePassiveHealthCheck()Get 开启被动健康检查 | 
| Long | getFailures()Get 连续异常阈值,单位:次 | 
| Long[] | getHealthyHttpStatuses()Get 健康HTTP状态码 | 
| Boolean | getIgnoreZeroWeightNodes()Deprecated.   | 
| KongPassiveHealthCheck | getPassiveHealthCheck()Get 被动健康检查配置 | 
| Long | getSuccesses()Get 连续健康阈值,单位:次 | 
| Long | getTimeouts()Get 超时阈值,单位:次 | 
| Long[] | getUnhealthyHttpStatuses()Get 异常HTTP状态码 | 
| Boolean | getZeroWeightHeathCheck()Get 健康检查支持权重为0节点 | 
| void | setActiveHealthCheck(KongActiveHealthCheck ActiveHealthCheck)Set 主动健康检查配置 | 
| void | setEnableActiveHealthCheck(Boolean EnableActiveHealthCheck)Set 开启主动健康检查 | 
| void | setEnablePassiveHealthCheck(Boolean EnablePassiveHealthCheck)Set 开启被动健康检查 | 
| void | setFailures(Long Failures)Set 连续异常阈值,单位:次 | 
| void | setHealthyHttpStatuses(Long[] HealthyHttpStatuses)Set 健康HTTP状态码 | 
| void | setIgnoreZeroWeightNodes(Boolean IgnoreZeroWeightNodes)Deprecated.   | 
| void | setPassiveHealthCheck(KongPassiveHealthCheck PassiveHealthCheck)Set 被动健康检查配置 | 
| void | setSuccesses(Long Successes)Set 连续健康阈值,单位:次 | 
| void | setTimeouts(Long Timeouts)Set 超时阈值,单位:次 | 
| void | setUnhealthyHttpStatuses(Long[] UnhealthyHttpStatuses)Set 异常HTTP状态码 | 
| void | setZeroWeightHeathCheck(Boolean ZeroWeightHeathCheck)Set 健康检查支持权重为0节点 | 
| 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 UpstreamHealthCheckConfig()
public UpstreamHealthCheckConfig(UpstreamHealthCheckConfig source)
public Boolean getEnableActiveHealthCheck()
public void setEnableActiveHealthCheck(Boolean EnableActiveHealthCheck)
EnableActiveHealthCheck - 开启主动健康检查public KongActiveHealthCheck getActiveHealthCheck()
public void setActiveHealthCheck(KongActiveHealthCheck ActiveHealthCheck)
ActiveHealthCheck - 主动健康检查配置public Boolean getEnablePassiveHealthCheck()
public void setEnablePassiveHealthCheck(Boolean EnablePassiveHealthCheck)
EnablePassiveHealthCheck - 开启被动健康检查public KongPassiveHealthCheck getPassiveHealthCheck()
public void setPassiveHealthCheck(KongPassiveHealthCheck PassiveHealthCheck)
PassiveHealthCheck - 被动健康检查配置public Long getSuccesses()
public void setSuccesses(Long Successes)
Successes - 连续健康阈值,单位:次public Long getFailures()
public void setFailures(Long Failures)
Failures - 连续异常阈值,单位:次public Long getTimeouts()
public void setTimeouts(Long Timeouts)
Timeouts - 超时阈值,单位:次public Long[] getHealthyHttpStatuses()
public void setHealthyHttpStatuses(Long[] HealthyHttpStatuses)
HealthyHttpStatuses - 健康HTTP状态码public Long[] getUnhealthyHttpStatuses()
public void setUnhealthyHttpStatuses(Long[] UnhealthyHttpStatuses)
UnhealthyHttpStatuses - 异常HTTP状态码@Deprecated public Boolean getIgnoreZeroWeightNodes()
@Deprecated public void setIgnoreZeroWeightNodes(Boolean IgnoreZeroWeightNodes)
IgnoreZeroWeightNodes - 健康检查监控上报的数据屏蔽权重为0的节点
注意:此字段可能返回 null,表示取不到有效值。public Boolean getZeroWeightHeathCheck()
public void setZeroWeightHeathCheck(Boolean ZeroWeightHeathCheck)
ZeroWeightHeathCheck - 健康检查支持权重为0节点Copyright © 2025. All rights reserved.