Class SlowRateConfig
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.teo.v20220901.models.SlowRateConfig
-
public class SlowRateConfig extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetInterval()Get 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 注意:此字段可能返回 null,表示取不到有效值。StringgetSwitch()Get 开关,取值有: on:开启; off:关闭。LonggetThreshold()Get 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 注意:此字段可能返回 null,表示取不到有效值。voidsetInterval(Long Interval)Set 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 注意:此字段可能返回 null,表示取不到有效值。voidsetSwitch(String Switch)Set 开关,取值有: on:开启; off:关闭。voidsetThreshold(Long Threshold)Set 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 注意:此字段可能返回 null,表示取不到有效值。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
SlowRateConfig
public SlowRateConfig()
-
SlowRateConfig
public 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.
-
-
Method Detail
-
getSwitch
public String getSwitch()
Get 开关,取值有:- on:开启;
- off:关闭。
- Returns:
- Switch 开关,取值有:
- on:开启;
- off:关闭。
-
setSwitch
public void setSwitch(String Switch)
Set 开关,取值有:- on:开启;
- off:关闭。
- Parameters:
Switch- 开关,取值有:- on:开启;
- off:关闭。
-
getInterval
public Long getInterval()
Get 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Interval 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 注意:此字段可能返回 null,表示取不到有效值。
-
setInterval
public void setInterval(Long Interval)
Set 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Interval- 统计的间隔,单位是秒,即在首段包传输结束后,将数据传输轴按照本参数切分,每个分片独立计算慢速攻击。 注意:此字段可能返回 null,表示取不到有效值。
-
getThreshold
public Long getThreshold()
Get 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 注意:此字段可能返回 null,表示取不到有效值。- Returns:
- Threshold 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 注意:此字段可能返回 null,表示取不到有效值。
-
setThreshold
public void setThreshold(Long Threshold)
Set 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 注意:此字段可能返回 null,表示取不到有效值。- Parameters:
Threshold- 统计时应用的速率阈值,单位是bps,即如果本分片中的传输速率没达到本参数的值,则判定为慢速攻击,应用慢速攻击的处置方式。 注意:此字段可能返回 null,表示取不到有效值。
-
-