Method: Elasticsearch::API::Watcher::Actions#stop
- Defined in:
- lib/elasticsearch/api/actions/watcher/stop.rb
#stop(arguments = {}) ⇒ Object
Stops Watcher if it is running.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/elasticsearch/api/actions/watcher/stop.rb', line 32 def stop(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'watcher.stop' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_POST path = '_watcher/_stop' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |