Class: TencentCloud::Dayu::V20180709::CCFrequencyRule

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180709/models.rb

Overview

CC的访问频率控制规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ccfrequencyruleid = nil, uri = nil, useragent = nil, cookie = nil, mode = nil, period = nil, reqnumber = nil, act = nil, exeduration = nil) ⇒ CCFrequencyRule

Returns a new instance of CCFrequencyRule.



186
187
188
189
190
191
192
193
194
195
196
# File 'lib/v20180709/models.rb', line 186

def initialize(ccfrequencyruleid=nil, uri=nil, useragent=nil, cookie=nil, mode=nil, period=nil, reqnumber=nil, act=nil, exeduration=nil)
  @CCFrequencyRuleId = ccfrequencyruleid
  @Uri = uri
  @UserAgent = useragent
  @Cookie = cookie
  @Mode = mode
  @Period = period
  @ReqNumber = reqnumber
  @Act = act
  @ExeDuration = exeduration
end

Instance Attribute Details

#ActObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def Act
  @Act
end

#CCFrequencyRuleIdObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def CCFrequencyRuleId
  @CCFrequencyRuleId
end

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def Cookie
  @Cookie
end

#ExeDurationObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def ExeDuration
  @ExeDuration
end

#ModeObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def Mode
  @Mode
end

#PeriodObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def Period
  @Period
end

#ReqNumberObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def ReqNumber
  @ReqNumber
end

#UriObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def Uri
  @Uri
end

#UserAgentObject

Parameters:

  • CCFrequencyRuleId:

    CC的访问频率控制规则ID

  • Uri:

    URI字符串,必须以/开头,例如/abc/a.php,长度不超过31;当URI=/时,匹配模式只能选择前缀匹配;

  • UserAgent:

    User-Agent字符串,长度不超过80

  • Cookie:

    Cookie字符串,长度不超过40

  • Mode:
  • Period:

    统计周期,单位秒,取值[10, 30, 60]

  • ReqNumber:
  • Act:

    执行动作,取值[“alg”(人机识别), “drop”(拦截)]

  • ExeDuration:


184
185
186
# File 'lib/v20180709/models.rb', line 184

def UserAgent
  @UserAgent
end

Instance Method Details

#deserialize(params) ⇒ Object



198
199
200
201
202
203
204
205
206
207
208
# File 'lib/v20180709/models.rb', line 198

def deserialize(params)
  @CCFrequencyRuleId = params['CCFrequencyRuleId']
  @Uri = params['Uri']
  @UserAgent = params['UserAgent']
  @Cookie = params['Cookie']
  @Mode = params['Mode']
  @Period = params['Period']
  @ReqNumber = params['ReqNumber']
  @Act = params['Act']
  @ExeDuration = params['ExeDuration']
end