public class FormattedEmailAlertSender extends StaticEmailAlertSender implements AlertSender
Modifier and Type | Field and Description |
---|---|
static String |
bodyTemplate |
configuration
Constructor and Description |
---|
FormattedEmailAlertSender(EmailConfiguration configuration,
StreamRuleService streamRuleService,
UserService userService) |
Modifier and Type | Method and Description |
---|---|
protected String |
buildBody(Stream stream,
AlertCondition.CheckResult checkResult,
List<Message> backlog) |
protected String |
buildSubject(Stream stream,
AlertCondition.CheckResult checkResult,
EmailConfiguration config,
List<Message> backlog) |
void |
initialize(Configuration configuration) |
buildBacklogSummary, buildStreamDetailsURL, sendEmails, sendEmails
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
sendEmails, sendEmails
public static final String bodyTemplate
@Inject public FormattedEmailAlertSender(EmailConfiguration configuration, StreamRuleService streamRuleService, UserService userService)
public void initialize(Configuration configuration)
initialize
in interface AlertSender
initialize
in class StaticEmailAlertSender
protected String buildSubject(Stream stream, AlertCondition.CheckResult checkResult, EmailConfiguration config, List<Message> backlog)
buildSubject
in class StaticEmailAlertSender
protected String buildBody(Stream stream, AlertCondition.CheckResult checkResult, List<Message> backlog)
buildBody
in class StaticEmailAlertSender
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.