public interface AlertService extends PersistedService
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asMap(AlertCondition alertCondition) |
Alert |
factory(AlertCondition.CheckResult checkResult) |
AlertCondition |
fromPersisted(Map<String,Object> conditionFields,
Stream stream) |
AlertCondition |
fromRequest(CreateConditionRequest ccr,
Stream stream,
String userId) |
boolean |
inGracePeriod(AlertCondition alertCondition) |
List<Alert> |
loadRecentOfStream(String streamId,
org.joda.time.DateTime since) |
long |
totalCount() |
long |
totalCountForStream(String streamId) |
AlertCondition.CheckResult |
triggered(AlertCondition alertCondition) |
AlertCondition.CheckResult |
triggeredNoGrace(AlertCondition alertCondition) |
int |
triggeredSecondsAgo(String streamId,
String conditionId) |
AlertCondition |
updateFromRequest(AlertCondition alertCondition,
CreateConditionRequest ccr) |
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
Alert factory(AlertCondition.CheckResult checkResult)
long totalCount()
long totalCountForStream(String streamId)
AlertCondition fromPersisted(Map<String,Object> conditionFields, Stream stream) throws AbstractAlertCondition.NoSuchAlertConditionTypeException
AlertCondition fromRequest(CreateConditionRequest ccr, Stream stream, String userId) throws AbstractAlertCondition.NoSuchAlertConditionTypeException
AlertCondition updateFromRequest(AlertCondition alertCondition, CreateConditionRequest ccr) throws AbstractAlertCondition.NoSuchAlertConditionTypeException
boolean inGracePeriod(AlertCondition alertCondition)
AlertCondition.CheckResult triggeredNoGrace(AlertCondition alertCondition)
AlertCondition.CheckResult triggered(AlertCondition alertCondition)
Map<String,Object> asMap(AlertCondition alertCondition)
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.