|
NAMESearch::Elasticsearch::Client::6_0::Direct::XPack::Watcher - Plugin providing Watcher API for Search::Elasticsearch 6.x VERSIONversion 7.717 SYNOPSISmy $response = $es->xpack->watcher->start(); DESCRIPTIONThis class extends the Search::Elasticsearch client with a "watcher" namespace, to support the Watcher APIs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api.html>. METHODSThe full documentation for the Watcher feature is available here: <https://www.elastic.co/guide/en/x-pack/current/xpack-alerting.html> put_watch() $response = $es->xpack->watcher->put_watch(
id => $watch_id, # required
body => {...}
);
The put_watch() method is used to register a new watcher or to update an existing watcher. See the put_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html> for more information. Query string parameters:
get_watch() $response = $es->xpack->watcher->get_watch(
id => $watch_id, # required
);
The get_watch() method is used to retrieve a watch by ID. See the get_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html> for more information. Query string parameters:
delete_watch() $response = $es->xpack->watcher->delete_watch(
id => $watch_id, # required
);
The delete_watch() method is used to delete a watch by ID. Query string parameters:
See the delete_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html> for more information. execute_watch() $response = $es->xpack->watcher->execute_watch(
id => $watch_id, # optional
body => {...} # optional
);
The execute_watch() method forces the execution of a previously registered watch. Optional parameters may be passed in the "body". Query string parameters:
See the execute_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html> for more information. ack_watch() $response = $es->xpack->watcher->ack_watch(
watch_id => $watch_id, # required
action_id => $action_id | \@action_ids # optional
);
The ack_watch() method is used to manually throttle the execution of a watch. Query string parameters:
See the ack_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html> for more information. activate_watch() $response = $es->xpack->watcher->activate_watch(
watch_id => $watch_id, # required
);
The activate_watch() method is used to activate a deactive watch. Query string parameters:
See the activate_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html> for more information. deactivate_watch() $response = $es->xpack->watcher->deactivate_watch(
watch_id => $watch_id, # required
);
The deactivate_watch() method is used to deactivate an active watch. Query string parameters:
See the deactivate_watch docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html> for more information. stats() $response = $es->xpack->watcher->stats(
metric => $metric # optional
);
The stats() method returns information about the status of the watcher plugin. See the stats docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html> for more information. Query string parameters:
stop()$response = $es->xpack->watcher->stop(); The stop() method stops the watcher service if it is running. See the stop docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stop.html> for more information. Query string parameters:
start()$response = $es->xpack->watcher->start(); The start() method starts the watcher service if it is not already running. See the start docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html> for more information. Query string parameters:
restart()$response = $es->xpack->watcher->restart(); The restart() method stops then starts the watcher service. See the restart docs <https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-restart.html> for more information. Query string parameters:
AUTHOREnrico Zimuel <enrico.zimuel@elastic.co> COPYRIGHT AND LICENSEThis software is Copyright (c) 2022 by Elasticsearch BV. This is free software, licensed under: The Apache License, Version 2.0, January 2004
|