Package org.elasticsearch.client.watcher
Class ExecuteWatchResponse
- java.lang.Object
-
- org.elasticsearch.client.watcher.ExecuteWatchResponse
-
public class ExecuteWatchResponse extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldID_FIELDstatic ParseFieldWATCH_FIELD
-
Constructor Summary
Constructors Constructor Description ExecuteWatchResponse()ExecuteWatchResponse(String recordId, BytesReference contentSource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecuteWatchResponsefromXContent(XContentParser parser)BytesReferencegetRecord()Map<String,Object>getRecordAsMap()Returns the watch record as a map Useorg.elasticsearch.common.xcontent.ObjectPathto navigate through the dataStringgetRecordId()
-
-
-
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(String recordId, BytesReference contentSource)
-
-
Method Detail
-
getRecordId
public 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 Map<String,Object> getRecordAsMap()
Returns the watch record as a map Useorg.elasticsearch.common.xcontent.ObjectPathto navigate through the data
-
fromXContent
public static ExecuteWatchResponse fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
-