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 ParseFieldID_FIELDstatic ParseFieldWATCH_FIELD -
Constructor Summary
Constructors Constructor Description ExecuteWatchResponse()ExecuteWatchResponse(java.lang.String recordId, BytesReference contentSource) -
Method Summary
Modifier and Type Method Description static ExecuteWatchResponsefromXContent(XContentParser parser)BytesReferencegetRecord()java.util.Map<java.lang.String,java.lang.Object>getRecordAsMap()Returns the watch record as a map UseObjectPathto navigate through the datajava.lang.StringgetRecordId()
-
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 UseObjectPathto navigate through the data -
fromXContent
- Throws:
java.io.IOException
-