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.



8685
8686
8687
8688
# File 'lib/v20170320/models.rb', line 8685

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

Instance Attribute Details

#LoadObject

Parameters:

  • Rate:

    实例CPU平均使用率

  • Load:

    实例CPU监控数据



8683
8684
8685
# File 'lib/v20170320/models.rb', line 8683

def Load
  @Load
end

#RateObject

Parameters:

  • Rate:

    实例CPU平均使用率

  • Load:

    实例CPU监控数据



8683
8684
8685
# File 'lib/v20170320/models.rb', line 8683

def Rate
  @Rate
end

Instance Method Details

#deserialize(params) ⇒ Object



8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
# File 'lib/v20170320/models.rb', line 8690

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