Skip to content

Commit c4713b1

Browse files
[SPEC] Added human flag to:
* cluster.node_info * cluster.node_stats * indices.segments * indices.stats * indices.status
1 parent 8cb091e commit c4713b1

File tree

5 files changed

+25
-0
lines changed

5 files changed

+25
-0
lines changed

rest-api-spec/api/cluster.node_info.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
"flat_settings": {
2121
"type": "boolean",
2222
"description": "Return settings in flat format (default: false)"
23+
},
24+
"human": {
25+
"type": "boolean",
26+
"description": "Whether to return time and byte values in human-readable format.",
27+
"default": false
2328
}
2429
}
2530
},

rest-api-spec/api/cluster.node_stats.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@
4545
"type" : "boolean",
4646
"description" : "A comma-separated list of search groups for `search` index metric"
4747
},
48+
"human": {
49+
"type": "boolean",
50+
"description": "Whether to return time and byte values in human-readable format.",
51+
"default": false
52+
},
4853
"level": {
4954
"type" : "enum",
5055
"description": "Return indices stats aggregated at node, index or shard level",

rest-api-spec/api/indices.segments.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},
29+
"human": {
30+
"type": "boolean",
31+
"description": "Whether to return time and byte values in human-readable format.",
32+
"default": false
33+
},
2934
"operation_threading": {
3035
"description" : "TODO: ?"
3136
}

rest-api-spec/api/indices.stats.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@
3838
"type" : "boolean",
3939
"description" : "A comma-separated list of search groups for `search` index metric"
4040
},
41+
"human": {
42+
"type": "boolean",
43+
"description": "Whether to return time and byte values in human-readable format.",
44+
"default": false
45+
},
4146
"level": {
4247
"type" : "enum",
4348
"description": "Return stats aggregated at cluster, index or shard level",

rest-api-spec/api/indices.status.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@
2626
"default" : "open",
2727
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
2828
},
29+
"human": {
30+
"type": "boolean",
31+
"description": "Whether to return time and byte values in human-readable format.",
32+
"default": false
33+
},
2934
"operation_threading": {
3035
"description" : "TODO: ?"
3136
},

0 commit comments

Comments
 (0)