Fix execute REST API call
We weren't assigning the trigger event in the execute REST API Original commit: elastic/x-pack-elasticsearch@cc8a6d043c
This commit is contained in:
parent
7d98358012
commit
cf23d54aed
|
@ -130,7 +130,7 @@ public class RestExecuteWatchAction extends WatcherRestHandler {
|
|||
if (triggerEvent == null) {
|
||||
throw new WatcherException("[{}] is a required field.",TRIGGER_EVENT_FIELD.getPreferredName());
|
||||
}
|
||||
|
||||
executeWatchRequestBuilder.setTriggerEvent(triggerEvent);
|
||||
return executeWatchRequestBuilder.request();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue