public interface AlertService
Alert factory(AlertCondition.CheckResult checkResult)
List<Alert> loadRecentOfStreams(List<String> streamIds, org.joda.time.DateTime since, int limit)
List<Alert> loadRecentOfStream(String streamId, org.joda.time.DateTime since, int limit)
long totalCount()
long totalCountForStream(String streamId)
long totalCountForStreams(List<String> streamIds, Alert.AlertState state)
AlertCondition fromPersisted(Map<String,Object> conditionFields, Stream stream) throws ConfigurationException
ConfigurationException
AlertCondition fromRequest(CreateConditionRequest ccr, Stream stream, String userId) throws ConfigurationException
ConfigurationException
AlertCondition updateFromRequest(AlertCondition alertCondition, CreateConditionRequest ccr) throws ConfigurationException
ConfigurationException
boolean inGracePeriod(AlertCondition alertCondition)
boolean shouldRepeatNotifications(AlertCondition alertCondition, Alert alert)
List<Alert> listForStreamIds(List<String> streamIds, Alert.AlertState state, int skip, int limit)
Alert load(String alertId, String streamId) throws NotFoundException
NotFoundException
String save(Alert alert) throws ValidationException
ValidationException
boolean isResolved(Alert alert)
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.