Package org.graylog2.alerts
Class AlertImpl
java.lang.Object
org.graylog2.alerts.AlertImpl
- All Implemented Interfaces:
Alert
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.graylog2.alerts.Alert
Alert.AlertState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AlertImplcreate(String id, String streamId, String conditionId, org.joda.time.DateTime triggeredAt, org.joda.time.DateTime resolvedAt, String description, Map<String, Object> conditionParameters, boolean isInterval) static AlertImplfromCheckResult(AlertCondition.CheckResult checkResult) abstract Stringabstract Stringabstract StringgetId()abstract org.joda.time.DateTimeabstract Stringabstract org.joda.time.DateTimeabstract booleanabstract AlertImpl.Builder
-
Constructor Details
-
AlertImpl
public AlertImpl()
-
-
Method Details
-
getId
-
getStreamId
- Specified by:
getStreamIdin interfaceAlert
-
getConditionId
- Specified by:
getConditionIdin interfaceAlert
-
getTriggeredAt
public abstract org.joda.time.DateTime getTriggeredAt()- Specified by:
getTriggeredAtin interfaceAlert
-
getResolvedAt
@Nullable public abstract org.joda.time.DateTime getResolvedAt()- Specified by:
getResolvedAtin interfaceAlert
-
getDescription
- Specified by:
getDescriptionin interfaceAlert
-
getConditionParameters
- Specified by:
getConditionParametersin interfaceAlert
-
isInterval
public abstract boolean isInterval()- Specified by:
isIntervalin interfaceAlert
-
toBuilder
-
create
-
fromCheckResult
-