From 3bbab4c1061804e8dd521ff8e4ce59ce65730646 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Thu, 16 Jan 2014 14:44:37 +0100 Subject: [PATCH] [SPEC] Added cluster.stats.json --- rest-api-spec/api/cluster.stats.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 rest-api-spec/api/cluster.stats.json diff --git a/rest-api-spec/api/cluster.stats.json b/rest-api-spec/api/cluster.stats.json new file mode 100644 index 00000000000..1467d5d2d67 --- /dev/null +++ b/rest-api-spec/api/cluster.stats.json @@ -0,0 +1,28 @@ +{ + "cluster.stats": { + "documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-stats.html", + "methods": ["GET"], + "url": { + "path": "/_cluster/stats", + "paths": ["/_cluster/stats", "/_cluster/stats/nodes/{nodeId}"], + "parts": { + "node_id": { + "type" : "list", + "description" : "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes" + } + }, + "params": { + "flat_settings": { + "type": "boolean", + "description": "Return settings in flat format (default: false)" + }, + "human": { + "type": "boolean", + "description": "Whether to return time and byte values in human-readable format.", + "default": false + } + } + }, + "body": null + } +}