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

          body = nil

          arguments = arguments.clone

          _metric = arguments.delete(:metric)

          method = Elasticsearch::API::HTTP_GET
          path   = if _metric
                     "_watcher/stats/#{Utils.__listify(_metric)}"
                   else
                     "_watcher/stats"
                   end
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Retrieves the current Watcher metrics.
#
# @option arguments [List] :metric Controls what additional stat metrics should be include in the response (options: _all, queued_watches, current_watches, pending_watches)
# @option arguments [Boolean] :emit_stacktraces Emits stack traces of currently running watches
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html
#
Retrieves the current Watcher metrics.
Retrieves the current Watcher metrics .
def stats(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _metric = arguments.delete(:metric)
          method = Elasticsearch::API::HTTP_GET
          path   = if _metric
                     "_watcher/stats/#{Utils.__listify(_metric)}"
                   else
                     "_watcher/stats"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def stats ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _metric = arguments . delete ( :metric ) method = Elasticsearch :: API :: HTTP_GET path = if _metric "_watcher/stats/#{Utils.__listify(_metric)}" else "_watcher/stats" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Retrieves the current Watcher metrics.
Retrieves the current Watcher metrics .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None