Class AlertmanagerEndpoints
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.AlertmanagerEndpoints
-
- All Implemented Interfaces:
Editable<AlertmanagerEndpointsBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AlertmanagerEndpoints extends Object implements Editable<AlertmanagerEndpointsBuilder>, 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, IntOrString port, Map<String,List<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()alertRelabelings defines the relabeling configs applied before sending alerts to a specific Alertmanager.StringgetApiVersion()apiVersion defines the 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()bearerTokenFile defines the file to read bearer token for Alertmanager.BooleangetEnableHttp2()enableHttp2 defines whether to enable HTTP2.StringgetName()name of the Endpoints object in the namespace.StringgetNamespace()namespace of the Endpoints object.StringgetNoProxy()noProxy defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.StringgetPathPrefix()pathPrefix defines the prefix for the HTTP path alerts are pushed to.IntOrStringgetPort()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.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.List<RelabelConfig>getRelabelings()relabelings defines the relabel configuration applied to the discovered Alertmanagers.StringgetScheme()scheme defines the HTTP scheme to use when sending alerts.Sigv4getSigv4()AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.StringgetTimeout()timeout defines 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)alertRelabelings defines the relabeling configs applied before sending alerts to a specific Alertmanager.voidsetApiVersion(String apiVersion)apiVersion defines the 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)bearerTokenFile defines the file to read bearer token for Alertmanager.voidsetEnableHttp2(Boolean enableHttp2)enableHttp2 defines 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 defines a comma-separated string that can contain IPs, CIDR notation, domain names that should be excluded from proxying.voidsetPathPrefix(String pathPrefix)pathPrefix defines the prefix for the HTTP path alerts are pushed to.voidsetPort(IntOrString port)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.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.voidsetRelabelings(List<RelabelConfig> relabelings)relabelings defines the relabel configuration applied to the discovered Alertmanagers.voidsetScheme(String scheme)scheme defines the HTTP scheme to use when sending alerts.voidsetSigv4(Sigv4 sigv4)AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.voidsetTimeout(String timeout)timeout defines 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, IntOrString port, Map<String,List<SecretKeySelector>> proxyConnectHeader, Boolean proxyFromEnvironment, String proxyUrl, List<RelabelConfig> relabelings, String scheme, Sigv4 sigv4, String timeout, TLSConfig tlsConfig)
-
-
Method Detail
-
getAlertRelabelings
public List<RelabelConfig> getAlertRelabelings()
alertRelabelings defines the relabeling configs applied before sending alerts to a specific Alertmanager. It requires Prometheus >= v2.51.0.
-
setAlertRelabelings
public void setAlertRelabelings(List<RelabelConfig> alertRelabelings)
alertRelabelings defines the relabeling configs applied before sending alerts to a specific Alertmanager. It requires Prometheus >= v2.51.0.
-
getApiVersion
public String getApiVersion()
apiVersion defines the 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)
apiVersion defines the 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()
bearerTokenFile defines the 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)
bearerTokenFile defines the 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()
enableHttp2 defines whether to enable HTTP2.
-
setEnableHttp2
public void setEnableHttp2(Boolean enableHttp2)
enableHttp2 defines 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 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.
-
getPathPrefix
public String getPathPrefix()
pathPrefix defines the prefix for the HTTP path alerts are pushed to.
-
setPathPrefix
public void setPathPrefix(String pathPrefix)
pathPrefix defines the prefix for the HTTP path alerts are pushed to.
-
getPort
public IntOrString getPort()
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
setPort
public void setPort(IntOrString port)
AlertmanagerEndpoints defines a selection of a single Endpoints object containing Alertmanager IPs to fire alerts against.
-
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.
-
getRelabelings
public List<RelabelConfig> getRelabelings()
relabelings defines the relabel configuration applied to the discovered Alertmanagers.
-
setRelabelings
public void setRelabelings(List<RelabelConfig> relabelings)
relabelings defines the relabel configuration applied to the discovered Alertmanagers.
-
getScheme
public String getScheme()
scheme defines the HTTP scheme to use when sending alerts.
-
setScheme
public void setScheme(String scheme)
scheme defines the HTTP scheme to use when sending 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 defines a per-target Alertmanager timeout when pushing alerts.
-
setTimeout
public void setTimeout(String timeout)
timeout defines 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 interfaceEditable<AlertmanagerEndpointsBuilder>
-
toBuilder
public AlertmanagerEndpointsBuilder toBuilder()
-
-