@@ -59,7 +59,7 @@ public ClusterStatsRequest(StreamInput in) throws IOException {
59
59
if (in .getVersion ().onOrAfter (Version .V_2_16_0 )) {
60
60
useAggregatedNodeLevelResponses = in .readOptionalBoolean ();
61
61
}
62
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
62
+ if (in .getVersion ().onOrAfter (Version .V_2_18_0 )) {
63
63
computeAllMetrics = in .readOptionalBoolean ();
64
64
final long longMetricsFlags = in .readLong ();
65
65
for (Metric metric : Metric .values ()) {
@@ -135,7 +135,7 @@ public void writeTo(StreamOutput out) throws IOException {
135
135
if (out .getVersion ().onOrAfter (Version .V_2_16_0 )) {
136
136
out .writeOptionalBoolean (useAggregatedNodeLevelResponses );
137
137
}
138
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
138
+ if (out .getVersion ().onOrAfter (Version .V_2_18_0 )) {
139
139
out .writeOptionalBoolean (computeAllMetrics );
140
140
long longMetricFlags = 0 ;
141
141
for (Metric metric : requestedMetrics ) {
@@ -154,7 +154,7 @@ public void writeTo(StreamOutput out) throws IOException {
154
154
* An enumeration of the "core" sections of metrics that may be requested
155
155
* from the cluster stats endpoint.
156
156
*/
157
- @ PublicApi (since = "3.0 .0" )
157
+ @ PublicApi (since = "2.18 .0" )
158
158
public enum Metric {
159
159
OS ("os" , 0 ),
160
160
JVM ("jvm" , 1 ),
@@ -192,7 +192,7 @@ public int getIndex() {
192
192
*
193
193
* When no value is provided for param index_metric, default filter is set to _all.
194
194
*/
195
- @ PublicApi (since = "3.0 .0" )
195
+ @ PublicApi (since = "2.18 .0" )
196
196
public enum IndexMetric {
197
197
// Metrics computed from ShardStats
198
198
SHARDS ("shards" , 0 ),
0 commit comments