Package org.graylog2.alerts
Class AlertImpl
java.lang.Object
org.graylog2.alerts.AlertImpl
- All Implemented Interfaces:
Alert
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog2.alerts.Alert
Alert.AlertState
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AlertImpl
create
(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 AlertImpl
fromCheckResult
(AlertCondition.CheckResult checkResult) abstract String
abstract String
abstract String
getId()
abstract org.joda.time.DateTime
abstract String
abstract org.joda.time.DateTime
abstract boolean
abstract AlertImpl.Builder
-
Constructor Details
-
AlertImpl
public AlertImpl()
-
-
Method Details
-
getId
-
getStreamId
- Specified by:
getStreamId
in interfaceAlert
-
getConditionId
- Specified by:
getConditionId
in interfaceAlert
-
getTriggeredAt
public abstract org.joda.time.DateTime getTriggeredAt()- Specified by:
getTriggeredAt
in interfaceAlert
-
getResolvedAt
@Nullable public abstract org.joda.time.DateTime getResolvedAt()- Specified by:
getResolvedAt
in interfaceAlert
-
getDescription
- Specified by:
getDescription
in interfaceAlert
-
getConditionParameters
- Specified by:
getConditionParameters
in interfaceAlert
-
isInterval
public abstract boolean isInterval()- Specified by:
isInterval
in interfaceAlert
-
toBuilder
-
create
-
fromCheckResult
-