Class: TencentCloud::Cdb::V20170320::DeviceCpuInfo

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

Overview

CPU负载

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rate = nil, load = nil) ⇒ DeviceCpuInfo

Returns a new instance of DeviceCpuInfo.



8818
8819
8820
8821
# File 'lib/v20170320/models.rb', line 8818

def initialize(rate=nil, load=nil)
  @Rate = rate
  @Load = load
end

Instance Attribute Details

#LoadObject

Parameters:

  • Rate:

    实例CPU平均使用率

  • Load:

    实例CPU监控数据



8816
8817
8818
# File 'lib/v20170320/models.rb', line 8816

def Load
  @Load
end

#RateObject

Parameters:

  • Rate:

    实例CPU平均使用率

  • Load:

    实例CPU监控数据



8816
8817
8818
# File 'lib/v20170320/models.rb', line 8816

def Rate
  @Rate
end

Instance Method Details

#deserialize(params) ⇒ Object



8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
# File 'lib/v20170320/models.rb', line 8823

def deserialize(params)
  unless params['Rate'].nil?
    @Rate = []
    params['Rate'].each do |i|
      devicecpurateinfo_tmp = DeviceCpuRateInfo.new
      devicecpurateinfo_tmp.deserialize(i)
      @Rate << devicecpurateinfo_tmp
    end
  end
  @Load = params['Load']
end