From 0d43632839fd3e8cb109c7dad72c4a436b22b941 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Wed, 17 Sep 2014 11:53:43 -0700 Subject: [PATCH] removed benchmark apis --- docs/api_methods.asciidoc | 78 -------------------------------- src/lib/apis/1_4.js | 93 --------------------------------------- 2 files changed, 171 deletions(-) diff --git a/docs/api_methods.asciidoc b/docs/api_methods.asciidoc index 2f479c5d7..47120d6ad 100644 --- a/docs/api_methods.asciidoc +++ b/docs/api_methods.asciidoc @@ -5,8 +5,6 @@ NOTE: This is currently the default API, but in upcomming versions that will change. We recommend setting the `apiVersion` config param when you instantiate your client to make sure that the API does not change unexpectedly. [[js-api-method-index]] -* <> -* <> * <> * <> * <> @@ -24,7 +22,6 @@ NOTE: This is currently the default API, but in upcomming versions that will cha * <> * <> * <> -* <> * <> * <> * <> @@ -112,56 +109,6 @@ NOTE: This is currently the default API, but in upcomming versions that will cha * <> * <> -[[api-abortbenchmark]] -=== `abortBenchmark` - -[source,js] --------- -client.abortBenchmark([params, [callback]]) --------- - -// no description - -The default method is `POST` and the usual <> apply. See http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html[the elasticsearch docs] for more about this method. - -// no examples - - -==== Params - -[horizontal] -`name`:: -`String` -- A benchmark name - -link:#[back to top] - -[[api-benchmark]] -=== `benchmark` - -[source,js] --------- -client.benchmark([params, [callback]]) --------- - -// no description - -The default method is `PUT` and the usual <> apply. See http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html[the elasticsearch docs] for more about this method. - -// no examples - - -==== Params - -[horizontal] -`verbose`:: -`Boolean` -- Specify whether to return verbose statistics about each iteration (default: false) -`index`:: -`String, String[], Boolean` -- A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices -`type`:: -`String` -- The name of the document type - -link:#[back to top] - [[api-bulk]] === `bulk` @@ -1105,31 +1052,6 @@ The default method is `GET` and the usual <> apply. See http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html[the elasticsearch docs] for more about this method. - -// no examples - - -==== Params - -[horizontal] -`index`:: -`String, String[], Boolean` -- A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices -`type`:: -`String` -- The name of the document type - -link:#[back to top] - [[api-mget]] === `mget` diff --git a/src/lib/apis/1_4.js b/src/lib/apis/1_4.js index 2cbd2d2e2..ad84db78a 100644 --- a/src/lib/apis/1_4.js +++ b/src/lib/apis/1_4.js @@ -5,65 +5,6 @@ var api = module.exports = {}; api._namespaces = ['cat', 'cluster', 'indices', 'nodes', 'snapshot']; -/** - * Perform a [abortBenchmark](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request - * - * @param {Object} params - An object with parameters used to carry out this action - * @param {String} params.name - A benchmark name - */ -api.abortBenchmark = ca({ - url: { - fmt: '/_bench/abort/<%=name%>', - req: { - name: { - type: 'string' - } - } - }, - method: 'POST' -}); - -/** - * Perform a [benchmark](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request - * - * @param {Object} params - An object with parameters used to carry out this action - * @param {Boolean} params.verbose - Specify whether to return verbose statistics about each iteration (default: false) - * @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - * @param {String} params.type - The name of the document type - */ -api.benchmark = ca({ - params: { - verbose: { - type: 'boolean' - } - }, - urls: [ - { - fmt: '/<%=index%>/<%=type%>/_bench', - req: { - index: { - type: 'list' - }, - type: { - type: 'string' - } - } - }, - { - fmt: '/<%=index%>/_bench', - req: { - index: { - type: 'list' - } - } - }, - { - fmt: '/_bench' - } - ], - method: 'PUT' -}); - /** * Perform a [bulk](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html) request * @@ -3965,40 +3906,6 @@ api.info = ca({ } }); -/** - * Perform a [listBenchmarks](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request - * - * @param {Object} params - An object with parameters used to carry out this action - * @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - * @param {String} params.type - The name of the document type - */ -api.listBenchmarks = ca({ - urls: [ - { - fmt: '/<%=index%>/<%=type%>/_bench', - req: { - index: { - type: 'list' - }, - type: { - type: 'string' - } - } - }, - { - fmt: '/<%=index%>/_bench', - req: { - index: { - type: 'list' - } - } - }, - { - fmt: '/_bench' - } - ] -}); - /** * Perform a [mget](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html) request *