ack-watch.asciidoc 1.3 KB

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