public class RateLimitTemplateDetail extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| RateLimitTemplateDetail() | 
| RateLimitTemplateDetail(RateLimitTemplateDetail 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 | 
|---|---|
| String | getAction()Get 模板处置方式,取值有:
alg:JavaScript挑战;
monitor:观察。 | 
| Long | getID()Get 唯一id。 | 
| String | getMode()Get 模板等级名称,取值有:
sup_loose:超级宽松;
loose:宽松;
emergency:紧急;
normal:适中;
strict:严格;
close:关闭,仅精准速率限制生效。 | 
| Long | getPeriod()Get 统计周期,取值范围0-120秒。 | 
| Long | getPunishTime()Get 惩罚时间,取值范围0-2天,单位秒。 | 
| Long | getThreshold()Get 统计阈值,单位是次,取值范围0-4294967294。 | 
| void | setAction(String Action)Set 模板处置方式,取值有:
alg:JavaScript挑战;
monitor:观察。 | 
| void | setID(Long ID)Set 唯一id。 | 
| void | setMode(String Mode)Set 模板等级名称,取值有:
sup_loose:超级宽松;
loose:宽松;
emergency:紧急;
normal:适中;
strict:严格;
close:关闭,仅精准速率限制生效。 | 
| void | setPeriod(Long Period)Set 统计周期,取值范围0-120秒。 | 
| void | setPunishTime(Long PunishTime)Set 惩罚时间,取值范围0-2天,单位秒。 | 
| void | setThreshold(Long Threshold)Set 统计阈值,单位是次,取值范围0-4294967294。 | 
| 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 RateLimitTemplateDetail()
public RateLimitTemplateDetail(RateLimitTemplateDetail source)
public String getMode()
public void setMode(String Mode)
Mode - 模板等级名称,取值有:
public Long getID()
public void setID(Long ID)
ID - 唯一id。public String getAction()
public void setAction(String Action)
Action - 模板处置方式,取值有:
public Long getPunishTime()
public void setPunishTime(Long PunishTime)
PunishTime - 惩罚时间,取值范围0-2天,单位秒。public Long getThreshold()
public void setThreshold(Long Threshold)
Threshold - 统计阈值,单位是次,取值范围0-4294967294。public Long getPeriod()
public void setPeriod(Long Period)
Period - 统计周期,取值范围0-120秒。Copyright © 2025. All rights reserved.