Class RemoteReadSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.RemoteReadSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RemoteReadSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RemoteReadSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<RemoteReadSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteReadSpec()No args constructor for use in serializationRemoteReadSpec(Authorization authorization, BasicAuth basicAuth, String bearerToken, String bearerTokenFile, Boolean filterExternalLabels, Boolean followRedirects, Map<String,String> headers, String name, String noProxy, OAuth2 oauth2, Map<String,List<io.fabric8.kubernetes.api.model.SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, Boolean readRecent, String remoteTimeout, Map<String,String> requiredMatchers, TLSConfig tlsConfig, String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemoteReadSpecBuilderedit()Map<String,Object>getAdditionalProperties()AuthorizationgetAuthorization()RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.BasicAuthgetBasicAuth()RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.StringgetBearerToken()*Warning: this field shouldn't be used because the token value appears in clear-text.StringgetBearerTokenFile()File from which to read the bearer token for the URL.BooleangetFilterExternalLabels()Whether to use the external labels as selectors for the remote read endpoint.BooleangetFollowRedirects()Configure whether HTTP requests follow HTTP 3xx redirects.Map<String,String>getHeaders()Custom HTTP headers to be sent along with each remote read request.StringgetName()The name of the remote read queue, it must be unique if specified.StringgetNoProxy()`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.OAuth2getOauth2()RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.Map<String,List<io.fabric8.kubernetes.api.model.SecretKeySelector>>getProxyConnectHeader()ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.BooleangetProxyFromEnvironment()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.BooleangetReadRecent()Whether reads should be made for queries for time ranges that the local storage should have complete data for.StringgetRemoteTimeout()Timeout for requests to the remote read endpoint.Map<String,String>getRequiredMatchers()An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.TLSConfiggetTlsConfig()RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.StringgetUrl()The URL of the endpoint to query from.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuthorization(Authorization authorization)RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.voidsetBasicAuth(BasicAuth basicAuth)RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.voidsetBearerToken(String bearerToken)*Warning: this field shouldn't be used because the token value appears in clear-text.voidsetBearerTokenFile(String bearerTokenFile)File from which to read the bearer token for the URL.voidsetFilterExternalLabels(Boolean filterExternalLabels)Whether to use the external labels as selectors for the remote read endpoint.voidsetFollowRedirects(Boolean followRedirects)Configure whether HTTP requests follow HTTP 3xx redirects.voidsetHeaders(Map<String,String> headers)Custom HTTP headers to be sent along with each remote read request.voidsetName(String name)The name of the remote read queue, it must be unique if specified.voidsetNoProxy(String noProxy)`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.voidsetOauth2(OAuth2 oauth2)RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.voidsetProxyConnectHeader(Map<String,List<io.fabric8.kubernetes.api.model.SecretKeySelector>> proxyConnectHeader)ProxyConnectHeader optionally specifies headers to send to proxies during CONNECT requests.voidsetProxyFromEnvironment(Boolean proxyFromEnvironment)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.voidsetReadRecent(Boolean readRecent)Whether reads should be made for queries for time ranges that the local storage should have complete data for.voidsetRemoteTimeout(String remoteTimeout)Timeout for requests to the remote read endpoint.voidsetRequiredMatchers(Map<String,String> requiredMatchers)An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.voidsetTlsConfig(TLSConfig tlsConfig)RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.voidsetUrl(String url)The URL of the endpoint to query from.RemoteReadSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
RemoteReadSpec
public RemoteReadSpec()
No args constructor for use in serialization
-
RemoteReadSpec
public RemoteReadSpec(Authorization authorization, BasicAuth basicAuth, String bearerToken, String bearerTokenFile, Boolean filterExternalLabels, Boolean followRedirects, Map<String,String> headers, String name, String noProxy, OAuth2 oauth2, Map<String,List<io.fabric8.kubernetes.api.model.SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, Boolean readRecent, String remoteTimeout, Map<String,String> requiredMatchers, TLSConfig tlsConfig, String url)
-
-
Method Detail
-
getAuthorization
public Authorization getAuthorization()
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
setAuthorization
public void setAuthorization(Authorization authorization)
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
getBasicAuth
public BasicAuth getBasicAuth()
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
setBasicAuth
public void setBasicAuth(BasicAuth basicAuth)
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
getBearerToken
public String getBearerToken()
*Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.*Deprecated: this will be removed in a future release.
-
setBearerToken
public void setBearerToken(String bearerToken)
*Warning: this field shouldn't be used because the token value appears in clear-text. Prefer using `authorization`.*Deprecated: this will be removed in a future release.
-
getBearerTokenFile
public String getBearerTokenFile()
File from which to read the bearer token for the URL.Deprecated: this will be removed in a future release. Prefer using `authorization`.
-
setBearerTokenFile
public void setBearerTokenFile(String bearerTokenFile)
File from which to read the bearer token for the URL.Deprecated: this will be removed in a future release. Prefer using `authorization`.
-
getFilterExternalLabels
public Boolean getFilterExternalLabels()
Whether to use the external labels as selectors for the remote read endpoint.It requires Prometheus >= v2.34.0.
-
setFilterExternalLabels
public void setFilterExternalLabels(Boolean filterExternalLabels)
Whether to use the external labels as selectors for the remote read endpoint.It requires Prometheus >= v2.34.0.
-
getFollowRedirects
public Boolean getFollowRedirects()
Configure whether HTTP requests follow HTTP 3xx redirects.It requires Prometheus >= v2.26.0.
-
setFollowRedirects
public void setFollowRedirects(Boolean followRedirects)
Configure whether HTTP requests follow HTTP 3xx redirects.It requires Prometheus >= v2.26.0.
-
getHeaders
public Map<String,String> getHeaders()
Custom HTTP headers to be sent along with each remote read request. Be aware that headers that are set by Prometheus itself can't be overwritten. Only valid in Prometheus versions 2.26.0 and newer.
-
setHeaders
public void setHeaders(Map<String,String> headers)
Custom HTTP headers to be sent along with each remote read request. Be aware that headers that are set by Prometheus itself can't be overwritten. Only valid in Prometheus versions 2.26.0 and newer.
-
getName
public String getName()
The name of the remote read queue, it must be unique if specified. The name is used in metrics and logging in order to differentiate read configurations.It requires Prometheus >= v2.15.0.
-
setName
public void setName(String name)
The name of the remote read queue, it must be unique if specified. The name is used in metrics and logging in order to differentiate read configurations.It requires Prometheus >= v2.15.0.
-
getNoProxy
public String getNoProxy()
`noProxy` is 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` is 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.
-
getOauth2
public OAuth2 getOauth2()
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
setOauth2
public void setOauth2(OAuth2 oauth2)
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
getProxyConnectHeader
public Map<String,List<io.fabric8.kubernetes.api.model.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<io.fabric8.kubernetes.api.model.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()
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)
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.
-
getReadRecent
public Boolean getReadRecent()
Whether reads should be made for queries for time ranges that the local storage should have complete data for.
-
setReadRecent
public void setReadRecent(Boolean readRecent)
Whether reads should be made for queries for time ranges that the local storage should have complete data for.
-
getRemoteTimeout
public String getRemoteTimeout()
Timeout for requests to the remote read endpoint.
-
setRemoteTimeout
public void setRemoteTimeout(String remoteTimeout)
Timeout for requests to the remote read endpoint.
-
getRequiredMatchers
public Map<String,String> getRequiredMatchers()
An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.
-
setRequiredMatchers
public void setRequiredMatchers(Map<String,String> requiredMatchers)
An optional list of equality matchers which have to be present in a selector to query the remote read endpoint.
-
getTlsConfig
public TLSConfig getTlsConfig()
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
setTlsConfig
public void setTlsConfig(TLSConfig tlsConfig)
RemoteReadSpec defines the configuration for Prometheus to read back samples from a remote endpoint.
-
getUrl
public String getUrl()
The URL of the endpoint to query from.
-
setUrl
public void setUrl(String url)
The URL of the endpoint to query from.
-
edit
public RemoteReadSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RemoteReadSpecBuilder>
-
toBuilder
public RemoteReadSpecBuilder toBuilder()
-
-