public class SlowRateConfig extends AbstractModel
header, skipSign
Constructor and Description |
---|
SlowRateConfig() |
SlowRateConfig(SlowRateConfig 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 |
getInterval()
Get The statistics interval in seconds.
|
String |
getSwitch()
Get Switch.
|
Long |
getThreshold()
Get Specifies the rate threshold applied during statistics in bps.
|
void |
setInterval(Long Interval)
Set The statistics interval in seconds.
|
void |
setSwitch(String Switch)
Set Switch.
|
void |
setThreshold(Long Threshold)
Set Specifies the rate threshold applied during statistics in bps.
|
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, toJsonString
public SlowRateConfig()
public SlowRateConfig(SlowRateConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- Switch. Values:
public Long getInterval()
public void setInterval(Long Interval)
Interval
- The statistics interval in seconds. after the first packet transfer, the data transmission axis is split by this parameter for separate computing of slow attacks on each shard.public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold
- Specifies the rate threshold applied during statistics in bps. if the transmission rate in this shard does not reach the parameter value, it is identified as a slow attack and the slow attack handling method is applied.Copyright © 2025. All rights reserved.