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



9063
9064
9065
9066
9067
9068
9069
9070
# File 'lib/v20180525/models.rb', line 9063

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



9061
9062
9063
# File 'lib/v20180525/models.rb', line 9061

def Config
  @Config
end

#PodMonitorsObject



9061
9062
9063
# File 'lib/v20180525/models.rb', line 9061

def PodMonitors
  @PodMonitors
end

#ProbesObject



9061
9062
9063
# File 'lib/v20180525/models.rb', line 9061

def Probes
  @Probes
end

#RawJobsObject



9061
9062
9063
# File 'lib/v20180525/models.rb', line 9061

def RawJobs
  @RawJobs
end

#RequestIdObject



9061
9062
9063
# File 'lib/v20180525/models.rb', line 9061

def RequestId
  @RequestId
end

#ServiceMonitorsObject



9061
9062
9063
# File 'lib/v20180525/models.rb', line 9061

def ServiceMonitors
  @ServiceMonitors
end

Instance Method Details

#deserialize(params) ⇒ Object



9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
# File 'lib/v20180525/models.rb', line 9072

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