Class RateLimitUserRule

    • Constructor Detail

      • RateLimitUserRule

        public RateLimitUserRule()
      • RateLimitUserRule

        public RateLimitUserRule​(RateLimitUserRule 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

      • getThreshold

        public Long getThreshold()
        Get 速率限制统计阈值,单位是次,取值范围0-4294967294。
        Returns:
        Threshold 速率限制统计阈值,单位是次,取值范围0-4294967294。
      • setThreshold

        public void setThreshold​(Long Threshold)
        Set 速率限制统计阈值,单位是次,取值范围0-4294967294。
        Parameters:
        Threshold - 速率限制统计阈值,单位是次,取值范围0-4294967294。
      • getPeriod

        public Long getPeriod()
        Get 速率限制统计时间,取值范围 10/20/30/40/50/60 单位是秒。
        Returns:
        Period 速率限制统计时间,取值范围 10/20/30/40/50/60 单位是秒。
      • setPeriod

        public void setPeriod​(Long Period)
        Set 速率限制统计时间,取值范围 10/20/30/40/50/60 单位是秒。
        Parameters:
        Period - 速率限制统计时间,取值范围 10/20/30/40/50/60 单位是秒。
      • getRuleName

        public String getRuleName()
        Get 规则名,只能以英文字符,数字,下划线组合,且不能以下划线开头。
        Returns:
        RuleName 规则名,只能以英文字符,数字,下划线组合,且不能以下划线开头。
      • setRuleName

        public void setRuleName​(String RuleName)
        Set 规则名,只能以英文字符,数字,下划线组合,且不能以下划线开头。
        Parameters:
        RuleName - 规则名,只能以英文字符,数字,下划线组合,且不能以下划线开头。
      • getAction

        public String getAction()
        Get 处置动作,取值有:
      • monitor:观察;
      • drop:拦截;
      • alg:JavaScript挑战。
Returns:
Action 处置动作,取值有:
  • monitor:观察;
  • drop:拦截;
  • alg:JavaScript挑战。
  • Parameters:
    Action - 处置动作,取值有:
  • monitor:观察;
  • drop:拦截;
  • alg:JavaScript挑战。