public class StaticEmailAlertSender extends Object implements AlertSender
| Modifier and Type | Field and Description |
|---|---|
protected EmailConfiguration |
configuration |
| Constructor and Description |
|---|
StaticEmailAlertSender(EmailConfiguration configuration,
StreamRuleService streamRuleService,
UserService userService,
NotificationService notificationService,
NodeId nodeId) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBacklogSummary(List<Message> backlog) |
protected String |
buildBody(Stream stream,
AlertCondition.CheckResult checkResult,
List<Message> backlog) |
protected String |
buildStreamDetailsURL(URI baseUri,
AlertCondition.CheckResult checkResult,
Stream stream) |
protected String |
buildSubject(Stream stream,
AlertCondition.CheckResult checkResult,
List<Message> backlog) |
void |
initialize(Configuration configuration) |
void |
sendEmails(Stream stream,
AlertCondition.CheckResult checkResult) |
void |
sendEmails(Stream stream,
AlertCondition.CheckResult checkResult,
List<Message> backlog) |
protected final EmailConfiguration configuration
@Inject public StaticEmailAlertSender(EmailConfiguration configuration, StreamRuleService streamRuleService, UserService userService, NotificationService notificationService, NodeId nodeId)
public void initialize(Configuration configuration)
initialize in interface AlertSenderpublic void sendEmails(Stream stream, AlertCondition.CheckResult checkResult) throws TransportConfigurationException, org.apache.commons.mail.EmailException
sendEmails in interface AlertSenderTransportConfigurationExceptionorg.apache.commons.mail.EmailExceptionprotected String buildSubject(Stream stream, AlertCondition.CheckResult checkResult, List<Message> backlog)
protected String buildBody(Stream stream, AlertCondition.CheckResult checkResult, List<Message> backlog)
protected String buildStreamDetailsURL(URI baseUri, AlertCondition.CheckResult checkResult, Stream stream)
public void sendEmails(Stream stream, AlertCondition.CheckResult checkResult, List<Message> backlog) throws TransportConfigurationException, org.apache.commons.mail.EmailException
sendEmails in interface AlertSenderTransportConfigurationExceptionorg.apache.commons.mail.EmailExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.