Class NamespaceDiscovery
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.NamespaceDiscovery
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<NamespaceDiscoveryBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NamespaceDiscovery extends Object implements io.fabric8.kubernetes.api.builder.Editable<NamespaceDiscoveryBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
NamespaceDiscovery is the configuration for discovering Kubernetes namespaces.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamespaceDiscovery()No args constructor for use in serializationNamespaceDiscovery(List<String> names, Boolean ownNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamespaceDiscoveryBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getNames()List of namespaces where to watch for resources.BooleangetOwnNamespace()Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNames(List<String> names)List of namespaces where to watch for resources.voidsetOwnNamespace(Boolean ownNamespace)Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.NamespaceDiscoveryBuildertoBuilder()
-
-
-
Method Detail
-
getNames
public List<String> getNames()
List of namespaces where to watch for resources. If empty and `ownNamespace` isn't true, Prometheus watches for resources in all namespaces.
-
setNames
public void setNames(List<String> names)
List of namespaces where to watch for resources. If empty and `ownNamespace` isn't true, Prometheus watches for resources in all namespaces.
-
getOwnNamespace
public Boolean getOwnNamespace()
Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.
-
setOwnNamespace
public void setOwnNamespace(Boolean ownNamespace)
Includes the namespace in which the Prometheus pod runs to the list of watched namespaces.
-
edit
public NamespaceDiscoveryBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<NamespaceDiscoveryBuilder>
-
toBuilder
public NamespaceDiscoveryBuilder toBuilder()
-
-