Class: TencentCloud::Cdb::V20170320::DeviceCpuInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::DeviceCpuInfo
- Defined in:
- lib/v20170320/models.rb
Overview
CPU负载
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rate = nil, load = nil) ⇒ DeviceCpuInfo
constructor
A new instance of DeviceCpuInfo.
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
#Load ⇒ Object
8683 8684 8685 |
# File 'lib/v20170320/models.rb', line 8683 def Load @Load end |
#Rate ⇒ Object
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 |