2018-10-19 12:42:57 -04:00
|
|
|
--
|
|
|
|
:api: start-watch-service
|
|
|
|
:request: StartWatchServiceRequest
|
|
|
|
:response: StartWatchServiceResponse
|
|
|
|
--
|
2019-09-11 19:32:47 -04:00
|
|
|
[role="xpack"]
|
2018-10-19 12:42:57 -04:00
|
|
|
[id="{upid}-{api}"]
|
2019-09-04 20:03:05 -04:00
|
|
|
=== Start watch service API
|
2018-10-19 12:42:57 -04:00
|
|
|
|
|
|
|
[id="{upid}-{api}-request"]
|
|
|
|
==== Execution
|
|
|
|
|
2018-10-19 14:52:15 -04:00
|
|
|
{ref}/watcher-api-start.html[Start watcher] enables you
|
2018-10-19 12:42:57 -04:00
|
|
|
to manually start the watch service. Submit the following request
|
|
|
|
to start the watch service:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
[id="{upid}-{api}-response"]
|
|
|
|
==== Response
|
|
|
|
|
|
|
|
The returned `AcknowledgeResponse` contains a value on whether or not the request
|
|
|
|
was received:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
|
|
|
--------------------------------------------------
|
|
|
|
<1> A boolean value of `true` if successfully received, `false` otherwise.
|
|
|
|
|
|
|
|
include::../execution.asciidoc[]
|