start-watch-service.asciidoc 1019 B

12345678910111213141516171819202122232425262728293031323334
  1. --
  2. :api: start-watch-service
  3. :request: StartWatchServiceRequest
  4. :response: StartWatchServiceResponse
  5. --
  6. [role="xpack"]
  7. [id="{upid}-{api}"]
  8. === Start watch service API
  9. [id="{upid}-{api}-request"]
  10. ==== Execution
  11. {ref}/watcher-api-start.html[Start watcher] enables you
  12. to manually start the watch service. Submit the following request
  13. to start the watch service:
  14. ["source","java",subs="attributes,callouts,macros"]
  15. --------------------------------------------------
  16. include-tagged::{doc-tests-file}[{api}-request]
  17. --------------------------------------------------
  18. [id="{upid}-{api}-response"]
  19. ==== Response
  20. The returned `AcknowledgeResponse` contains a value on whether or not the request
  21. was received:
  22. ["source","java",subs="attributes,callouts,macros"]
  23. --------------------------------------------------
  24. include-tagged::{doc-tests-file}[{api}-response]
  25. --------------------------------------------------
  26. <1> A boolean value of `true` if successfully received, `false` otherwise.
  27. include::../execution.asciidoc[]