Class NamespaceDiscovery
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.NamespaceDiscovery
-
- All Implemented Interfaces:
Editable<NamespaceDiscoveryBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NamespaceDiscovery extends Object implements Editable<NamespaceDiscoveryBuilder>, 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()names defines a list of namespaces where to watch for resources.BooleangetOwnNamespace()ownNamespace 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)names defines a list of namespaces where to watch for resources.voidsetOwnNamespace(Boolean ownNamespace)ownNamespace includes the namespace in which the Prometheus pod runs to the list of watched namespaces.NamespaceDiscoveryBuildertoBuilder()
-
-
-
Method Detail
-
getNames
public List<String> getNames()
names defines a 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)
names defines a 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()
ownNamespace includes the namespace in which the Prometheus pod runs to the list of watched namespaces.
-
setOwnNamespace
public void setOwnNamespace(Boolean ownNamespace)
ownNamespace includes the namespace in which the Prometheus pod runs to the list of watched namespaces.
-
edit
public NamespaceDiscoveryBuilder edit()
- Specified by:
editin interfaceEditable<NamespaceDiscoveryBuilder>
-
toBuilder
public NamespaceDiscoveryBuilder toBuilder()
-
-