ack-watch.asciidoc 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --
  2. :api: ack-watch
  3. :request: AckWatchRequest
  4. :response: AckWatchResponse
  5. --
  6. [id="{upid}-{api}"]
  7. === Ack Watch API
  8. [id="{upid}-{api}-request"]
  9. ==== Execution
  10. {xpack-ref}/actions.html#actions-ack-throttle[Acknowledging a watch] enables you
  11. to manually throttle execution of a watch's actions. A watch can be acknowledged
  12. through the following request:
  13. ["source","java",subs="attributes,callouts,macros"]
  14. --------------------------------------------------
  15. include-tagged::{doc-tests-file}[{api}-request]
  16. --------------------------------------------------
  17. <1> The ID of the watch to ack.
  18. <2> An optional list of IDs representing the watch actions that should be acked.
  19. If no action IDs are provided, then all of the watch's actions will be acked.
  20. [id="{upid}-{api}-response"]
  21. ==== Response
  22. The returned +{response}+ contains the new status of the requested watch:
  23. ["source","java",subs="attributes,callouts,macros"]
  24. --------------------------------------------------
  25. include-tagged::{doc-tests-file}[{api}-response]
  26. --------------------------------------------------
  27. <1> The status of a specific action that was acked.
  28. <2> The acknowledgement state of the action. If the action was successfully
  29. acked, this state will be equal to `AckStatus.State.ACKED`.
  30. include::../execution.asciidoc[]