Class: TencentCloud::Clb::V20180317::DescribeLoadBalancerTrafficResponse

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

Overview

DescribeLoadBalancerTraffic返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancertraffic = nil, requestid = nil) ⇒ DescribeLoadBalancerTrafficResponse

Returns a new instance of DescribeLoadBalancerTrafficResponse.



3455
3456
3457
3458
# File 'lib/v20180317/models.rb', line 3455

def initialize(loadbalancertraffic=nil, requestid=nil)
  @LoadBalancerTraffic = loadbalancertraffic
  @RequestId = requestid
end

Instance Attribute Details

#LoadBalancerTrafficObject

Parameters:

  • LoadBalancerTraffic:

    按出带宽从高到低排序后的负载均衡信息。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3453
3454
3455
# File 'lib/v20180317/models.rb', line 3453

def LoadBalancerTraffic
  @LoadBalancerTraffic
end

#RequestIdObject

Parameters:

  • LoadBalancerTraffic:

    按出带宽从高到低排序后的负载均衡信息。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



3453
3454
3455
# File 'lib/v20180317/models.rb', line 3453

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
# File 'lib/v20180317/models.rb', line 3460

def deserialize(params)
  unless params['LoadBalancerTraffic'].nil?
    @LoadBalancerTraffic = []
    params['LoadBalancerTraffic'].each do |i|
      loadbalancertraffic_tmp = LoadBalancerTraffic.new
      loadbalancertraffic_tmp.deserialize(i)
      @LoadBalancerTraffic << loadbalancertraffic_tmp
    end
  end
  @RequestId = params['RequestId']
end