Skip to content

Commit 80b1e2c

Browse files
committed
Cat shards bytes (#26952)
* Add `bytes` to cat.shards API spec * add bytes param to rest-api-spec of cat.segments
1 parent 10bf1ae commit 80b1e2c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/cat.segments.json

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"type" : "string",
1717
"description" : "a short version of the Accept header, e.g. json, yaml"
1818
},
19+
"bytes": {
20+
"type": "enum",
21+
"description" : "The unit in which to display byte values",
22+
"options": [ "b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb" ]
23+
},
1924
"h": {
2025
"type": "list",
2126
"description" : "Comma-separated list of column names to display"

rest-api-spec/src/main/resources/rest-api-spec/api/cat.shards.json

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"type" : "string",
1717
"description" : "a short version of the Accept header, e.g. json, yaml"
1818
},
19+
"bytes": {
20+
"type": "enum",
21+
"description" : "The unit in which to display byte values",
22+
"options": [ "b", "k", "kb", "m", "mb", "g", "gb", "t", "tb", "p", "pb" ]
23+
},
1924
"local": {
2025
"type" : "boolean",
2126
"description" : "Return local information, do not retrieve the state from master node (default: false)"

0 commit comments

Comments
 (0)