public class PrometheusClusterAgentBasic extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| PrometheusClusterAgentBasic() | 
| PrometheusClusterAgentBasic(PrometheusClusterAgentBasic source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getClusterId()Get 集群 ID | 
| String | getClusterType()Get 集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群 | 
| Boolean | getDropAll()Get 是否丢弃所有指标,true 代表丢弃所有指标,false 代表采集默认指标 | 
| Boolean | getEnableExternal()Get 是否开启公网 CLB | 
| Label[] | getExternalLabels()Get 该集群采集的所有指标都会带上这些labels | 
| PrometheusClusterAgentPodConfig | getInClusterPodConfig()Get 集群内部署组件的pod 配置 | 
| Boolean | getNotInstallBasicScrape()Get 是否安装默认采集 exporter 和采集配置 | 
| Boolean | getNotScrape()Get 是否安装采集配置,true 只安装采集 exporter 不会安装采集配置,false 会同时安装采集配置 | 
| Boolean | getOpenDefaultRecord()Get 是否开启默认预聚合规则 | 
| String | getRegion()Get 地域 | 
| void | setClusterId(String ClusterId)Set 集群 ID | 
| void | setClusterType(String ClusterType)Set 集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群 | 
| void | setDropAll(Boolean DropAll)Set 是否丢弃所有指标,true 代表丢弃所有指标,false 代表采集默认指标 | 
| void | setEnableExternal(Boolean EnableExternal)Set 是否开启公网 CLB | 
| void | setExternalLabels(Label[] ExternalLabels)Set 该集群采集的所有指标都会带上这些labels | 
| void | setInClusterPodConfig(PrometheusClusterAgentPodConfig InClusterPodConfig)Set 集群内部署组件的pod 配置 | 
| void | setNotInstallBasicScrape(Boolean NotInstallBasicScrape)Set 是否安装默认采集 exporter 和采集配置 | 
| void | setNotScrape(Boolean NotScrape)Set 是否安装采集配置,true 只安装采集 exporter 不会安装采集配置,false 会同时安装采集配置 | 
| void | setOpenDefaultRecord(Boolean OpenDefaultRecord)Set 是否开启默认预聚合规则 | 
| void | setRegion(String Region)Set 地域 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic PrometheusClusterAgentBasic()
public PrometheusClusterAgentBasic(PrometheusClusterAgentBasic source)
public String getRegion()
public void setRegion(String Region)
Region - 地域public String getClusterType()
public void setClusterType(String ClusterType)
ClusterType - 集群类型。可填入tke、eks、tkeedge、tdcc、external,分别代表标准集群、弹性集群、边缘集群、注册集群 和外部集群public String getClusterId()
public void setClusterId(String ClusterId)
ClusterId - 集群 IDpublic Boolean getEnableExternal()
public void setEnableExternal(Boolean EnableExternal)
EnableExternal - 是否开启公网 CLBpublic PrometheusClusterAgentPodConfig getInClusterPodConfig()
public void setInClusterPodConfig(PrometheusClusterAgentPodConfig InClusterPodConfig)
InClusterPodConfig - 集群内部署组件的pod 配置public Label[] getExternalLabels()
public void setExternalLabels(Label[] ExternalLabels)
ExternalLabels - 该集群采集的所有指标都会带上这些labelspublic Boolean getNotInstallBasicScrape()
public void setNotInstallBasicScrape(Boolean NotInstallBasicScrape)
NotInstallBasicScrape - 是否安装默认采集 exporter 和采集配置public Boolean getNotScrape()
public void setNotScrape(Boolean NotScrape)
NotScrape - 是否安装采集配置,true 只安装采集 exporter 不会安装采集配置,false 会同时安装采集配置public Boolean getDropAll()
public void setDropAll(Boolean DropAll)
DropAll - 是否丢弃所有指标,true 代表丢弃所有指标,false 代表采集默认指标public Boolean getOpenDefaultRecord()
public void setOpenDefaultRecord(Boolean OpenDefaultRecord)
OpenDefaultRecord - 是否开启默认预聚合规则Copyright © 2025. All rights reserved.