public class LimitRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
LimitRule() |
LimitRule(LimitRule 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 |
---|---|
AccurateQpsThreshold[] |
getAccurateQpsThresholds()
Get 精确限流阈值
注意:此字段可能返回 null,表示取不到有效值。
|
RuleFilter[] |
getFilters()
Get 请求匹配条件
注意:此字段可能返回 null,表示取不到有效值。
|
KeyValue[] |
getLimitBy()
Get 参数限流依据组合
注意:此字段可能返回 null,表示取不到有效值。
|
QpsThreshold[] |
getQpsThresholds()
Get 限流阈值
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAccurateQpsThresholds(AccurateQpsThreshold[] AccurateQpsThresholds)
Set 精确限流阈值
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setFilters(RuleFilter[] Filters)
Set 请求匹配条件
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setLimitBy(KeyValue[] LimitBy)
Set 参数限流依据组合
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setQpsThresholds(QpsThreshold[] QpsThresholds)
Set 限流阈值
注意:此字段可能返回 null,表示取不到有效值。
|
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 LimitRule()
public LimitRule(LimitRule source)
public RuleFilter[] getFilters()
public void setFilters(RuleFilter[] Filters)
Filters
- 请求匹配条件
注意:此字段可能返回 null,表示取不到有效值。public KeyValue[] getLimitBy()
public void setLimitBy(KeyValue[] LimitBy)
LimitBy
- 参数限流依据组合
注意:此字段可能返回 null,表示取不到有效值。public QpsThreshold[] getQpsThresholds()
public void setQpsThresholds(QpsThreshold[] QpsThresholds)
QpsThresholds
- 限流阈值
注意:此字段可能返回 null,表示取不到有效值。public AccurateQpsThreshold[] getAccurateQpsThresholds()
public void setAccurateQpsThresholds(AccurateQpsThreshold[] AccurateQpsThresholds)
AccurateQpsThresholds
- 精确限流阈值
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2024. All rights reserved.