File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.stats
server/src/main/java/org/elasticsearch/rest/action/admin/cluster Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 30
30
- is_true : nodes.plugins
31
31
- is_true : nodes.network_types
32
32
33
+ ---
34
+ " cluster stats accepts timeout param " :
35
+ - do :
36
+ cluster.stats :
37
+ timeout : 24h
38
+
39
+ - is_true : timestamp
40
+ - is_true : cluster_name
41
+
33
42
---
34
43
" cluster stats with human flag returns docs as human readable size " :
35
44
- requires :
Original file line number Diff line number Diff line change 25
25
import java .util .Set ;
26
26
27
27
import static org .elasticsearch .rest .RestRequest .Method .GET ;
28
+ import static org .elasticsearch .rest .RestUtils .REST_TIMEOUT_PARAM ;
28
29
import static org .elasticsearch .rest .RestUtils .getTimeout ;
29
30
30
31
@ ServerlessScope (Scope .INTERNAL )
@@ -46,7 +47,7 @@ public String getName() {
46
47
47
48
@ Override
48
49
public Set <String > supportedQueryParameters () {
49
- return Set .of ("include_remotes" , "nodeId" );
50
+ return Set .of ("include_remotes" , "nodeId" , REST_TIMEOUT_PARAM );
50
51
}
51
52
52
53
@ Override
You can’t perform that action at this time.
0 commit comments