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, waitgetDescription, runCheckprotected 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 AlertConditionpublic String getType()
getType in interface AlertConditionpublic String getTitle()
getTitle in interface AlertConditionpublic org.joda.time.DateTime getCreatedAt()
getCreatedAt in interface AlertConditionpublic String getCreatorUserId()
getCreatorUserId in interface AlertConditionpublic Stream getStream()
getStream in interface AlertConditionpublic Map<String,Object> getParameters()
getParameters in interface AlertConditionpublic Integer getBacklog()
getBacklog in interface AlertConditionpublic Map<String,Object> getPersistedFields()
getPersistedFields in interface EmbeddedPersistablepublic int getGrace()
getGrace in interface AlertConditionpublic boolean shouldRepeatNotifications()
shouldRepeatNotifications in interface AlertConditionprotected 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.