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 Details
-
Constructor Details
-
ExecuteWatchResponse
public ExecuteWatchResponse() -
ExecuteWatchResponse
-
-
Method Details
-
getRecordId
public java.lang.String getRecordId()- Returns:
- The id of the watch record holding the watch execution result.
-
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
- Throws:
java.io.IOException
-