Class: TencentCloud::Tke::V20180525::DescribePrometheusTemplateSyncResponse

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

Overview

DescribePrometheusTemplateSync返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(targets = nil, requestid = nil) ⇒ DescribePrometheusTemplateSyncResponse

Returns a new instance of DescribePrometheusTemplateSyncResponse.



9593
9594
9595
9596
# File 'lib/v20180525/models.rb', line 9593

def initialize(targets=nil, requestid=nil)
  @Targets = targets
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • Targets:

    同步目标详情

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9591
9592
9593
# File 'lib/v20180525/models.rb', line 9591

def RequestId
  @RequestId
end

#TargetsObject

Parameters:

  • Targets:

    同步目标详情

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



9591
9592
9593
# File 'lib/v20180525/models.rb', line 9591

def Targets
  @Targets
end

Instance Method Details

#deserialize(params) ⇒ Object



9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
# File 'lib/v20180525/models.rb', line 9598

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