Class 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
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)