Learn R Programming

elastic (version 0.3.0)

cluster: Elasticsearch cluster endpoints

Description

Elasticsearch cluster endpoints

Usage

cluster_settings(index = NULL, raw = FALSE, callopts = list(),
  verbose = TRUE, ...)

cluster_health(index = NULL, raw = FALSE, callopts = list(), verbose = TRUE, ...)

cluster_state(index = NULL, raw = FALSE, callopts = list(), verbose = TRUE, ...)

cluster_stats(index = NULL, raw = FALSE, callopts = list(), verbose = TRUE, ...)

cluster_reroute(index = NULL, raw = FALSE, callopts = list(), verbose = TRUE, ...)

cluster_pending_tasks(index = NULL, raw = FALSE, callopts = list(), verbose = TRUE, ...)

Arguments

index
Index
raw
If TRUE (default), data is parsed to list. If FALSE, then raw JSON.
callopts
Curl args passed on to httr::POST.
verbose
If TRUE (default) the url call used printed to console.
...
Further args passed on to elastic search HTTP API as parameters.

Details

Additional parameters that can be passed in:
  • metric A comma-separated list of metrics to display. Possible values: '_all', 'completion', 'docs', 'fielddata', 'filter_cache', 'flush', 'get', 'id_cache', 'indexing', 'merge', 'percolate', 'refresh', 'search', 'segments', 'store', 'warmer'
  • completion_fields A comma-separated list of fields for completion metric (supports wildcards)
  • fielddata_fields A comma-separated list of fields for fielddata metric (supports wildcards)
  • fields A comma-separated list of fields for fielddata and completion metric (supports wildcards)
  • groups A comma-separated list of search groups for search statistics
  • allow_no_indices Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes _all string or when no indices have been specified)
  • expand_wildcards Whether to expand wildcard expression to concrete indices that are open, closed or both.
  • ignore_indices When performed on multiple indices, allows to ignore missing ones (default: none)
  • ignore_unavailable Whether specified concrete indices should be ignored when unavailable (missing or closed)
  • human Whether to return time and byte values in human-readable format.
  • level Return stats aggregated at cluster, index or shard level. ('cluster', 'indices' or 'shards', default: 'indices')
  • types A comma-separated list of document types for the indexing index metric

Examples

Run this code
cluster_settings()
cluster_health()
cluster_state()
cluster_stats()
cluster_pending_tasks()

# raw json data
cluster_health(raw = TRUE)

Run the code above in your browser using DataLab