Skip to content

Commit 54d5730

Browse files
committed
REST Spec
1 parent 5dc679c commit 54d5730

File tree

4 files changed

+90
-1
lines changed

4 files changed

+90
-1
lines changed

modules/streams/src/main/java/org/elasticsearch/rest/streams/logs/RestStreamsStatusAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public String getName() {
3333

3434
@Override
3535
public List<RestHandler.Route> routes() {
36-
return List.of(new RestHandler.Route(GET, "/_streams/_status"));
36+
return List.of(new RestHandler.Route(GET, "/_streams/status"));
3737
}
3838

3939
@Override
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"streams.logs.disable": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-logs-disable.html",
5+
"description": "Disable the Logs Streams feature for this cluster"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": [
11+
"application/json",
12+
"text/plain"
13+
]
14+
},
15+
"url": {
16+
"paths": [
17+
{
18+
"path": "/_streams/logs/_disable",
19+
"methods": [
20+
"GET"
21+
]
22+
}
23+
]
24+
},
25+
"params": {}
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"streams.logs.enable": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-logs-enable.html",
5+
"description": "Enable the Logs Streams feature for this cluster"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": [
11+
"application/json",
12+
"text/plain"
13+
]
14+
},
15+
"url": {
16+
"paths": [
17+
{
18+
"path": "/_streams/logs/_enable",
19+
"methods": [
20+
"GET"
21+
]
22+
}
23+
]
24+
},
25+
"params": {}
26+
}
27+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"streams.status": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/streams-status.html",
5+
"description": "Return the current status of the streams feature for each streams type"
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": [
11+
"application/json"
12+
]
13+
},
14+
"url": {
15+
"paths": [
16+
{
17+
"path": "/_streams/status",
18+
"methods": [
19+
"GET"
20+
]
21+
}
22+
]
23+
},
24+
"params": {
25+
"local": {
26+
"type": "boolean",
27+
"description": "Return local information, do not retrieve the state from master node (default: false)"
28+
},
29+
"master_timeout": {
30+
"type": "time",
31+
"description": "Specify timeout for connection to master"
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)