Class: TencentCloud::Monitor::V20180724::CommonNamespaceNew

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180724/models.rb

Overview

策略类型信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#DimensionsObject

Parameters:

  • Id:

    命名空间标示

  • Name:

    命名空间名称

  • MonitorType:

    监控类型

  • Dimensions:

    维度信息



1407
1408
1409
# File 'lib/v20180724/models.rb', line 1407

def Dimensions
  @Dimensions
end

#IdObject

Parameters:

  • Id:

    命名空间标示

  • Name:

    命名空间名称

  • MonitorType:

    监控类型

  • Dimensions:

    维度信息



1407
1408
1409
# File 'lib/v20180724/models.rb', line 1407

def Id
  @Id
end

#MonitorTypeObject

Parameters:

  • Id:

    命名空间标示

  • Name:

    命名空间名称

  • MonitorType:

    监控类型

  • Dimensions:

    维度信息



1407
1408
1409
# File 'lib/v20180724/models.rb', line 1407

def MonitorType
  @MonitorType
end

#NameObject

Parameters:

  • Id:

    命名空间标示

  • Name:

    命名空间名称

  • MonitorType:

    监控类型

  • Dimensions:

    维度信息



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