Class: TencentCloud::Tke::V20180525::DescribePrometheusTempSyncResponse

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

Overview

DescribePrometheusTempSync返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribePrometheusTempSyncResponse.



9550
9551
9552
9553
# File 'lib/v20180525/models.rb', line 9550

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

Instance Attribute Details

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Targets:

    同步目标详情

  • RequestId:

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



9548
9549
9550
# File 'lib/v20180525/models.rb', line 9548

def RequestId
  @RequestId
end

#TargetsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Targets:

    同步目标详情

  • RequestId:

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



9548
9549
9550
# File 'lib/v20180525/models.rb', line 9548

def Targets
  @Targets
end

Instance Method Details

#deserialize(params) ⇒ Object



9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
# File 'lib/v20180525/models.rb', line 9555

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