elasticsearch-api/lib/elasticsearch/api/actions/watcher/activate_watch.rb
def activate_watch(arguments = {})
          raise ArgumentError, "Required argument 'watch_id' missing" unless arguments[:watch_id]

          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _watch_id = arguments.delete(:watch_id)

          method = Elasticsearch::API::HTTP_PUT
          path   = "_watcher/watch/#{Utils.__listify(_watch_id)}/_activate"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Activates a currently inactive watch.
#
# @option arguments [String] :watch_id Watch ID
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html
#
Activates a currently inactive watch.
Activates a currently inactive watch .
def activate_watch(arguments = {})
          raise ArgumentError, "Required argument 'watch_id' missing" unless arguments[:watch_id]
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _watch_id = arguments.delete(:watch_id)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_watcher/watch/#{Utils.__listify(_watch_id)}/_activate"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def activate_watch ( arguments = { } ) raise ArgumentError , "Required argument 'watch_id' missing" unless arguments [ :watch_id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _watch_id = arguments . delete ( :watch_id ) method = Elasticsearch :: API :: HTTP_PUT path = "_watcher/watch/#{Utils.__listify(_watch_id)}/_activate" params = { } perform_request ( method , path , params , body , headers ) . body end
Activates a currently inactive watch.
Activates a currently inactive watch .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None