Class: TencentCloud::Tke::V20180525::SyncPrometheusTempRequest

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

Overview

SyncPrometheusTemp请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(templateid = nil, targets = nil) ⇒ SyncPrometheusTempRequest

Returns a new instance of SyncPrometheusTempRequest.



18426
18427
18428
18429
# File 'lib/v20180525/models.rb', line 18426

def initialize(templateid=nil, targets=nil)
  @TemplateId = templateid
  @Targets = targets
end

Instance Attribute Details

#TargetsObject

Parameters:

  • TemplateId:

    实例id

  • Targets:

    同步目标



18424
18425
18426
# File 'lib/v20180525/models.rb', line 18424

def Targets
  @Targets
end

#TemplateIdObject

Parameters:

  • TemplateId:

    实例id

  • Targets:

    同步目标



18424
18425
18426
# File 'lib/v20180525/models.rb', line 18424

def TemplateId
  @TemplateId
end

Instance Method Details

#deserialize(params) ⇒ Object



18431
18432
18433
18434
18435
18436
18437
18438
18439
18440
18441
# File 'lib/v20180525/models.rb', line 18431

def deserialize(params)
  @TemplateId = params['TemplateId']
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      prometheustemplatesynctarget_tmp = PrometheusTemplateSyncTarget.new
      prometheustemplatesynctarget_tmp.deserialize(i)
      @Targets << prometheustemplatesynctarget_tmp
    end
  end
end