Module org.elasticsearch.xcore
Class WatchRecord.MessageWatchRecord
java.lang.Object
org.elasticsearch.xpack.core.watcher.history.WatchRecord
org.elasticsearch.xpack.core.watcher.history.WatchRecord.MessageWatchRecord
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
WatchRecord
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.xpack.core.watcher.history.WatchRecord
WatchRecord.ExceptionWatchRecord, WatchRecord.MessageWatchRecordNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from class org.elasticsearch.xpack.core.watcher.history.WatchRecord
condition, executionResult, id, input, metadata, NODE, state, STATE, TRIGGER_EVENT, triggerEvent, TRUNCATED_RECORD_KEY, TRUNCATED_RECORD_VALUE, user, vars, watch, WATCH_IDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMessageWatchRecord(WatchExecutionContext context, WatchExecutionResult executionResult) Called when the execution finished.MessageWatchRecord(WatchExecutionContext context, WatchExecutionResult executionResult, String message) Called when the execution was aborted due to an error during execution (the given result should reflect were exactly the execution failed)MessageWatchRecord(Wid id, TriggerEvent triggerEvent, ExecutionState state, String message, String nodeId) Called when the execution was aborted before it startedMessageWatchRecord(WatchRecord record, ExecutionState state, String message) -
Method Summary
Methods inherited from class org.elasticsearch.xpack.core.watcher.history.WatchRecord
equals, getNodeId, getState, hashCode, id, input, metadata, result, state, toString, toXContent, triggerEvent, watchIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
MessageWatchRecord
public MessageWatchRecord(Wid id, TriggerEvent triggerEvent, ExecutionState state, String message, String nodeId) Called when the execution was aborted before it started -
MessageWatchRecord
public MessageWatchRecord(WatchExecutionContext context, WatchExecutionResult executionResult, String message) Called when the execution was aborted due to an error during execution (the given result should reflect were exactly the execution failed) -
MessageWatchRecord
Called when the execution finished. -
MessageWatchRecord
-
-
Method Details
-
messages
-
dropLargeFields
- Specified by:
dropLargeFieldsin classWatchRecord- Throws:
Exception
-