public abstract class AbstractAlertCondition extends Object implements EmbeddedPersistable, AlertCondition
Modifier and Type | Class and Description |
---|---|
static class |
AbstractAlertCondition.CheckResult |
static class |
AbstractAlertCondition.NoSuchAlertConditionTypeException |
static class |
AbstractAlertCondition.Type |
Modifier and Type | Field and Description |
---|---|
protected org.joda.time.DateTime |
createdAt |
protected String |
creatorUserId |
protected int |
grace |
protected String |
id |
protected Stream |
stream |
protected AbstractAlertCondition.Type |
type |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAlertCondition(Stream stream,
String id,
AbstractAlertCondition.Type type,
org.joda.time.DateTime createdAt,
String creatorUserId,
Map<String,Object> parameters) |
Modifier and Type | Method and Description |
---|---|
Integer |
getBacklog() |
org.joda.time.DateTime |
getCreatedAt() |
String |
getCreatorUserId() |
int |
getGrace() |
String |
getId() |
Map<String,Object> |
getParameters() |
Map<String,Object> |
getPersistedFields() |
Stream |
getStream() |
AbstractAlertCondition.Type |
getType() |
String |
getTypeString() |
protected abstract AbstractAlertCondition.CheckResult |
runCheck() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getSearchHits
protected final String id
protected final Stream stream
protected final AbstractAlertCondition.Type type
protected final org.joda.time.DateTime createdAt
protected final String creatorUserId
protected final int grace
protected abstract AbstractAlertCondition.CheckResult runCheck()
public String getId()
getId
in interface AlertCondition
public AbstractAlertCondition.Type getType()
public String getTypeString()
getTypeString
in interface AlertCondition
public org.joda.time.DateTime getCreatedAt()
getCreatedAt
in interface AlertCondition
public String getCreatorUserId()
getCreatorUserId
in interface AlertCondition
public Stream getStream()
getStream
in interface AlertCondition
public Map<String,Object> getParameters()
getParameters
in interface AlertCondition
public Integer getBacklog()
getBacklog
in interface AlertCondition
public Map<String,Object> getPersistedFields()
getPersistedFields
in interface EmbeddedPersistable
public int getGrace()
getGrace
in interface AlertCondition
Copyright © 2012-2015 Graylog, Inc.. All Rights Reserved.