Class: TencentCloud::Tke::V20180525::PrometheusClusterAgentBasic

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

Overview

与云监控融合托管prometheus实例,关联集群基础信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(region = nil, clustertype = nil, clusterid = nil, enableexternal = nil, inclusterpodconfig = nil, externallabels = nil, notinstallbasicscrape = nil, notscrape = nil) ⇒ PrometheusClusterAgentBasic

Returns a new instance of PrometheusClusterAgentBasic.



15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
# File 'lib/v20180525/models.rb', line 15995

def initialize(region=nil, clustertype=nil, clusterid=nil, enableexternal=nil, inclusterpodconfig=nil, externallabels=nil, notinstallbasicscrape=nil, notscrape=nil)
  @Region = region
  @ClusterType = clustertype
  @ClusterId = clusterid
  @EnableExternal = enableexternal
  @InClusterPodConfig = inclusterpodconfig
  @ExternalLabels = externallabels
  @NotInstallBasicScrape = notinstallbasicscrape
  @NotScrape = notscrape
end

Instance Attribute Details

#ClusterIdObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def ClusterType
  @ClusterType
end

#EnableExternalObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def EnableExternal
  @EnableExternal
end

#ExternalLabelsObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def ExternalLabels
  @ExternalLabels
end

#InClusterPodConfigObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def InClusterPodConfig
  @InClusterPodConfig
end

#NotInstallBasicScrapeObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def NotInstallBasicScrape
  @NotInstallBasicScrape
end

#NotScrapeObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def NotScrape
  @NotScrape
end

#RegionObject

Parameters:

  • Region:

    集群ID

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

    该集群采集的所有指标都会带上这些labels

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

    是否采集指标,true代表drop所有指标,false代表采集默认指标



15993
15994
15995
# File 'lib/v20180525/models.rb', line 15993

def Region
  @Region
end

Instance Method Details

#deserialize(params) ⇒ Object



16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
# File 'lib/v20180525/models.rb', line 16006

def deserialize(params)
  @Region = params['Region']
  @ClusterType = params['ClusterType']
  @ClusterId = params['ClusterId']
  @EnableExternal = params['EnableExternal']
  unless params['InClusterPodConfig'].nil?
    @InClusterPodConfig = PrometheusClusterAgentPodConfig.new
    @InClusterPodConfig.deserialize(params['InClusterPodConfig'])
  end
  unless params['ExternalLabels'].nil?
    @ExternalLabels = []
    params['ExternalLabels'].each do |i|
      label_tmp = Label.new
      label_tmp.deserialize(i)
      @ExternalLabels << label_tmp
    end
  end
  @NotInstallBasicScrape = params['NotInstallBasicScrape']
  @NotScrape = params['NotScrape']
end