public class L7RuleHealth extends AbstractModel
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 in times.
|
Long |
getEnable()
Get 1: enabled, 0: disabled
|
Long |
getInterval()
Get Detection interval in seconds
|
Long |
getKickNum()
Get Unhealthy threshold in times.
|
String |
getMethod()
Get HTTP request method.
|
String |
getRuleId()
Get Rule ID
|
Long |
getStatus()
Get Configuration status.
|
Long |
getStatusCode()
Get Healthy status code during health check.
|
String |
getUrl()
Get URL of checked directory.
|
void |
setAliveNum(Long AliveNum)
Set Healthy threshold in times.
|
void |
setEnable(Long Enable)
Set 1: enabled, 0: disabled
|
void |
setInterval(Long Interval)
Set Detection interval in seconds
|
void |
setKickNum(Long KickNum)
Set Unhealthy threshold in times.
|
void |
setMethod(String Method)
Set HTTP request method.
|
void |
setRuleId(String RuleId)
Set Rule ID
|
void |
setStatus(Long Status)
Set Configuration status.
|
void |
setStatusCode(Long StatusCode)
Set Healthy status code during health check.
|
void |
setUrl(String Url)
Set URL of checked directory.
|
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 L7RuleHealth()
public L7RuleHealth(L7RuleHealth source)
public String getRuleId()
public void setRuleId(String RuleId)
RuleId
- Rule IDpublic Long getEnable()
public void setEnable(Long Enable)
Enable
- 1: enabled, 0: disabledpublic Long getInterval()
public void setInterval(Long Interval)
Interval
- Detection interval in secondspublic Long getKickNum()
public void setKickNum(Long KickNum)
KickNum
- Unhealthy threshold in times.public Long getAliveNum()
public void setAliveNum(Long AliveNum)
AliveNum
- Healthy threshold in times.public String getMethod()
public void setMethod(String Method)
Method
- HTTP request method. Valid values: [HEAD, GET]public Long getStatusCode()
public void setStatusCode(Long StatusCode)
StatusCode
- Healthy status code during health check. xx = 1, 2xx = 2, 3xx = 4, 4xx = 8, 5xx = 16. Multiple status code values are added uppublic String getUrl()
public void setUrl(String Url)
Url
- URL of checked directory. Default value: /public Long getStatus()
public void setStatus(Long Status)
Status
- Configuration status. 0: normal, 1: configuring, 2: configuration failedCopyright © 2021. All rights reserved.