2018-10-04 17:30:20 -04:00
|
|
|
--
|
|
|
|
:api: ack-watch
|
|
|
|
:request: AckWatchRequest
|
|
|
|
:response: AckWatchResponse
|
|
|
|
--
|
|
|
|
|
2019-09-11 19:32:47 -04:00
|
|
|
[role="xpack"]
|
2018-10-04 17:30:20 -04:00
|
|
|
[id="{upid}-{api}"]
|
2019-09-04 20:03:05 -04:00
|
|
|
=== Ack watch API
|
2018-10-03 05:03:03 -04:00
|
|
|
|
2018-10-04 17:30:20 -04:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-10-03 05:03:03 -04:00
|
|
|
==== Execution
|
|
|
|
|
2019-09-04 20:03:05 -04:00
|
|
|
{stack-ov}/actions.html#actions-ack-throttle[Acknowledging a watch] enables you
|
2018-10-03 05:03:03 -04:00
|
|
|
to manually throttle execution of a watch's actions. A watch can be acknowledged
|
|
|
|
through the following request:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-04 17:30:20 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-10-03 05:03:03 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The ID of the watch to ack.
|
|
|
|
<2> An optional list of IDs representing the watch actions that should be acked.
|
|
|
|
If no action IDs are provided, then all of the watch's actions will be acked.
|
|
|
|
|
2018-10-04 17:30:20 -04:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-10-03 05:03:03 -04:00
|
|
|
==== Response
|
|
|
|
|
2018-10-04 17:30:20 -04:00
|
|
|
The returned +{response}+ contains the new status of the requested watch:
|
2018-10-03 05:03:03 -04:00
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-10-04 17:30:20 -04:00
|
|
|
include-tagged::{doc-tests-file}[{api}-response]
|
2018-10-03 05:03:03 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The status of a specific action that was acked.
|
|
|
|
<2> The acknowledgement state of the action. If the action was successfully
|
|
|
|
acked, this state will be equal to `AckStatus.State.ACKED`.
|
|
|
|
|
2018-10-04 17:30:20 -04:00
|
|
|
include::../execution.asciidoc[]
|