Class WebhookConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1alpha1.WebhookConfig
-
- All Implemented Interfaces:
Editable<WebhookConfigBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WebhookConfig extends Object implements Editable<WebhookConfigBuilder>, 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()maxAlerts defines the maximum number of alerts to be sent per webhook message.BooleangetSendResolved()sendResolved defines whether or not to notify about resolved alerts.StringgetTimeout()timeout defines the maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried.StringgetUrl()url defines the URL to send HTTP POST requests to. urlSecret takes precedence over url.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)maxAlerts defines the maximum number of alerts to be sent per webhook message.voidsetSendResolved(Boolean sendResolved)sendResolved defines whether or not to notify about resolved alerts.voidsetTimeout(String timeout)timeout defines the maximum time to wait for a webhook request to complete, before failing the request and allowing it to be retried.voidsetUrl(String url)url defines the URL to send HTTP POST requests to. urlSecret takes precedence over url.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()
maxAlerts defines the maximum number of alerts to be sent per webhook message. When 0, all alerts are included in the webhook payload.
-
setMaxAlerts
public void setMaxAlerts(Integer maxAlerts)
maxAlerts defines the maximum number of alerts to be sent per webhook message. When 0, all alerts are included in the webhook payload.
-
getSendResolved
public Boolean getSendResolved()
sendResolved defines whether or not to notify about resolved alerts.
-
setSendResolved
public void setSendResolved(Boolean sendResolved)
sendResolved defines whether or not to notify about resolved alerts.
-
getTimeout
public String getTimeout()
timeout defines 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)
timeout defines 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()
url defines 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)
url defines 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 interfaceEditable<WebhookConfigBuilder>
-
toBuilder
public WebhookConfigBuilder toBuilder()
-
-