Class AlertmanagerEndpoints
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.AlertmanagerEndpoints
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AlertmanagerEndpointsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AlertmanagerEndpoints extends Object implements io.fabric8.kubernetes.api.builder.Editable<AlertmanagerEndpointsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AlertmanagerEndpoints()No args constructor for use in serializationAlertmanagerEndpoints(List<RelabelConfig> alertRelabelings, String apiVersion, SafeAuthorization authorization, BasicAuth basicAuth, String bearerTokenFile, Boolean enableHttp2, String name, String namespace, String noProxy, String pathPrefix, io.fabric8.kubernetes.api.model.IntOrString port, Map<String,List<io.fabric8.kubernetes.api.model.SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, List<RelabelConfig> relabelings, String scheme, Sigv4 sigv4, String timeout, TLSConfig tlsConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlertmanagerEndpointsBuilderedit()Map<String,Object>getAdditionalProperties()List<RelabelConfig>getAlertRelabelings()Relabeling configs applied before sending alerts to a specific Alertmanager.StringgetApiVersion()Version of the Alertmanager API that Prometheus uses to send alerts.SafeAuthorizationgetAuthorization()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.BasicAuthgetBasicAuth()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.StringgetBearerTokenFile()File to read bearer token for Alertmanager.BooleangetEnableHttp2()Whether to enable HTTP2.StringgetName()Name of the Endpoints object in the namespace.StringgetNamespace()Namespace of the Endpoints object.StringgetNoProxy()`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.StringgetPathPrefix()Prefix for the HTTP path alerts are pushed to.io.fabric8.kubernetes.api.model.IntOrStringgetPort()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.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.List<RelabelConfig>getRelabelings()Relabel configuration applied to the discovered Alertmanagers.StringgetScheme()Scheme to use when firing alerts.Sigv4getSigv4()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.StringgetTimeout()Timeout is a per-target Alertmanager timeout when pushing alerts.TLSConfiggetTlsConfig()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAlertRelabelings(List<RelabelConfig> alertRelabelings)Relabeling configs applied before sending alerts to a specific Alertmanager.voidsetApiVersion(String apiVersion)Version of the Alertmanager API that Prometheus uses to send alerts.voidsetAuthorization(SafeAuthorization authorization)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.voidsetBasicAuth(BasicAuth basicAuth)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.voidsetBearerTokenFile(String bearerTokenFile)File to read bearer token for Alertmanager.voidsetEnableHttp2(Boolean enableHttp2)Whether to enable HTTP2.voidsetName(String name)Name of the Endpoints object in the namespace.voidsetNamespace(String namespace)Namespace of the Endpoints object.voidsetNoProxy(String noProxy)`noProxy` is a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.voidsetPathPrefix(String pathPrefix)Prefix for the HTTP path alerts are pushed to.voidsetPort(io.fabric8.kubernetes.api.model.IntOrString port)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.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.voidsetRelabelings(List<RelabelConfig> relabelings)Relabel configuration applied to the discovered Alertmanagers.voidsetScheme(String scheme)Scheme to use when firing alerts.voidsetSigv4(Sigv4 sigv4)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.voidsetTimeout(String timeout)Timeout is a per-target Alertmanager timeout when pushing alerts.voidsetTlsConfig(TLSConfig tlsConfig)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.AlertmanagerEndpointsBuildertoBuilder()
-
-
-
Constructor Detail
-
AlertmanagerEndpoints
public AlertmanagerEndpoints()
No args constructor for use in serialization
-
AlertmanagerEndpoints
public AlertmanagerEndpoints(List<RelabelConfig> alertRelabelings, String apiVersion, SafeAuthorization authorization, BasicAuth basicAuth, String bearerTokenFile, Boolean enableHttp2, String name, String namespace, String noProxy, String pathPrefix, io.fabric8.kubernetes.api.model.IntOrString port, Map<String,List<io.fabric8.kubernetes.api.model.SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, List<RelabelConfig> relabelings, String scheme, Sigv4 sigv4, String timeout, TLSConfig tlsConfig)
-
-
Method Detail
-
getAlertRelabelings
public List<RelabelConfig> getAlertRelabelings()
Relabeling configs applied before sending alerts to a specific Alertmanager. It requires Prometheus >= v2.51.0.
-
setAlertRelabelings
public void setAlertRelabelings(List<RelabelConfig> alertRelabelings)
Relabeling configs applied before sending alerts to a specific Alertmanager. It requires Prometheus >= v2.51.0.
-
getApiVersion
public String getApiVersion()
Version of the Alertmanager API that Prometheus uses to send alerts. It can be "V1" or "V2". The field has no effect for Prometheus >= v3.0.0 because only the v2 API is supported.
-
setApiVersion
public void setApiVersion(String apiVersion)
Version of the Alertmanager API that Prometheus uses to send alerts. It can be "V1" or "V2". The field has no effect for Prometheus >= v3.0.0 because only the v2 API is supported.
-
getAuthorization
public SafeAuthorization getAuthorization()
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
setAuthorization
public void setAuthorization(SafeAuthorization authorization)
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
getBasicAuth
public BasicAuth getBasicAuth()
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
setBasicAuth
public void setBasicAuth(BasicAuth basicAuth)
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
getBearerTokenFile
public String getBearerTokenFile()
File to read bearer token for Alertmanager.Cannot be set at the same time as `basicAuth`, `authorization`, or `sigv4`.
Deprecated: this will be removed in a future release. Prefer using `authorization`.
-
setBearerTokenFile
public void setBearerTokenFile(String bearerTokenFile)
File to read bearer token for Alertmanager.Cannot be set at the same time as `basicAuth`, `authorization`, or `sigv4`.
Deprecated: this will be removed in a future release. Prefer using `authorization`.
-
getEnableHttp2
public Boolean getEnableHttp2()
Whether to enable HTTP2.
-
setEnableHttp2
public void setEnableHttp2(Boolean enableHttp2)
Whether to enable HTTP2.
-
getName
public String getName()
Name of the Endpoints object in the namespace.
-
setName
public void setName(String name)
Name of the Endpoints object in the namespace.
-
getNamespace
public String getNamespace()
Namespace of the Endpoints object.If not set, the object will be discovered in the namespace of the Prometheus object.
-
setNamespace
public void setNamespace(String namespace)
Namespace of the Endpoints object.If not set, the object will be discovered in the namespace of the Prometheus object.
-
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.
-
getPathPrefix
public String getPathPrefix()
Prefix for the HTTP path alerts are pushed to.
-
setPathPrefix
public void setPathPrefix(String pathPrefix)
Prefix for the HTTP path alerts are pushed to.
-
getPort
public io.fabric8.kubernetes.api.model.IntOrString getPort()
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
setPort
public void setPort(io.fabric8.kubernetes.api.model.IntOrString port)
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
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.
-
getRelabelings
public List<RelabelConfig> getRelabelings()
Relabel configuration applied to the discovered Alertmanagers.
-
setRelabelings
public void setRelabelings(List<RelabelConfig> relabelings)
Relabel configuration applied to the discovered Alertmanagers.
-
getScheme
public String getScheme()
Scheme to use when firing alerts.
-
setScheme
public void setScheme(String scheme)
Scheme to use when firing alerts.
-
getSigv4
public Sigv4 getSigv4()
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
setSigv4
public void setSigv4(Sigv4 sigv4)
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
getTimeout
public String getTimeout()
Timeout is a per-target Alertmanager timeout when pushing alerts.
-
setTimeout
public void setTimeout(String timeout)
Timeout is a per-target Alertmanager timeout when pushing alerts.
-
getTlsConfig
public TLSConfig getTlsConfig()
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
setTlsConfig
public void setTlsConfig(TLSConfig tlsConfig)
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
edit
public AlertmanagerEndpointsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AlertmanagerEndpointsBuilder>
-
toBuilder
public AlertmanagerEndpointsBuilder toBuilder()
-
-