public class AlertConfig extends Object
| Constructor and Description |
|---|
AlertConfig(EmailAlert emailAlert)
Build an instance of AlertConfig that sends findings alerts via email.
|
AlertConfig(EmailAlert emailAlert,
SlackAlert slackAlert,
WebhookAlert webhookAlert)
Build an instance of AlertConfig with all provided alert destinations.
|
AlertConfig(SlackAlert slackAlert)
Build an instance of AlertConfig that sends findings alerts via Slack.
|
AlertConfig(WebhookAlert webhookAlert)
Build an instance of AlertConfig that sends findings alerts via webhook.
|
| Modifier and Type | Method and Description |
|---|---|
EmailAlert |
getEmailAlert()
Returns the email alert destination.
|
SlackAlert |
getSlackAlert()
Returns the Slack alert destination.
|
WebhookAlert |
getWebhookAlert()
Returns the webhook alert destination.
|
void |
setEmailAlert(EmailAlert emailAlert)
Sets the email alert destination.
|
void |
setSlackAlert(SlackAlert slackAlert)
Sets the Slack alert destination.
|
void |
setWebhookAlert(WebhookAlert webhookAlert)
Sets the webhook alert destination.
|
String |
toString() |
public AlertConfig(EmailAlert emailAlert, SlackAlert slackAlert, WebhookAlert webhookAlert)
emailAlert - the email alert destinationslackAlert - the Slack alert destinationwebhookAlert - the webhook alert destinationpublic AlertConfig(WebhookAlert webhookAlert)
webhookAlert - the webhook alert destinationpublic AlertConfig(SlackAlert slackAlert)
slackAlert - the Slack alert destinationpublic AlertConfig(EmailAlert emailAlert)
emailAlert - the email alert destinationpublic EmailAlert getEmailAlert()
public void setEmailAlert(EmailAlert emailAlert)
emailAlert - the email alert destinationpublic SlackAlert getSlackAlert()
public void setSlackAlert(SlackAlert slackAlert)
slackAlert - the Slack alert destinationpublic WebhookAlert getWebhookAlert()
public void setWebhookAlert(WebhookAlert webhookAlert)
webhookAlert - the webhook alert destinationCopyright © 2022. All rights reserved.