lib/elasticsearch/api/actions/indices/stats.rb in elasticsearch-api-1.0.2 vs lib/elasticsearch/api/actions/indices/stats.rb in elasticsearch-api-1.0.4
- old
+ new
@@ -46,12 +46,18 @@
# @option arguments [Boolean] :groups A comma-separated list of search groups for `search` statistics
# @option arguments [Boolean] :id_cache Return information about ID cache
# @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 [Boolean] :indexing Return information about indexing operations
+ # @option arguments [String] :level Return stats aggregated at cluster, index or shard level
+ # (Options: cluster, indices, shards)
# @option arguments [List] :types A comma-separated list of document types to include in the `indexing` info
# @option arguments [Boolean] :merge Return information about merge operations
+ # @option arguments [List] :metric Limit the information returned the specific metrics
+ # (_all, completion, docs, fielddata, filter_cache, flush, get,
+ # id_cache, indexing, merge, percolate, refresh, search, segments,
+ # store, warmer, suggest)
# @option arguments [Boolean] :refresh Return information about refresh operations
# @option arguments [Boolean] :search Return information about search operations; use the `groups` parameter to
# include information for specific search groups
# @option arguments [List] :groups A comma-separated list of search groups to include in the `search` statistics
# @option arguments [Boolean] :suggest Return information about suggest statistics
@@ -74,10 +80,11 @@
:filter_cache,
:flush,
:get,
:indexing,
:merge,
+ :metric,
:refresh,
:search,
:suggest,
:store,
:warmer ]
@@ -85,9 +92,10 @@
valid_params = [
:fields,
:completion_fields,
:fielddata_fields,
:groups,
+ :level,
:types,
:ignore_indices,
:ignore_unavailable,
:allow_no_indices,
:expand_wildcards ]