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 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 | 
| String | getSwitch()Get 开关,取值有:
on:开启;
off:关闭。 | 
| Long | getThreshold()Get 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 | 
| void | setInterval(Long Interval)Set 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 | 
| void | setSwitch(String Switch)Set 开关,取值有:
on:开启;
off:关闭。 | 
| void | setThreshold(Long Threshold)Set 统计时应用的速率阈值,单位是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, toJsonStringpublic SlowRateConfig()
public SlowRateConfig(SlowRateConfig source)
public String getSwitch()
public void setSwitch(String Switch)
Switch - 开关,取值有:
public Long getInterval()
public void setInterval(Long Interval)
Interval - 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold - 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。Copyright © 2025. All rights reserved.