Class: TencentCloud::Cdn::V20180606::IpFreqLimit

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

Overview

单节点单 IP 访问限频配置,默认为关闭状态

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(switch = nil, qps = nil) ⇒ IpFreqLimit

Returns a new instance of IpFreqLimit.



8328
8329
8330
8331
# File 'lib/v20180606/models.rb', line 8328

def initialize(switch=nil, qps=nil)
  @Switch = switch
  @Qps = qps
end

Instance Attribute Details

#QpsObject

on:开启 off:关闭 超出限制的请求会直接返回 514 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    IP 限频配置开关,取值有:

  • Qps:

    设置每秒请求数限制



8326
8327
8328
# File 'lib/v20180606/models.rb', line 8326

def Qps
  @Qps
end

#SwitchObject

on:开启 off:关闭 超出限制的请求会直接返回 514 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Switch:

    IP 限频配置开关,取值有:

  • Qps:

    设置每秒请求数限制



8326
8327
8328
# File 'lib/v20180606/models.rb', line 8326

def Switch
  @Switch
end

Instance Method Details

#deserialize(params) ⇒ Object



8333
8334
8335
8336
# File 'lib/v20180606/models.rb', line 8333

def deserialize(params)
  @Switch = params['Switch']
  @Qps = params['Qps']
end