Class AlertmanagerEndpoints

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

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

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

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