public class IpFreqLimit extends AbstractModel
Constructor and Description |
---|
IpFreqLimit() |
IpFreqLimit(IpFreqLimit 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 |
getQps()
Get 设置每秒请求数限制
超出限制的请求会直接返回 514
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getSwitch()
Get IP 限频配置开关
on:开启
off:关闭
|
void |
setQps(Long Qps)
Set 设置每秒请求数限制
超出限制的请求会直接返回 514
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setSwitch(String Switch)
Set IP 限频配置开关
on:开启
off:关闭
|
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 IpFreqLimit()
public IpFreqLimit(IpFreqLimit source)
public String getSwitch()
public void setSwitch(String Switch)
Switch
- IP 限频配置开关
on:开启
off:关闭public Long getQps()
public void setQps(Long Qps)
Qps
- 设置每秒请求数限制
超出限制的请求会直接返回 514
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2021. All rights reserved.