Class: TencentCloud::Teo::V20220901::FrequentScanningProtection
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::FrequentScanningProtection
- Defined in:
- lib/v20220901/models.rb
Overview
高频扫描防护配置选项,当某一访客的请求频繁命中「配置为拦截」的托管规则时,在一段时间内封禁该访客所有请求。
Instance Attribute Summary collapse
- #Action ⇒ Object
- #ActionDuration ⇒ Object
- #BlockThreshold ⇒ Object
- #CountBy ⇒ Object
- #CountingPeriod ⇒ Object
- #Enabled ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(enabled = nil, action = nil, countby = nil, blockthreshold = nil, countingperiod = nil, actionduration = nil) ⇒ FrequentScanningProtection
constructor
A new instance of FrequentScanningProtection.
Constructor Details
#initialize(enabled = nil, action = nil, countby = nil, blockthreshold = nil, countingperiod = nil, actionduration = nil) ⇒ FrequentScanningProtection
Returns a new instance of FrequentScanningProtection.
13100 13101 13102 13103 13104 13105 13106 13107 |
# File 'lib/v20220901/models.rb', line 13100 def initialize(enabled=nil, action=nil, countby=nil, blockthreshold=nil, countingperiod=nil, actionduration=nil) @Enabled = enabled @Action = action @CountBy = countby @BlockThreshold = blockthreshold @CountingPeriod = countingperiod @ActionDuration = actionduration end |
Instance Attribute Details
#Action ⇒ Object
13098 13099 13100 |
# File 'lib/v20220901/models.rb', line 13098 def Action @Action end |
#ActionDuration ⇒ Object
13098 13099 13100 |
# File 'lib/v20220901/models.rb', line 13098 def ActionDuration @ActionDuration end |
#BlockThreshold ⇒ Object
13098 13099 13100 |
# File 'lib/v20220901/models.rb', line 13098 def BlockThreshold @BlockThreshold end |
#CountBy ⇒ Object
13098 13099 13100 |
# File 'lib/v20220901/models.rb', line 13098 def CountBy @CountBy end |
#CountingPeriod ⇒ Object
13098 13099 13100 |
# File 'lib/v20220901/models.rb', line 13098 def CountingPeriod @CountingPeriod end |
#Enabled ⇒ Object
13098 13099 13100 |
# File 'lib/v20220901/models.rb', line 13098 def Enabled @Enabled end |
Instance Method Details
#deserialize(params) ⇒ Object
13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 |
# File 'lib/v20220901/models.rb', line 13109 def deserialize(params) @Enabled = params['Enabled'] unless params['Action'].nil? @Action = SecurityAction.new @Action.deserialize(params['Action']) end @CountBy = params['CountBy'] @BlockThreshold = params['BlockThreshold'] @CountingPeriod = params['CountingPeriod'] @ActionDuration = params['ActionDuration'] end |