Class WebhookConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1beta1.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
-
-
Constructor Summary
Constructors Constructor Description WebhookConfig()No args constructor for use in serializationWebhookConfig(HTTPConfig httpConfig, Integer maxAlerts, Boolean sendResolved, String timeout, String url, SecretKeySelector urlSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebhookConfigBuilderedit()Map<String,Object>getAdditionalProperties()HTTPConfiggetHttpConfig()WebhookConfig configures notifications via a generic receiver supporting the webhook payload.IntegergetMaxAlerts()Maximum number of alerts to be sent per webhook message.BooleangetSendResolved()Whether or not to notify about resolved alerts.StringgetTimeout()The maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried.StringgetUrl()The URL to send HTTP POST requests to.SecretKeySelectorgetUrlSecret()WebhookConfig configures notifications via a generic receiver supporting the webhook payload.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHttpConfig(HTTPConfig httpConfig)WebhookConfig configures notifications via a generic receiver supporting the webhook payload.voidsetMaxAlerts(Integer maxAlerts)Maximum number of alerts to be sent per webhook message.voidsetSendResolved(Boolean sendResolved)Whether or not to notify about resolved alerts.voidsetTimeout(String timeout)The maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried.voidsetUrl(String url)The URL to send HTTP POST requests to.voidsetUrlSecret(SecretKeySelector urlSecret)WebhookConfig configures notifications via a generic receiver supporting the webhook payload.WebhookConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
WebhookConfig
public WebhookConfig()
No args constructor for use in serialization
-
WebhookConfig
public WebhookConfig(HTTPConfig httpConfig, Integer maxAlerts, Boolean sendResolved, String timeout, String url, SecretKeySelector urlSecret)
-
-
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
-
edit
public WebhookConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<WebhookConfigBuilder>
-
toBuilder
public WebhookConfigBuilder toBuilder()
-
-