Class: TencentCloud::Cwp::V20180228::AssetLoadSummary
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::AssetLoadSummary
- Defined in:
- lib/v20180228/models.rb
Overview
资源负载概况
Instance Attribute Summary collapse
-
#Counts ⇒ Object
[ 0%或未知数量, 0%~20%, 20%~50%, 50%~80%, 80%~100% ].
-
#Top5 ⇒ Object
[ 0%或未知数量, 0%~20%, 20%~50%, 50%~80%, 80%~100% ].
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(counts = nil, top5 = nil) ⇒ AssetLoadSummary
constructor
A new instance of AssetLoadSummary.
Constructor Details
#initialize(counts = nil, top5 = nil) ⇒ AssetLoadSummary
Returns a new instance of AssetLoadSummary.
1114 1115 1116 1117 |
# File 'lib/v20180228/models.rb', line 1114 def initialize(counts=nil, top5=nil) @Counts = counts @Top5 = top5 end |
Instance Attribute Details
#Counts ⇒ Object
[ 0%或未知数量,0%~20%,20%~50%,50%~80%,80%~100% ]
1112 1113 1114 |
# File 'lib/v20180228/models.rb', line 1112 def Counts @Counts end |
#Top5 ⇒ Object
[ 0%或未知数量,0%~20%,20%~50%,50%~80%,80%~100% ]
1112 1113 1114 |
# File 'lib/v20180228/models.rb', line 1112 def Top5 @Top5 end |
Instance Method Details
#deserialize(params) ⇒ Object
1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 |
# File 'lib/v20180228/models.rb', line 1119 def deserialize(params) @Counts = params['Counts'] unless params['Top5'].nil? @Top5 = [] params['Top5'].each do |i| assetloaddetail_tmp = AssetLoadDetail.new assetloaddetail_tmp.deserialize(i) @Top5 << assetloaddetail_tmp end end end |