From c4713b10229141032add95031543e989e02b2652 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Thu, 16 Jan 2014 12:42:02 +0100 Subject: [PATCH] [SPEC] Added human flag to: * cluster.node_info * cluster.node_stats * indices.segments * indices.stats * indices.status --- rest-api-spec/api/cluster.node_info.json | 5 +++++ rest-api-spec/api/cluster.node_stats.json | 5 +++++ rest-api-spec/api/indices.segments.json | 5 +++++ rest-api-spec/api/indices.stats.json | 5 +++++ rest-api-spec/api/indices.status.json | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/rest-api-spec/api/cluster.node_info.json b/rest-api-spec/api/cluster.node_info.json index c921c657e13..8aca525fac6 100644 --- a/rest-api-spec/api/cluster.node_info.json +++ b/rest-api-spec/api/cluster.node_info.json @@ -20,6 +20,11 @@ "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 } } }, diff --git a/rest-api-spec/api/cluster.node_stats.json b/rest-api-spec/api/cluster.node_stats.json index 5946aa97e48..157d4e3f29e 100644 --- a/rest-api-spec/api/cluster.node_stats.json +++ b/rest-api-spec/api/cluster.node_stats.json @@ -45,6 +45,11 @@ "type" : "boolean", "description" : "A comma-separated list of search groups for `search` index metric" }, + "human": { + "type": "boolean", + "description": "Whether to return time and byte values in human-readable format.", + "default": false + }, "level": { "type" : "enum", "description": "Return indices stats aggregated at node, index or shard level", diff --git a/rest-api-spec/api/indices.segments.json b/rest-api-spec/api/indices.segments.json index d37455e38fd..10fb88cc39d 100644 --- a/rest-api-spec/api/indices.segments.json +++ b/rest-api-spec/api/indices.segments.json @@ -26,6 +26,11 @@ "default" : "open", "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." }, + "human": { + "type": "boolean", + "description": "Whether to return time and byte values in human-readable format.", + "default": false + }, "operation_threading": { "description" : "TODO: ?" } diff --git a/rest-api-spec/api/indices.stats.json b/rest-api-spec/api/indices.stats.json index 67598987f8b..cac72a9656b 100644 --- a/rest-api-spec/api/indices.stats.json +++ b/rest-api-spec/api/indices.stats.json @@ -38,6 +38,11 @@ "type" : "boolean", "description" : "A comma-separated list of search groups for `search` index metric" }, + "human": { + "type": "boolean", + "description": "Whether to return time and byte values in human-readable format.", + "default": false + }, "level": { "type" : "enum", "description": "Return stats aggregated at cluster, index or shard level", diff --git a/rest-api-spec/api/indices.status.json b/rest-api-spec/api/indices.status.json index 3f5dea50603..c23bb3674c7 100644 --- a/rest-api-spec/api/indices.status.json +++ b/rest-api-spec/api/indices.status.json @@ -26,6 +26,11 @@ "default" : "open", "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." }, + "human": { + "type": "boolean", + "description": "Whether to return time and byte values in human-readable format.", + "default": false + }, "operation_threading": { "description" : "TODO: ?" },