Package org.graylog2.alerts
Class AbstractAlertCondition.CheckResult
java.lang.Object
org.graylog2.alerts.AbstractAlertCondition.CheckResult
- All Implemented Interfaces:
AlertCondition.CheckResult
- Direct Known Subclasses:
AbstractAlertCondition.NegativeCheckResult
- Enclosing class:
- AbstractAlertCondition
public static class AbstractAlertCondition.CheckResult
extends Object
implements AlertCondition.CheckResult
-
Constructor Summary
ConstructorsConstructorDescriptionCheckResult(boolean isTriggered, AlertCondition triggeredCondition, String resultDescription, org.joda.time.DateTime triggeredAt, List<MessageSummary> summaries) -
Method Summary
Modifier and TypeMethodDescriptionThe limited list of messages that matched the alert in the corresponding stream.org.joda.time.DateTimeboolean
-
Constructor Details
-
CheckResult
public CheckResult(boolean isTriggered, AlertCondition triggeredCondition, String resultDescription, org.joda.time.DateTime triggeredAt, List<MessageSummary> summaries)
-
-
Method Details
-
isTriggered
public boolean isTriggered()- Specified by:
isTriggeredin interfaceAlertCondition.CheckResult
-
getResultDescription
- Specified by:
getResultDescriptionin interfaceAlertCondition.CheckResult
-
getTriggeredCondition
- Specified by:
getTriggeredConditionin interfaceAlertCondition.CheckResult
-
getTriggeredAt
public org.joda.time.DateTime getTriggeredAt()- Specified by:
getTriggeredAtin interfaceAlertCondition.CheckResult
-
getMatchingMessages
Description copied from interface:AlertCondition.CheckResultThe limited list of messages that matched the alert in the corresponding stream.- Specified by:
getMatchingMessagesin interfaceAlertCondition.CheckResult- Returns:
- list of message summaries
-