Class: TencentCloud::Tke::V20180525::DescribePrometheusTargetsResponse

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

Overview

DescribePrometheusTargets返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(jobs = nil, requestid = nil) ⇒ DescribePrometheusTargetsResponse

Returns a new instance of DescribePrometheusTargetsResponse.



9440
9441
9442
9443
# File 'lib/v20180525/models.rb', line 9440

def initialize(jobs=nil, requestid=nil)
  @Jobs = jobs
  @RequestId = requestid
end

Instance Attribute Details

#JobsObject

Parameters:

  • Jobs:

    所有Job的targets信息

  • RequestId:

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



9438
9439
9440
# File 'lib/v20180525/models.rb', line 9438

def Jobs
  @Jobs
end

#RequestIdObject

Parameters:

  • Jobs:

    所有Job的targets信息

  • RequestId:

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



9438
9439
9440
# File 'lib/v20180525/models.rb', line 9438

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
# File 'lib/v20180525/models.rb', line 9445

def deserialize(params)
  unless params['Jobs'].nil?
    @Jobs = []
    params['Jobs'].each do |i|
      prometheusjobtargets_tmp = PrometheusJobTargets.new
      prometheusjobtargets_tmp.deserialize(i)
      @Jobs << prometheusjobtargets_tmp
    end
  end
  @RequestId = params['RequestId']
end