Sha256: bdc31d195eb3fd9c9973af123d7171050010999c62e97cbe3728a253051b4d7b

Contents?: true

Size: 973 Bytes

Versions: 2

Compression:

Stored size: 973 Bytes

Contents

# Licensed to Elasticsearch B.V under one or more agreements.
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
# See the LICENSE file in the project root for more information

module Elasticsearch
  module API
    module Actions

      # Return a list of running benchmarks
      #
      # @example
      #
      #     client.list_benchmarks
      #
      # @option arguments [List] :index A comma-separated list of index names; use `_all` or empty string
      #                                 to perform the operation on all indices
      # @option arguments [String] :type The name of the document type
      #
      # @see http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html
      #
      def list_benchmarks(arguments={})
        method = HTTP_GET
        path   = "_bench"
        params = {}
        body   = nil

        perform_request(method, path, params, body).body
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
elasticsearch-api-6.8.3 lib/elasticsearch/api/actions/list_benchmarks.rb
elasticsearch-api-6.8.2 lib/elasticsearch/api/actions/list_benchmarks.rb