Class: TencentCloud::Teo::V20220901::SlowRateConfig
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220901::SlowRateConfig
- Defined in:
- lib/v20220901/models.rb
Overview
慢速攻击的基础配置。
Instance Attribute Summary collapse
-
#Interval ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>.
-
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>.
-
#Threshold ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(switch = nil, interval = nil, threshold = nil) ⇒ SlowRateConfig
constructor
A new instance of SlowRateConfig.
Constructor Details
#initialize(switch = nil, interval = nil, threshold = nil) ⇒ SlowRateConfig
Returns a new instance of SlowRateConfig.
21857 21858 21859 21860 21861 |
# File 'lib/v20220901/models.rb', line 21857 def initialize(switch=nil, interval=nil, threshold=nil) @Switch = switch @Interval = interval @Threshold = threshold end |
Instance Attribute Details
#Interval ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>
21855 21856 21857 |
# File 'lib/v20220901/models.rb', line 21855 def Interval @Interval end |
#Switch ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>
21855 21856 21857 |
# File 'lib/v20220901/models.rb', line 21855 def Switch @Switch end |
#Threshold ⇒ Object
<li>on:开启;</li> <li>off:关闭。</li>
21855 21856 21857 |
# File 'lib/v20220901/models.rb', line 21855 def Threshold @Threshold end |
Instance Method Details
#deserialize(params) ⇒ Object
21863 21864 21865 21866 21867 |
# File 'lib/v20220901/models.rb', line 21863 def deserialize(params) @Switch = params['Switch'] @Interval = params['Interval'] @Threshold = params['Threshold'] end |