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
ConfigurationExceptionAlertCondition fromRequest(CreateConditionRequest ccr, Stream stream, String userId) throws ConfigurationException
ConfigurationExceptionAlertCondition updateFromRequest(AlertCondition alertCondition, CreateConditionRequest ccr) throws ConfigurationException
ConfigurationExceptionboolean 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
NotFoundExceptionString save(Alert alert) throws ValidationException
ValidationExceptionboolean isResolved(Alert alert)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.