Class: TencentCloud::Antiddos::V20200309::ListenerCcThresholdConfig

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

Overview

域名与协议纬度的CC防护阈值

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain = nil, protocol = nil, ccenable = nil, ccthreshold = nil) ⇒ ListenerCcThresholdConfig

Returns a new instance of ListenerCcThresholdConfig.



7060
7061
7062
7063
7064
7065
# File 'lib/v20200309/models.rb', line 7060

def initialize(domain=nil, protocol=nil, ccenable=nil, ccthreshold=nil)
  @Domain = domain
  @Protocol = protocol
  @CCEnable = ccenable
  @CCThreshold = ccthreshold
end

Instance Attribute Details

#CCEnableObject

Parameters:

  • Domain:

    域名

  • Protocol:

    协议(可取值https)

  • CCEnable:

    开关状态(0:关闭,1:开启)

  • CCThreshold:

    cc防护阈值



7058
7059
7060
# File 'lib/v20200309/models.rb', line 7058

def CCEnable
  @CCEnable
end

#CCThresholdObject

Parameters:

  • Domain:

    域名

  • Protocol:

    协议(可取值https)

  • CCEnable:

    开关状态(0:关闭,1:开启)

  • CCThreshold:

    cc防护阈值



7058
7059
7060
# File 'lib/v20200309/models.rb', line 7058

def CCThreshold
  @CCThreshold
end

#DomainObject

Parameters:

  • Domain:

    域名

  • Protocol:

    协议(可取值https)

  • CCEnable:

    开关状态(0:关闭,1:开启)

  • CCThreshold:

    cc防护阈值



7058
7059
7060
# File 'lib/v20200309/models.rb', line 7058

def Domain
  @Domain
end

#ProtocolObject

Parameters:

  • Domain:

    域名

  • Protocol:

    协议(可取值https)

  • CCEnable:

    开关状态(0:关闭,1:开启)

  • CCThreshold:

    cc防护阈值



7058
7059
7060
# File 'lib/v20200309/models.rb', line 7058

def Protocol
  @Protocol
end

Instance Method Details

#deserialize(params) ⇒ Object



7067
7068
7069
7070
7071
7072
# File 'lib/v20200309/models.rb', line 7067

def deserialize(params)
  @Domain = params['Domain']
  @Protocol = params['Protocol']
  @CCEnable = params['CCEnable']
  @CCThreshold = params['CCThreshold']
end