Class ProbeTargetStaticConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.ProbeTargetStaticConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ProbeTargetStaticConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ProbeTargetStaticConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<ProbeTargetStaticConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ProbeTargetStaticConfig defines the set of static targets considered for probing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProbeTargetStaticConfig()No args constructor for use in serializationProbeTargetStaticConfig(Map<String,String> labels, List<RelabelConfig> relabelingConfigs, List<String> _static)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProbeTargetStaticConfigBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,String>getLabels()Labels assigned to all metrics scraped from the targets.List<RelabelConfig>getRelabelingConfigs()RelabelConfigs to apply to the label set of the targets before it gets scraped.List<String>getStatic()The list of hosts to probe.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLabels(Map<String,String> labels)Labels assigned to all metrics scraped from the targets.voidsetRelabelingConfigs(List<RelabelConfig> relabelingConfigs)RelabelConfigs to apply to the label set of the targets before it gets scraped.voidsetStatic(List<String> _static)The list of hosts to probe.ProbeTargetStaticConfigBuildertoBuilder()
-
-
-
Method Detail
-
getLabels
public Map<String,String> getLabels()
Labels assigned to all metrics scraped from the targets.
-
setLabels
public void setLabels(Map<String,String> labels)
Labels assigned to all metrics scraped from the targets.
-
getRelabelingConfigs
public List<RelabelConfig> getRelabelingConfigs()
RelabelConfigs to apply to the label set of the targets before it gets scraped. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
-
setRelabelingConfigs
public void setRelabelingConfigs(List<RelabelConfig> relabelingConfigs)
RelabelConfigs to apply to the label set of the targets before it gets scraped. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
-
edit
public ProbeTargetStaticConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ProbeTargetStaticConfigBuilder>
-
toBuilder
public ProbeTargetStaticConfigBuilder toBuilder()
-
-