Class: TencentCloud::Tke::V20180525::DescribePrometheusConfigResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/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, requestid = nil) ⇒ DescribePrometheusConfigResponse

Returns a new instance of DescribePrometheusConfigResponse.



8909
8910
8911
8912
8913
8914
8915
8916
# File 'lib/v20180525/models.rb', line 8909

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

Instance Attribute Details

#ConfigObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probe配置

  • RequestId:

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



8907
8908
8909
# File 'lib/v20180525/models.rb', line 8907

def Config
  @Config
end

#PodMonitorsObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probe配置

  • RequestId:

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



8907
8908
8909
# File 'lib/v20180525/models.rb', line 8907

def PodMonitors
  @PodMonitors
end

#ProbesObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probe配置

  • RequestId:

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



8907
8908
8909
# File 'lib/v20180525/models.rb', line 8907

def Probes
  @Probes
end

#RawJobsObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probe配置

  • RequestId:

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



8907
8908
8909
# File 'lib/v20180525/models.rb', line 8907

def RawJobs
  @RawJobs
end

#RequestIdObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probe配置

  • RequestId:

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



8907
8908
8909
# File 'lib/v20180525/models.rb', line 8907

def RequestId
  @RequestId
end

#ServiceMonitorsObject

Parameters:

  • Config:

    全局配置

  • ServiceMonitors:

    ServiceMonitor配置

  • PodMonitors:

    PodMonitor配置

  • RawJobs:

    原生Job

  • Probes:

    Probe配置

  • RequestId:

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



8907
8908
8909
# File 'lib/v20180525/models.rb', line 8907

def ServiceMonitors
  @ServiceMonitors
end

Instance Method Details

#deserialize(params) ⇒ Object



8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
# File 'lib/v20180525/models.rb', line 8918

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
  @RequestId = params['RequestId']
end