Class: TencentCloud::Monitor::V20180724::CommonNamespaceNew
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::CommonNamespaceNew
- Defined in:
- lib/v20180724/models.rb
Overview
策略类型信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, monitortype = nil, dimensions = nil) ⇒ CommonNamespaceNew
constructor
A new instance of CommonNamespaceNew.
Constructor Details
#initialize(id = nil, name = nil, monitortype = nil, dimensions = nil) ⇒ CommonNamespaceNew
Returns a new instance of CommonNamespaceNew.
1409 1410 1411 1412 1413 1414 |
# File 'lib/v20180724/models.rb', line 1409 def initialize(id=nil, name=nil, monitortype=nil, dimensions=nil) @Id = id @Name = name @MonitorType = monitortype @Dimensions = dimensions end |
Instance Attribute Details
#Dimensions ⇒ Object
1407 1408 1409 |
# File 'lib/v20180724/models.rb', line 1407 def Dimensions @Dimensions end |
#Id ⇒ Object
1407 1408 1409 |
# File 'lib/v20180724/models.rb', line 1407 def Id @Id end |
#MonitorType ⇒ Object
1407 1408 1409 |
# File 'lib/v20180724/models.rb', line 1407 def MonitorType @MonitorType end |
#Name ⇒ Object
1407 1408 1409 |
# File 'lib/v20180724/models.rb', line 1407 def Name @Name end |
Instance Method Details
#deserialize(params) ⇒ Object
1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 |
# File 'lib/v20180724/models.rb', line 1416 def deserialize(params) @Id = params['Id'] @Name = params['Name'] @MonitorType = params['MonitorType'] unless params['Dimensions'].nil? @Dimensions = [] params['Dimensions'].each do |i| dimensionnew_tmp = DimensionNew.new dimensionnew_tmp.deserialize(i) @Dimensions << dimensionnew_tmp end end end |