public class RateLimitingRule extends AbstractModel
header, skipSign
Constructor and Description |
---|
RateLimitingRule() |
RateLimitingRule(RateLimitingRule 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 |
---|---|
SecurityAction |
getAction()
Get Precision rate limiting handling methods.
|
String |
getActionDuration()
Get The duration of an Action is only supported in the following units: s: seconds, value range 1–120; m: minutes, value range 1–120; h: hours, value range 1–48; d: days, value range 1–30..
|
String |
getCondition()
Get The specific content of precise speed limit shall comply with the expression syntax.
|
String[] |
getCountBy()
Get Rate threshold request feature match mode.
|
String |
getCountingPeriod()
Get Specifies the time window for statistics.
|
String |
getEnabled()
Get Whether the precise rate limiting rule is enabled.
|
String |
getId()
Get The ID of precise rate limiting.
|
Long |
getMaxRequestThreshold()
Get Precision rate limiting specifies the cumulative number of interceptions within the time range.
|
String |
getName()
Get Specifies the name of the precise rate limit.
|
Long |
getPriority()
Get Precision rate limiting specifies the priority.
|
void |
setAction(SecurityAction Action)
Set Precision rate limiting handling methods.
|
void |
setActionDuration(String ActionDuration)
Set The duration of an Action is only supported in the following units: s: seconds, value range 1–120; m: minutes, value range 1–120; h: hours, value range 1–48; d: days, value range 1–30..
|
void |
setCondition(String Condition)
Set The specific content of precise speed limit shall comply with the expression syntax.
|
void |
setCountBy(String[] CountBy)
Set Rate threshold request feature match mode.
|
void |
setCountingPeriod(String CountingPeriod)
Set Specifies the time window for statistics.
|
void |
setEnabled(String Enabled)
Set Whether the precise rate limiting rule is enabled.
|
void |
setId(String Id)
Set The ID of precise rate limiting.
|
void |
setMaxRequestThreshold(Long MaxRequestThreshold)
Set Precision rate limiting specifies the cumulative number of interceptions within the time range.
|
void |
setName(String Name)
Set Specifies the name of the precise rate limit.
|
void |
setPriority(Long Priority)
Set Precision rate limiting specifies the priority.
|
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 RateLimitingRule()
public RateLimitingRule(RateLimitingRule source)
public String getId()
public void setId(String Id)
Id
- The ID of precise rate limiting. rule ID supports different rule configuration operations: public String getName()
public void setName(String Name)
Name
- Specifies the name of the precise rate limit.public String getCondition()
public void setCondition(String Condition)
Condition
- The specific content of precise speed limit shall comply with the expression syntax. for detailed specifications, see the product documentation.public String[] getCountBy()
public void setCountBy(String[] CountBy)
CountBy
- Rate threshold request feature match mode. this field is required when Enabled is on. when there are multiple conditions, composite multiple conditions will perform statistics count. the maximum number of conditions must not exceed 5. valid values: public Long getMaxRequestThreshold()
public void setMaxRequestThreshold(Long MaxRequestThreshold)
MaxRequestThreshold
- Precision rate limiting specifies the cumulative number of interceptions within the time range. value ranges from 1 to 100000.public String getCountingPeriod()
public void setCountingPeriod(String CountingPeriod)
CountingPeriod
- Specifies the time window for statistics. valid values: public String getActionDuration()
public void setActionDuration(String ActionDuration)
ActionDuration
- The duration of an Action is only supported in the following units: public SecurityAction getAction()
public void setAction(SecurityAction Action)
Action
- Precision rate limiting handling methods. valid values: public Long getPriority()
public void setPriority(Long Priority)
Priority
- Precision rate limiting specifies the priority. value range is 0 to 100. default is 0.public String getEnabled()
public void setEnabled(String Enabled)
Enabled
- Whether the precise rate limiting rule is enabled. valid values: Copyright © 2025. All rights reserved.