Path parameters

  • watch_idstring Required

    The watch identifier.

  • action_idstring | array[string] Required

    A comma-separated list of the action identifiers to acknowledge. If you omit this parameter, all of the actions of the watch are acknowledged.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • statusobject Required
      Hide status attributes Show status attributes object
      • actionsobject Required
        Hide actions attribute Show actions attribute object
      • last_checkedstring | number

        A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

        One of:

        Time unit for milliseconds

      • last_met_conditionstring | number

        A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

        One of:

        Time unit for milliseconds

      • stateobject Required
        Hide state attributes Show state attributes object
        • activeboolean Required
        • timestampstring | number Required

          A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

          One of:

          Time unit for milliseconds

      • versionnumber Required
PUT /_watcher/watch/{watch_id}/_ack/{action_id}
POST _watcher/watch/my_watch/_ack
resp = client.watcher.ack_watch(
    watch_id="my_watch",
)
const response = await client.watcher.ackWatch({
  watch_id: "my_watch",
});
response = client.watcher.ack_watch(
  watch_id: "my_watch"
)
$resp = $client->watcher()->ackWatch([
    "watch_id" => "my_watch",
]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_watcher/watch/my_watch/_ack"
Response examples (200)
A successful response from `POST _watcher/watch/my_watch/_ack`.
{
  "status": {
    "state": {
      "active": true,
      "timestamp": "2015-05-26T18:04:27.723Z"
    },
    "last_checked": "2015-05-26T18:04:27.753Z",
    "last_met_condition": "2015-05-26T18:04:27.763Z",
    "actions": {
      "test_index": {
        "ack" : {
          "timestamp": "2015-05-26T18:04:27.713Z",
          "state": "acked"
        },
        "last_execution" : {
          "timestamp": "2015-05-25T18:04:27.733Z",
          "successful": true
        },
        "last_successful_execution" : {
          "timestamp": "2015-05-25T18:04:27.773Z",
          "successful": true
        }
      }
    },
    "execution_state": "executed",
    "version": 2
  }
}