public class L7RuleHealth extends AbstractModel
skipSign
Constructor and Description |
---|
L7RuleHealth() |
L7RuleHealth(L7RuleHealth 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 |
getAliveNum()
Get Healthy threshold, which specifies the number of consecutive successful health checks.
|
Long |
getBlockInter()
Get Blocking period in the passive detection configuration
|
Long |
getEnable()
Get Switch.
|
Long |
getFailedCountInter()
Get Time interval between passive detections
|
Long |
getFailedThreshold()
Get Unhealthy threshold in the passive detection configuration
|
Long |
getInterval()
Get Health check interval.
|
Long |
getKickNum()
Get Unhealthy threshold, which specifies the number of consecutive failed health checks.
|
String |
getMethod()
Get HTTP request method.
|
Long |
getPassiveEnable()
Get Enables passive detection.
|
Long |
getPassiveStatus()
Get Configuration status of the passive health check.
|
Long |
getPassiveStatusCode()
Get Status code that signals that the passive detection considers the status normal.
|
Long |
getProtocolFlag()
Get Whether to deploy both HTTP and HTTPS health check rules
|
String |
getRuleId()
Get ID of the rule
|
Long |
getStatus()
Get Configuration status.
|
Long |
getStatusCode()
Get Status code that signifies a normal state.
|
String |
getUrl()
Get HTTP request path.
|
void |
setAliveNum(Long AliveNum)
Set Healthy threshold, which specifies the number of consecutive successful health checks.
|
void |
setBlockInter(Long BlockInter)
Set Blocking period in the passive detection configuration
|
void |
setEnable(Long Enable)
Set Switch.
|
void |
setFailedCountInter(Long FailedCountInter)
Set Time interval between passive detections
|
void |
setFailedThreshold(Long FailedThreshold)
Set Unhealthy threshold in the passive detection configuration
|
void |
setInterval(Long Interval)
Set Health check interval.
|
void |
setKickNum(Long KickNum)
Set Unhealthy threshold, which specifies the number of consecutive failed health checks.
|
void |
setMethod(String Method)
Set HTTP request method.
|
void |
setPassiveEnable(Long PassiveEnable)
Set Enables passive detection.
|
void |
setPassiveStatus(Long PassiveStatus)
Set Configuration status of the passive health check.
|
void |
setPassiveStatusCode(Long PassiveStatusCode)
Set Status code that signals that the passive detection considers the status normal.
|
void |
setProtocolFlag(Long ProtocolFlag)
Set Whether to deploy both HTTP and HTTPS health check rules
|
void |
setRuleId(String RuleId)
Set ID of the rule
|
void |
setStatus(Long Status)
Set Configuration status.
|
void |
setStatusCode(Long StatusCode)
Set Status code that signifies a normal state.
|
void |
setUrl(String Url)
Set HTTP request path.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public L7RuleHealth()
public L7RuleHealth(L7RuleHealth source)
public Long getStatus()
public void setStatus(Long Status)
Status
- Configuration status. Values: `0` (normal), `1` (configuration in progress) and `2` (configuration failed).public Long getEnable()
public void setEnable(Long Enable)
Enable
- Switch. Values: `1`: Enable; `0`: Disable.public String getRuleId()
public void setRuleId(String RuleId)
RuleId
- ID of the rulepublic String getUrl()
public void setUrl(String Url)
Url
- HTTP request path. The default value is /.public Long getInterval()
public void setInterval(Long Interval)
Interval
- Health check interval. Unit: second.public Long getAliveNum()
public void setAliveNum(Long AliveNum)
AliveNum
- Healthy threshold, which specifies the number of consecutive successful health checks.public Long getKickNum()
public void setKickNum(Long KickNum)
KickNum
- Unhealthy threshold, which specifies the number of consecutive failed health checks.public String getMethod()
public void setMethod(String Method)
Method
- HTTP request method. Values: `HEAD` and `GET`.public Long getStatusCode()
public void setStatusCode(Long StatusCode)
StatusCode
- Status code that signifies a normal state. Values: `1` (1xx), `2` (2xx), `4` (3xx), `8` (4xx), and `16` (5xx).public Long getProtocolFlag()
public void setProtocolFlag(Long ProtocolFlag)
ProtocolFlag
- Whether to deploy both HTTP and HTTPS health check rulespublic Long getPassiveEnable()
public void setPassiveEnable(Long PassiveEnable)
PassiveEnable
- Enables passive detection. Values: `1` (enable) and `0` (disable).public Long getBlockInter()
public void setBlockInter(Long BlockInter)
BlockInter
- Blocking period in the passive detection configurationpublic Long getFailedCountInter()
public void setFailedCountInter(Long FailedCountInter)
FailedCountInter
- Time interval between passive detectionspublic Long getFailedThreshold()
public void setFailedThreshold(Long FailedThreshold)
FailedThreshold
- Unhealthy threshold in the passive detection configurationpublic Long getPassiveStatusCode()
public void setPassiveStatusCode(Long PassiveStatusCode)
PassiveStatusCode
- Status code that signals that the passive detection considers the status normal. Values: `1` (1xx), `2` (2xx), `4` (3xx), `8` (4xx), and `16` (5xx).public Long getPassiveStatus()
public void setPassiveStatus(Long PassiveStatus)
PassiveStatus
- Configuration status of the passive health check. Values: `0` (Normal), `1` (configuration in progress) and `2` (configuration failed).Copyright © 2023. All rights reserved.