Class ProberSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.ProberSpec
-
- All Implemented Interfaces:
Editable<ProberSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ProberSpec extends Object implements Editable<ProberSpecBuilder>, KubernetesResource
ProberSpec contains specification parameters for the Prober used for probing.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProberSpec()No args constructor for use in serializationProberSpec(String noProxy, String path, Map<String,List<SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, String scheme, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProberSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetNoProxy()noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.StringgetPath()path to collect metrics from.Map<String,List<SecretKeySelector>>getProxyConnectHeader()proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.BooleangetProxyFromEnvironment()proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).StringgetProxyUrl()proxyUrl defines the HTTP proxy server to use.StringgetScheme()scheme defines the HTTP scheme to use when scraping the prober.StringgetUrl()url defines the address of the prober.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetNoProxy(String noProxy)noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.voidsetPath(String path)path to collect metrics from.voidsetProxyConnectHeader(Map<String,List<SecretKeySelector>> proxyConnectHeader)proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.voidsetProxyFromEnvironment(Boolean proxyFromEnvironment)proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).voidsetProxyUrl(String proxyUrl)proxyUrl defines the HTTP proxy server to use.voidsetScheme(String scheme)scheme defines the HTTP scheme to use when scraping the prober.voidsetUrl(String url)url defines the address of the prober.ProberSpecBuildertoBuilder()
-
-
-
Method Detail
-
getNoProxy
public String getNoProxy()
noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
setNoProxy
public void setNoProxy(String noProxy)
noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying. IP and domain names can contain port numbers.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
getPath
public String getPath()
path to collect metrics from. Defaults to `/probe`.
-
setPath
public void setPath(String path)
path to collect metrics from. Defaults to `/probe`.
-
getProxyConnectHeader
public Map<String,List<SecretKeySelector>> getProxyConnectHeader()
proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
setProxyConnectHeader
public void setProxyConnectHeader(Map<String,List<SecretKeySelector>> proxyConnectHeader)
proxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
getProxyFromEnvironment
public Boolean getProxyFromEnvironment()
proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
setProxyFromEnvironment
public void setProxyFromEnvironment(Boolean proxyFromEnvironment)
proxyFromEnvironment defines whether to use the proxy configuration defined by environment variables (HTTP_PROXY, HTTPS_PROXY, and NO_PROXY).It requires Prometheus >= v2.43.0, Alertmanager >= v0.25.0 or Thanos >= v0.32.0.
-
getProxyUrl
public String getProxyUrl()
proxyUrl defines the HTTP proxy server to use.
-
setProxyUrl
public void setProxyUrl(String proxyUrl)
proxyUrl defines the HTTP proxy server to use.
-
getScheme
public String getScheme()
scheme defines the HTTP scheme to use when scraping the prober.
-
setScheme
public void setScheme(String scheme)
scheme defines the HTTP scheme to use when scraping the prober.
-
getUrl
public String getUrl()
url defines the address of the prober.Unlike what the name indicates, the value should be in the form of `address:port` without any scheme which should be specified in the `scheme` field.
-
setUrl
public void setUrl(String url)
url defines the address of the prober.Unlike what the name indicates, the value should be in the form of `address:port` without any scheme which should be specified in the `scheme` field.
-
edit
public ProberSpecBuilder edit()
- Specified by:
editin interfaceEditable<ProberSpecBuilder>
-
toBuilder
public ProberSpecBuilder toBuilder()
-
-