Class WebhookConfig

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<WebhookConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class WebhookConfig
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<WebhookConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    WebhookConfig configures notifications via a generic receiver supporting the webhook payload. See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
    See Also:
    Serialized Form
    • Method Detail

      • getHttpConfig

        public HTTPConfig getHttpConfig()
        WebhookConfig configures notifications via a generic receiver supporting the webhook payload. See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
      • setHttpConfig

        public void setHttpConfig​(HTTPConfig httpConfig)
        WebhookConfig configures notifications via a generic receiver supporting the webhook payload. See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
      • getMaxAlerts

        public Integer getMaxAlerts()
        Maximum number of alerts to be sent per webhook message. When 0, all alerts are included.
      • setMaxAlerts

        public void setMaxAlerts​(Integer maxAlerts)
        Maximum number of alerts to be sent per webhook message. When 0, all alerts are included.
      • getSendResolved

        public Boolean getSendResolved()
        Whether or not to notify about resolved alerts.
      • setSendResolved

        public void setSendResolved​(Boolean sendResolved)
        Whether or not to notify about resolved alerts.
      • getTimeout

        public String getTimeout()
        The maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried. It requires Alertmanager >= v0.28.0.
      • setTimeout

        public void setTimeout​(String timeout)
        The maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried. It requires Alertmanager >= v0.28.0.
      • getUrl

        public String getUrl()
        The URL to send HTTP POST requests to. `urlSecret` takes precedence over `url`. One of `urlSecret` and `url` should be defined.
      • setUrl

        public void setUrl​(String url)
        The URL to send HTTP POST requests to. `urlSecret` takes precedence over `url`. One of `urlSecret` and `url` should be defined.
      • getUrlSecret

        public SecretKeySelector getUrlSecret()
        WebhookConfig configures notifications via a generic receiver supporting the webhook payload. See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
      • setUrlSecret

        public void setUrlSecret​(SecretKeySelector urlSecret)
        WebhookConfig configures notifications via a generic receiver supporting the webhook payload. See https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
      • getAdditionalProperties

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

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

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