Skip to content

Commit bbfd674

Browse files
DaveCTurnerpquentin
authored andcommitted
Add missing common cat params (elastic#134870)
Relates elastic/elasticsearch-specification#5298 Co-authored-by: Quentin Pradet <[email protected]>
1 parent d5caf62 commit bbfd674

18 files changed

+323
-0
lines changed

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,31 @@
7474
"type": "time",
7575
"default": "30s",
7676
"description": "Timeout for waiting for new cluster state in case it is blocked"
77+
},
78+
"bytes": {
79+
"type": "enum",
80+
"description": "The unit in which to display byte values",
81+
"options": [
82+
"b",
83+
"kb",
84+
"mb",
85+
"gb",
86+
"tb",
87+
"pb"
88+
]
89+
},
90+
"time": {
91+
"type": "enum",
92+
"description": "The unit in which to display time values",
93+
"options": [
94+
"d",
95+
"h",
96+
"m",
97+
"s",
98+
"ms",
99+
"micros",
100+
"nanos"
101+
]
77102
}
78103
}
79104
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,19 @@
5252
"pb"
5353
]
5454
},
55+
"time": {
56+
"type": "enum",
57+
"description": "The unit in which to display time values",
58+
"options": [
59+
"d",
60+
"h",
61+
"m",
62+
"s",
63+
"ms",
64+
"micros",
65+
"nanos"
66+
]
67+
},
5568
"local": {
5669
"type": "boolean",
5770
"description": "Return local information, do not retrieve the state from master node (default: false)"

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,31 @@
6666
"type": "boolean",
6767
"description": "Verbose mode. Display column headers",
6868
"default": false
69+
},
70+
"bytes": {
71+
"type": "enum",
72+
"description": "The unit in which to display byte values",
73+
"options": [
74+
"b",
75+
"kb",
76+
"mb",
77+
"gb",
78+
"tb",
79+
"pb"
80+
]
81+
},
82+
"time": {
83+
"type": "enum",
84+
"description": "The unit in which to display time values",
85+
"options": [
86+
"d",
87+
"h",
88+
"m",
89+
"s",
90+
"ms",
91+
"micros",
92+
"nanos"
93+
]
6994
}
7095
}
7196
}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,31 @@
5757
"type": "boolean",
5858
"description": "Verbose mode. Display column headers",
5959
"default": false
60+
},
61+
"bytes": {
62+
"type": "enum",
63+
"description": "The unit in which to display byte values",
64+
"options": [
65+
"b",
66+
"kb",
67+
"mb",
68+
"gb",
69+
"tb",
70+
"pb"
71+
]
72+
},
73+
"time": {
74+
"type": "enum",
75+
"description": "The unit in which to display time values",
76+
"options": [
77+
"d",
78+
"h",
79+
"m",
80+
"s",
81+
"ms",
82+
"micros",
83+
"nanos"
84+
]
6085
}
6186
}
6287
}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@
7373
"fields": {
7474
"type": "list",
7575
"description": "A comma-separated list of fields to return in the output"
76+
},
77+
"time": {
78+
"type": "enum",
79+
"description": "The unit in which to display time values",
80+
"options": [
81+
"d",
82+
"h",
83+
"m",
84+
"s",
85+
"ms",
86+
"micros",
87+
"nanos"
88+
]
7689
}
7790
}
7891
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@
6363
"type": "boolean",
6464
"description": "Verbose mode. Display column headers",
6565
"default": false
66+
},
67+
"bytes": {
68+
"type": "enum",
69+
"description": "The unit in which to display byte values",
70+
"options": [
71+
"b",
72+
"kb",
73+
"mb",
74+
"gb",
75+
"tb",
76+
"pb"
77+
]
6678
}
6779
}
6880
}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,31 @@
5454
"type": "boolean",
5555
"description": "Verbose mode. Display column headers",
5656
"default": false
57+
},
58+
"bytes": {
59+
"type": "enum",
60+
"description": "The unit in which to display byte values",
61+
"options": [
62+
"b",
63+
"kb",
64+
"mb",
65+
"gb",
66+
"tb",
67+
"pb"
68+
]
69+
},
70+
"time": {
71+
"type": "enum",
72+
"description": "The unit in which to display time values",
73+
"options": [
74+
"d",
75+
"h",
76+
"m",
77+
"s",
78+
"ms",
79+
"micros",
80+
"nanos"
81+
]
5782
}
5883
}
5984
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@
7474
"type": "boolean",
7575
"description": "Verbose mode. Display column headers",
7676
"default": false
77+
},
78+
"bytes": {
79+
"type": "enum",
80+
"description": "The unit in which to display byte values",
81+
"options": [
82+
"b",
83+
"kb",
84+
"mb",
85+
"gb",
86+
"tb",
87+
"pb"
88+
]
7789
}
7890
}
7991
}

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

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,31 @@
5454
"type": "boolean",
5555
"description": "Verbose mode. Display column headers",
5656
"default": false
57+
},
58+
"bytes": {
59+
"type": "enum",
60+
"description": "The unit in which to display byte values",
61+
"options": [
62+
"b",
63+
"kb",
64+
"mb",
65+
"gb",
66+
"tb",
67+
"pb"
68+
]
69+
},
70+
"time": {
71+
"type": "enum",
72+
"description": "The unit in which to display time values",
73+
"options": [
74+
"d",
75+
"h",
76+
"m",
77+
"s",
78+
"ms",
79+
"micros",
80+
"nanos"
81+
]
5782
}
5883
}
5984
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,18 @@
6767
"type": "boolean",
6868
"description": "Verbose mode. Display column headers",
6969
"default": false
70+
},
71+
"bytes": {
72+
"type": "enum",
73+
"description": "The unit in which to display byte values",
74+
"options": [
75+
"b",
76+
"kb",
77+
"mb",
78+
"gb",
79+
"tb",
80+
"pb"
81+
]
7082
}
7183
}
7284
}

0 commit comments

Comments
 (0)