Class: TencentCloud::Clb::V20180317::ListenerHealth

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

Overview

监听器的健康检查信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(listenerid = nil, listenername = nil, protocol = nil, port = nil, rules = nil) ⇒ ListenerHealth

Returns a new instance of ListenerHealth.



5449
5450
5451
5452
5453
5454
5455
# File 'lib/v20180317/models.rb', line 5449

def initialize(listenerid=nil, listenername=nil, protocol=nil, port=nil, rules=nil)
  @ListenerId = listenerid
  @ListenerName = listenername
  @Protocol = protocol
  @Port = port
  @Rules = rules
end

Instance Attribute Details

#ListenerIdObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5447
5448
5449
# File 'lib/v20180317/models.rb', line 5447

def ListenerId
  @ListenerId
end

#ListenerNameObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5447
5448
5449
# File 'lib/v20180317/models.rb', line 5447

def ListenerName
  @ListenerName
end

#PortObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5447
5448
5449
# File 'lib/v20180317/models.rb', line 5447

def Port
  @Port
end

#ProtocolObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5447
5448
5449
# File 'lib/v20180317/models.rb', line 5447

def Protocol
  @Protocol
end

#RulesObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5447
5448
5449
# File 'lib/v20180317/models.rb', line 5447

def Rules
  @Rules
end

Instance Method Details

#deserialize(params) ⇒ Object



5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
# File 'lib/v20180317/models.rb', line 5457

def deserialize(params)
  @ListenerId = params['ListenerId']
  @ListenerName = params['ListenerName']
  @Protocol = params['Protocol']
  @Port = params['Port']
  unless params['Rules'].nil?
    @Rules = []
    params['Rules'].each do |i|
      rulehealth_tmp = RuleHealth.new
      rulehealth_tmp.deserialize(i)
      @Rules << rulehealth_tmp
    end
  end
end