Class: TencentCloud::Clb::V20180317::LoadBalancerHealth

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(loadbalancerid = nil, loadbalancername = nil, listeners = nil) ⇒ LoadBalancerHealth

Returns a new instance of LoadBalancerHealth.



5933
5934
5935
5936
5937
# File 'lib/v20180317/models.rb', line 5933

def initialize(loadbalancerid=nil, loadbalancername=nil, listeners=nil)
  @LoadBalancerId = loadbalancerid
  @LoadBalancerName = loadbalancername
  @Listeners = listeners
end

Instance Attribute Details

#ListenersObject

Parameters:

  • LoadBalancerId:

    负载均衡实例ID

  • LoadBalancerName:

    负载均衡实例名称

  • Listeners:

    监听器列表



5931
5932
5933
# File 'lib/v20180317/models.rb', line 5931

def Listeners
  @Listeners
end

#LoadBalancerIdObject

Parameters:

  • LoadBalancerId:

    负载均衡实例ID

  • LoadBalancerName:

    负载均衡实例名称

  • Listeners:

    监听器列表



5931
5932
5933
# File 'lib/v20180317/models.rb', line 5931

def LoadBalancerId
  @LoadBalancerId
end

#LoadBalancerNameObject

Parameters:

  • LoadBalancerId:

    负载均衡实例ID

  • LoadBalancerName:

    负载均衡实例名称

  • Listeners:

    监听器列表



5931
5932
5933
# File 'lib/v20180317/models.rb', line 5931

def LoadBalancerName
  @LoadBalancerName
end

Instance Method Details

#deserialize(params) ⇒ Object



5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
# File 'lib/v20180317/models.rb', line 5939

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  @LoadBalancerName = params['LoadBalancerName']
  unless params['Listeners'].nil?
    @Listeners = []
    params['Listeners'].each do |i|
      listenerhealth_tmp = ListenerHealth.new
      listenerhealth_tmp.deserialize(i)
      @Listeners << listenerhealth_tmp
    end
  end
end