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.



5271
5272
5273
5274
5275
5276
5277
# File 'lib/v20180317/models.rb', line 5271

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:

    监听器的转发规则列表



5269
5270
5271
# File 'lib/v20180317/models.rb', line 5269

def ListenerId
  @ListenerId
end

#ListenerNameObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5269
5270
5271
# File 'lib/v20180317/models.rb', line 5269

def ListenerName
  @ListenerName
end

#PortObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5269
5270
5271
# File 'lib/v20180317/models.rb', line 5269

def Port
  @Port
end

#ProtocolObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5269
5270
5271
# File 'lib/v20180317/models.rb', line 5269

def Protocol
  @Protocol
end

#RulesObject

Parameters:

  • ListenerId:

    监听器ID

  • ListenerName:

    监听器名称

  • Protocol:

    监听器的协议

  • Port:

    监听器的端口

  • Rules:

    监听器的转发规则列表



5269
5270
5271
# File 'lib/v20180317/models.rb', line 5269

def Rules
  @Rules
end

Instance Method Details

#deserialize(params) ⇒ Object



5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
# File 'lib/v20180317/models.rb', line 5279

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