Skip to content

Commit 281ca86

Browse files
authored
rest-api-spec: fix cluster/indices/nodes enums (#137999)
1 parent 0022efd commit 281ca86

File tree

6 files changed

+79
-30
lines changed

6 files changed

+79
-30
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/cluster.reroute.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,10 @@
4242
},
4343
"metric": {
4444
"type": "list",
45-
"options": [
46-
"_all",
47-
"blocks",
48-
"metadata",
49-
"nodes",
50-
"none",
51-
"routing_table",
52-
"master_node",
53-
"version"
54-
],
55-
"default": "all",
45+
"deprecated": {
46+
"version": "8.6.0",
47+
"description": "This parameter has no effect; its use will be forbidden in a future version."
48+
},
5649
"description": "Limit the information returned to the specified metrics. Defaults to all but metadata"
5750
},
5851
"master_timeout": {

rest-api-spec/src/main/resources/rest-api-spec/api/cluster.state.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"options": [
3131
"_all",
3232
"blocks",
33+
"customs",
3334
"metadata",
3435
"nodes",
3536
"routing_table",
@@ -56,6 +57,7 @@
5657
"options": [
5758
"_all",
5859
"blocks",
60+
"customs",
5961
"metadata",
6062
"nodes",
6163
"routing_table",

rest-api-spec/src/main/resources/rest-api-spec/api/indices.stats.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,20 @@
3636
"flush",
3737
"get",
3838
"indexing",
39+
"mappings",
3940
"merge",
41+
"recovery",
4042
"request_cache",
4143
"refresh",
4244
"search",
4345
"segments",
46+
"shard_stats",
4447
"store",
48+
"translog",
4549
"warmer",
46-
"bulk"
50+
"bulk",
51+
"dense_vector",
52+
"sparse_vector"
4753
],
4854
"description": "Limit the information returned the specific metrics."
4955
}
@@ -82,14 +88,20 @@
8288
"flush",
8389
"get",
8490
"indexing",
91+
"mappings",
8592
"merge",
93+
"recovery",
8694
"request_cache",
8795
"refresh",
8896
"search",
8997
"segments",
98+
"shard_stats",
9099
"store",
100+
"translog",
91101
"warmer",
92-
"bulk"
102+
"bulk",
103+
"dense_vector",
104+
"sparse_vector"
93105
],
94106
"description": "Limit the information returned the specific metrics."
95107
}

rest-api-spec/src/main/resources/rest-api-spec/api/nodes.info.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@
4040
"metric": {
4141
"type": "list",
4242
"options": [
43+
"_all",
44+
"_none",
4345
"settings",
4446
"os",
4547
"process",
48+
"remote_cluster_server",
4649
"jvm",
4750
"thread_pool",
4851
"transport",
@@ -69,19 +72,20 @@
6972
"metric": {
7073
"type": "list",
7174
"options": [
75+
"_all",
76+
"_none",
7277
"settings",
7378
"os",
7479
"process",
80+
"remote_cluster_server",
7581
"jvm",
7682
"thread_pool",
7783
"transport",
7884
"http",
7985
"plugins",
8086
"ingest",
8187
"indices",
82-
"aggregations",
83-
"_all",
84-
"_none"
88+
"aggregations"
8589
],
8690
"description": "A comma-separated list of metrics you wish returned. Use `_all` to retrieve all metrics and `_none` to retrieve the node identity without any additional metrics."
8791
}

rest-api-spec/src/main/resources/rest-api-spec/api/nodes.stats.json

Lines changed: 50 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,24 @@
4141
"type": "list",
4242
"options": [
4343
"_all",
44+
"_none",
45+
"adaptive_selection",
46+
"allocations",
4447
"breaker",
48+
"discovery",
4549
"fs",
4650
"http",
51+
"indexing_pressure",
4752
"indices",
4853
"ingest",
4954
"jvm",
5055
"os",
5156
"process",
57+
"repositories",
58+
"script",
59+
"script_cache",
5260
"thread_pool",
53-
"transport",
54-
"discovery",
55-
"indexing_pressure"
61+
"transport"
5662
],
5763
"description": "Limit the information returned to the specified metrics"
5864
}
@@ -68,18 +74,24 @@
6874
"type": "list",
6975
"options": [
7076
"_all",
77+
"_none",
78+
"adaptive_selection",
79+
"allocations",
7180
"breaker",
81+
"discovery",
7282
"fs",
7383
"http",
84+
"indexing_pressure",
7485
"indices",
7586
"ingest",
7687
"jvm",
7788
"os",
7889
"process",
90+
"repositories",
91+
"script",
92+
"script_cache",
7993
"thread_pool",
80-
"transport",
81-
"discovery",
82-
"indexing_pressure"
94+
"transport"
8395
],
8496
"description": "Limit the information returned to the specified metrics"
8597
},
@@ -99,17 +111,24 @@
99111
"type": "list",
100112
"options": [
101113
"_all",
114+
"_none",
115+
"adaptive_selection",
116+
"allocations",
102117
"breaker",
118+
"discovery",
103119
"fs",
104120
"http",
121+
"indexing_pressure",
105122
"indices",
123+
"ingest",
106124
"jvm",
107125
"os",
108126
"process",
127+
"repositories",
128+
"script",
129+
"script_cache",
109130
"thread_pool",
110-
"transport",
111-
"discovery",
112-
"indexing_pressure"
131+
"transport"
113132
],
114133
"description": "Limit the information returned to the specified metrics"
115134
},
@@ -124,15 +143,20 @@
124143
"flush",
125144
"get",
126145
"indexing",
146+
"mappings",
127147
"merge",
128148
"request_cache",
149+
"recovery",
129150
"refresh",
130151
"search",
131152
"segments",
132153
"store",
133154
"warmer",
134155
"bulk",
135-
"shard_stats"
156+
"shard_stats",
157+
"translog",
158+
"dense_vector",
159+
"sparse_vector"
136160
],
137161
"description": "Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
138162
}
@@ -148,17 +172,24 @@
148172
"type": "list",
149173
"options": [
150174
"_all",
175+
"_none",
176+
"adaptive_selection",
177+
"allocations",
151178
"breaker",
179+
"discovery",
152180
"fs",
153181
"http",
182+
"indexing_pressure",
154183
"indices",
184+
"ingest",
155185
"jvm",
156186
"os",
157187
"process",
188+
"repositories",
189+
"script",
190+
"script_cache",
158191
"thread_pool",
159-
"transport",
160-
"discovery",
161-
"indexing_pressure"
192+
"transport"
162193
],
163194
"description": "Limit the information returned to the specified metrics"
164195
},
@@ -173,15 +204,20 @@
173204
"flush",
174205
"get",
175206
"indexing",
207+
"mappings",
176208
"merge",
177209
"request_cache",
210+
"recovery",
178211
"refresh",
179212
"search",
180213
"segments",
181214
"store",
182215
"warmer",
183216
"bulk",
184-
"shard_stats"
217+
"shard_stats",
218+
"translog",
219+
"dense_vector",
220+
"sparse_vector"
185221
],
186222
"description": "Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified."
187223
},

rest-api-spec/src/main/resources/rest-api-spec/api/nodes.usage.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"type": "list",
4242
"options": [
4343
"_all",
44+
"aggregations",
4445
"rest_actions"
4546
],
4647
"description": "Limit the information returned to the specified metrics"
@@ -57,6 +58,7 @@
5758
"type": "list",
5859
"options": [
5960
"_all",
61+
"aggregations",
6062
"rest_actions"
6163
],
6264
"description": "Limit the information returned to the specified metrics"

0 commit comments

Comments
 (0)