Class: TencentCloud::Cls::V20201016::CollectInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::CollectInfo
- Defined in:
- lib/v20201016/models.rb
Overview
采集配置信息
Instance Attribute Summary collapse
-
#CollectConfigs ⇒ Object
- 0:元数据配置。
- 1:指定Pod Label。
- 当Type为0时,CollectConfigs不允许为空。
- 当Type为1时,CollectConfigs为空时,表示选择所有Pod Label;否则CollectConfigs为指定Pod Label。
. -
#Type ⇒ Object
- 0:元数据配置。
- 1:指定Pod Label。
- 当Type为0时,CollectConfigs不允许为空。
- 当Type为1时,CollectConfigs为空时,表示选择所有Pod Label;否则CollectConfigs为指定Pod Label。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, collectconfigs = nil) ⇒ CollectInfo
constructor
A new instance of CollectInfo.
Constructor Details
#initialize(type = nil, collectconfigs = nil) ⇒ CollectInfo
Returns a new instance of CollectInfo.
1331 1332 1333 1334 |
# File 'lib/v20201016/models.rb', line 1331 def initialize(type=nil, collectconfigs=nil) @Type = type @CollectConfigs = collectconfigs end |
Instance Attribute Details
#CollectConfigs ⇒ Object
1329 1330 1331 |
# File 'lib/v20201016/models.rb', line 1329 def CollectConfigs @CollectConfigs end |
#Type ⇒ Object
1329 1330 1331 |
# File 'lib/v20201016/models.rb', line 1329 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/v20201016/models.rb', line 1336 def deserialize(params) @Type = params['Type'] unless params['CollectConfigs'].nil? @CollectConfigs = [] params['CollectConfigs'].each do |i| collectconfig_tmp = CollectConfig.new collectconfig_tmp.deserialize(i) @CollectConfigs << collectconfig_tmp end end end |