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.
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
#Load ⇒ Object
8816 8817 8818 |
# File 'lib/v20170320/models.rb', line 8816 def Load @Load end |
#Rate ⇒ Object
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 |