Class: TencentCloud::Tke::V20180525::ModifyPrometheusConfigRequest

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

Overview

ModifyPrometheusConfig请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, clustertype = nil, clusterid = nil, servicemonitors = nil, podmonitors = nil, rawjobs = nil, probes = nil) ⇒ ModifyPrometheusConfigRequest

Returns a new instance of ModifyPrometheusConfigRequest.



14614
14615
14616
14617
14618
14619
14620
14621
14622
# File 'lib/v20180525/models.rb', line 14614

def initialize(instanceid=nil, clustertype=nil, clusterid=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, probes=nil)
  @InstanceId = instanceid
  @ClusterType = clustertype
  @ClusterId = clusterid
  @ServiceMonitors = servicemonitors
  @PodMonitors = podmonitors
  @RawJobs = rawjobs
  @Probes = probes
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def ClusterType
  @ClusterType
end

#InstanceIdObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def InstanceId
  @InstanceId
end

#PodMonitorsObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def PodMonitors
  @PodMonitors
end

#ProbesObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def Probes
  @Probes
end

#RawJobsObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def RawJobs
  @RawJobs
end

#ServiceMonitorsObject

Parameters:

  • InstanceId:

    实例id

  • ClusterType:

    集群类型

  • ClusterId:

    集群id

  • ServiceMonitors:

    ServiceMonitors配置

  • PodMonitors:

    PodMonitors配置

  • RawJobs:

    prometheus原生Job配置

  • Probes:

    Probes 配置



14612
14613
14614
# File 'lib/v20180525/models.rb', line 14612

def ServiceMonitors
  @ServiceMonitors
end

Instance Method Details

#deserialize(params) ⇒ Object



14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
# File 'lib/v20180525/models.rb', line 14624

def deserialize(params)
  @InstanceId = params['InstanceId']
  @ClusterType = params['ClusterType']
  @ClusterId = params['ClusterId']
  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
end