public class AlertServiceImpl extends PersistedServiceImpl implements AlertService
mongoConnection| Constructor and Description |
|---|
AlertServiceImpl(MongoConnection mongoConnection,
FieldValueAlertCondition.Factory fieldValueAlertFactory,
MessageCountAlertCondition.Factory messageCountAlertFactory,
FieldContentValueAlertCondition.Factory fieldContentValueAlertFactory) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap(AlertCondition alertCondition) |
Alert |
factory(AlertCondition.CheckResult checkResult) |
AlertCondition |
fromPersisted(Map<String,Object> fields,
Stream stream) |
AbstractAlertCondition |
fromRequest(CreateConditionRequest ccr,
Stream stream,
String userId) |
boolean |
inGracePeriod(AlertCondition alertCondition) |
List<Alert> |
listForStreamId(String streamId,
int skip,
int limit) |
Alert |
load(String alertId,
String streamId) |
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) |
AbstractAlertCondition |
updateFromRequest(AlertCondition alertCondition,
CreateConditionRequest ccr) |
collection, collection, count, count, cursorToList, destroy, destroy, destroyAll, destroyAll, destroyAll, embed, findOne, findOne, findOne, findOne, get, get, get, query, query, query, query, query, removeEmbedded, removeEmbedded, save, saveWithoutValidation, totalCount, totalCount, validate, validate, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, destroyAll, save, saveWithoutValidation, validate, validate, validate@Inject public AlertServiceImpl(MongoConnection mongoConnection, FieldValueAlertCondition.Factory fieldValueAlertFactory, MessageCountAlertCondition.Factory messageCountAlertFactory, FieldContentValueAlertCondition.Factory fieldContentValueAlertFactory)
public Alert factory(AlertCondition.CheckResult checkResult)
factory in interface AlertServicepublic List<Alert> loadRecentOfStream(String streamId, org.joda.time.DateTime since)
loadRecentOfStream in interface AlertServicepublic int triggeredSecondsAgo(String streamId, String conditionId)
triggeredSecondsAgo in interface AlertServicepublic long totalCount()
totalCount in interface AlertServicepublic long totalCountForStream(String streamId)
totalCountForStream in interface AlertServicepublic AlertCondition fromPersisted(Map<String,Object> fields, Stream stream) throws AbstractAlertCondition.NoSuchAlertConditionTypeException
fromPersisted in interface AlertServiceAbstractAlertCondition.NoSuchAlertConditionTypeExceptionpublic AbstractAlertCondition fromRequest(CreateConditionRequest ccr, Stream stream, String userId) throws AbstractAlertCondition.NoSuchAlertConditionTypeException
fromRequest in interface AlertServiceAbstractAlertCondition.NoSuchAlertConditionTypeExceptionpublic AbstractAlertCondition updateFromRequest(AlertCondition alertCondition, CreateConditionRequest ccr) throws AbstractAlertCondition.NoSuchAlertConditionTypeException
updateFromRequest in interface AlertServiceAbstractAlertCondition.NoSuchAlertConditionTypeExceptionpublic boolean inGracePeriod(AlertCondition alertCondition)
inGracePeriod in interface AlertServicepublic AlertCondition.CheckResult triggeredNoGrace(AlertCondition alertCondition)
triggeredNoGrace in interface AlertServicepublic AlertCondition.CheckResult triggered(AlertCondition alertCondition)
triggered in interface AlertServicepublic Map<String,Object> asMap(AlertCondition alertCondition)
asMap in interface AlertServicepublic List<Alert> listForStreamId(String streamId, int skip, int limit)
listForStreamId in interface AlertServicepublic Alert load(String alertId, String streamId) throws NotFoundException
load in interface AlertServiceNotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.