Package org.elasticsearch.client.watcher
Class ExecuteWatchResponse
java.lang.Object
org.elasticsearch.client.watcher.ExecuteWatchResponse
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.common.xcontent.ParseField
static org.elasticsearch.common.xcontent.ParseField
-
Constructor Summary
ConstructorDescriptionExecuteWatchResponse(String recordId, org.elasticsearch.common.bytes.BytesReference contentSource)
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecuteWatchResponse
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
org.elasticsearch.common.bytes.BytesReference
Returns the watch record as a map UseObjectPath
to navigate through the data
-
Field Details
-
ID_FIELD
public static final org.elasticsearch.common.xcontent.ParseField ID_FIELD -
WATCH_FIELD
public static final org.elasticsearch.common.xcontent.ParseField WATCH_FIELD
-
-
Constructor Details
-
ExecuteWatchResponse
public ExecuteWatchResponse() -
ExecuteWatchResponse
public ExecuteWatchResponse(String recordId, org.elasticsearch.common.bytes.BytesReference contentSource)
-
-
Method Details
-
getRecordId
- Returns:
- The id of the watch record holding the watch execution result.
-
getRecord
public org.elasticsearch.common.bytes.BytesReference getRecord()- Returns:
- The watch record source
-
getRecordAsMap
Returns the watch record as a map UseObjectPath
to navigate through the data -
fromXContent
public static ExecuteWatchResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-