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.



16337
16338
16339
16340
16341
16342
16343
16344
16345
16346
# File 'lib/v20180525/models.rb', line 16337

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:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def ClusterId
  @ClusterId
end

#ClusterTypeObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def ClusterType
  @ClusterType
end

#EnableExternalObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def EnableExternal
  @EnableExternal
end

#ExternalLabelsObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def ExternalLabels
  @ExternalLabels
end

#InClusterPodConfigObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def InClusterPodConfig
  @InClusterPodConfig
end

#NotInstallBasicScrapeObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def NotInstallBasicScrape
  @NotInstallBasicScrape
end

#NotScrapeObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def NotScrape
  @NotScrape
end

#RegionObject

Parameters:

  • Region:

    地域

  • ClusterType:

    集群类型

  • ClusterId:

    集群ID

  • EnableExternal:

    是否开启公网CLB

  • InClusterPodConfig:

    集群内部署组件的pod配置

  • ExternalLabels:

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

  • NotInstallBasicScrape:

    是否安装默认采集配置

  • NotScrape:

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



16335
16336
16337
# File 'lib/v20180525/models.rb', line 16335

def Region
  @Region
end

Instance Method Details

#deserialize(params) ⇒ Object



16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
# File 'lib/v20180525/models.rb', line 16348

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