Package org.elasticsearch.client.watcher
Class ExecuteWatchResponse
- java.lang.Object
-
- org.elasticsearch.client.watcher.ExecuteWatchResponse
-
public class ExecuteWatchResponse extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ParseField
ID_FIELD
static ParseField
WATCH_FIELD
-
Constructor Summary
Constructors Constructor Description ExecuteWatchResponse()
ExecuteWatchResponse(java.lang.String recordId, BytesReference contentSource)
-
Method Summary
Modifier and Type Method Description static ExecuteWatchResponse
fromXContent(XContentParser parser)
BytesReference
getRecord()
java.util.Map<java.lang.String,java.lang.Object>
getRecordAsMap()
Returns the watch record as a map UseObjectPath
to navigate through the datajava.lang.String
getRecordId()
-
-
-
Field Detail
-
ID_FIELD
public static final ParseField ID_FIELD
-
WATCH_FIELD
public static final ParseField WATCH_FIELD
-
-
Constructor Detail
-
ExecuteWatchResponse
public ExecuteWatchResponse()
-
ExecuteWatchResponse
public ExecuteWatchResponse(java.lang.String recordId, BytesReference contentSource)
-
-
Method Detail
-
getRecordId
public java.lang.String getRecordId()
- Returns:
- The id of the watch record holding the watch execution result.
-
getRecord
public BytesReference getRecord()
- Returns:
- The watch record source
-
getRecordAsMap
public java.util.Map<java.lang.String,java.lang.Object> getRecordAsMap()
Returns the watch record as a map UseObjectPath
to navigate through the data
-
fromXContent
public static ExecuteWatchResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-