elasticsearch-api/lib/elasticsearch/api/actions/watcher/execute_watch.rb
def execute_watch(arguments = {})
          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _id = arguments.delete(:id)

          method = Elasticsearch::API::HTTP_PUT
          path   = if _id
                     "_watcher/watch/#{Utils.__listify(_id)}/_execute"
                   else
                     "_watcher/watch/_execute"
                   end
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Forces the execution of a stored watch.
#
# @option arguments [String] :id Watch ID
# @option arguments [Boolean] :debug indicates whether the watch should execute in debug mode
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body Execution control
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html
#
Forces the execution of a stored watch.
Forces the execution of a stored watch .
def execute_watch(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _id = arguments.delete(:id)
          method = Elasticsearch::API::HTTP_PUT
          path   = if _id
                     "_watcher/watch/#{Utils.__listify(_id)}/_execute"
                   else
                     "_watcher/watch/_execute"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def execute_watch ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _id = arguments . delete ( :id ) method = Elasticsearch :: API :: HTTP_PUT path = if _id "_watcher/watch/#{Utils.__listify(_id)}/_execute" else "_watcher/watch/_execute" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Forces the execution of a stored watch.
Forces the execution of a stored watch .
arguments
:body Execution control
: body Execution control
see
None