Class: TencentCloud::Monitor::V20180724::DescribePrometheusConfigResponse

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

Overview

DescribePrometheusConfig返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil, imageneedupdate = nil, requestid = nil) ⇒ DescribePrometheusConfigResponse

Returns a new instance of DescribePrometheusConfigResponse.



8364
8365
8366
8367
8368
8369
8370
8371
8372
# File 'lib/v20180724/models.rb', line 8364

def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil, imageneedupdate=nil, requestid=nil)
  @Config = config
  @ServiceMonitors = servicemonitors
  @PodMonitors = podmonitors
  @RawJobs = rawjobs
  @Probes = probes
  @ImageNeedUpdate = imageneedupdate
  @RequestId = requestid
end

Instance Attribute Details

#ConfigObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def Config
  @Config
end

#ImageNeedUpdateObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def ImageNeedUpdate
  @ImageNeedUpdate
end

#PodMonitorsObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def PodMonitors
  @PodMonitors
end

#ProbesObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def Probes
  @Probes
end

#RawJobsObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def RawJobs
  @RawJobs
end

#RequestIdObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def RequestId
  @RequestId
end

#ServiceMonitorsObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probes

  • ImageNeedUpdate:

    实例组件是否需要升级

  • RequestId:

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



8362
8363
8364
# File 'lib/v20180724/models.rb', line 8362

def ServiceMonitors
  @ServiceMonitors
end

Instance Method Details

#deserialize(params) ⇒ Object



8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
# File 'lib/v20180724/models.rb', line 8374

def deserialize(params)
  @Config = params['Config']
  unless params['ServiceMonitors'].nil?
    @ServiceMonitors = []
    params['ServiceMonitors'].each do |i|
      prometheusconfigitem_tmp = PrometheusConfigItem.new
      prometheusconfigitem_tmp.deserialize(i)
      @ServiceMonitors << prometheusconfigitem_tmp
    end
  end
  unless params['PodMonitors'].nil?
    @PodMonitors = []
    params['PodMonitors'].each do |i|
      prometheusconfigitem_tmp = PrometheusConfigItem.new
      prometheusconfigitem_tmp.deserialize(i)
      @PodMonitors << prometheusconfigitem_tmp
    end
  end
  unless params['RawJobs'].nil?
    @RawJobs = []
    params['RawJobs'].each do |i|
      prometheusconfigitem_tmp = PrometheusConfigItem.new
      prometheusconfigitem_tmp.deserialize(i)
      @RawJobs << prometheusconfigitem_tmp
    end
  end
  unless params['Probes'].nil?
    @Probes = []
    params['Probes'].each do |i|
      prometheusconfigitem_tmp = PrometheusConfigItem.new
      prometheusconfigitem_tmp.deserialize(i)
      @Probes << prometheusconfigitem_tmp
    end
  end
  @ImageNeedUpdate = params['ImageNeedUpdate']
  @RequestId = params['RequestId']
end