public abstract class AbstractAlertCondition extends Object implements EmbeddedPersistable, AlertCondition
Modifier and Type | Class and Description |
---|---|
static class |
AbstractAlertCondition.CheckResult |
static class |
AbstractAlertCondition.NegativeCheckResult |
static class |
AbstractAlertCondition.Type |
AlertCondition.Config, AlertCondition.Descriptor, AlertCondition.Factory
Modifier and Type | Field and Description |
---|---|
protected int |
backlog |
protected static String |
CK_QUERY |
protected static String |
CK_QUERY_DEFAULT_VALUE |
protected org.joda.time.DateTime |
createdAt |
protected String |
creatorUserId |
protected int |
grace |
protected String |
id |
protected boolean |
repeatNotifications |
protected Stream |
stream |
protected String |
title |
protected String |
type |
Modifier | Constructor and Description |
---|---|
protected |
AbstractAlertCondition(Stream stream,
String id,
String type,
org.joda.time.DateTime createdAt,
String creatorUserId,
Map<String,Object> parameters,
String title) |
Modifier and Type | Method and Description |
---|---|
protected String |
buildQueryFilter(String streamId,
String query)
Combines the given stream ID and query string into a single filter string.
|
Integer |
getBacklog() |
org.joda.time.DateTime |
getCreatedAt() |
String |
getCreatorUserId() |
static List<ConfigurationField> |
getDefaultConfigurationFields() |
int |
getGrace() |
String |
getId() |
Map<String,Object> |
getParameters() |
Map<String,Object> |
getPersistedFields() |
Stream |
getStream() |
String |
getTitle() |
String |
getType() |
protected void |
setParameters(Map<String,Object> parameters) |
boolean |
shouldRepeatNotifications() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, runCheck
protected static final String CK_QUERY
protected static final String CK_QUERY_DEFAULT_VALUE
protected final String id
protected final Stream stream
protected final String type
protected final org.joda.time.DateTime createdAt
protected final String creatorUserId
protected final int grace
protected final int backlog
protected final boolean repeatNotifications
protected final String title
public String getId()
getId
in interface AlertCondition
public String getType()
getType
in interface AlertCondition
public String getTitle()
getTitle
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
public boolean shouldRepeatNotifications()
shouldRepeatNotifications
in interface AlertCondition
protected String buildQueryFilter(String streamId, String query)
streamId
- the stream IDquery
- the query string (might be null or empty)public static List<ConfigurationField> getDefaultConfigurationFields()
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.