[Console] Mappings 7.5 part 2 (#48492)

* Update OSS console mappings and update script to handle new time unit entries

* Add console_extensions (ccr follower pause+resume)
This commit is contained in:
Jean-Louis Leysens 2019-10-17 14:27:58 +02:00 committed by GitHub
parent 3f4616e5ae
commit 214aee0fef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 113 additions and 9 deletions

View file

@ -34,7 +34,12 @@ module.exports = params => {
result[param] = 0.0;
break;
case 'enum':
result[param] = options;
// This is to clean up entries like: "d (Days)". We only want the "d" part.
if (param === 'time') {
result[param] = options.map(option => option.split(' ')[0]);
} else {
result[param] = options;
}
break;
case 'boolean':
result[param] = '__flag__';

View file

@ -3,7 +3,6 @@
"url_params": {
"format": "",
"local": "__flag__",
"master_timeout": "",
"h": [],
"help": "__flag__",
"s": [],

View file

@ -2,8 +2,6 @@
"cat.count": {
"url_params": {
"format": "",
"local": "__flag__",
"master_timeout": "",
"h": [],
"help": "__flag__",
"s": [],

View file

@ -15,8 +15,6 @@
"p",
"pb"
],
"local": "__flag__",
"master_timeout": "",
"h": [],
"help": "__flag__",
"s": [],

View file

@ -2,11 +2,18 @@
"cat.health": {
"url_params": {
"format": "",
"local": "__flag__",
"master_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"ts": "__flag__",
"v": "__flag__"
},

View file

@ -19,6 +19,15 @@
"help": "__flag__",
"pri": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__",
"include_unloaded_segments": "__flag__"
},

View file

@ -1,6 +1,19 @@
{
"cat.nodes": {
"url_params": {
"bytes": [
"b",
"k",
"kb",
"m",
"mb",
"g",
"gb",
"t",
"tb",
"p",
"pb"
],
"format": "",
"full_id": "__flag__",
"local": "__flag__",
@ -8,6 +21,15 @@
"h": [],
"help": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__"
},
"methods": [

View file

@ -7,6 +7,15 @@
"h": [],
"help": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__"
},
"methods": [

View file

@ -17,11 +17,19 @@
"pb"
],
"detailed": "__flag__",
"master_timeout": "",
"h": [],
"help": "__flag__",
"index": [],
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__"
},
"methods": [

View file

@ -20,6 +20,15 @@
"h": [],
"help": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__"
},
"methods": [

View file

@ -7,6 +7,15 @@
"h": [],
"help": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__"
},
"methods": [

View file

@ -9,6 +9,15 @@
"h": [],
"help": "__flag__",
"s": [],
"time": [
"d",
"h",
"m",
"s",
"ms",
"micros",
"nanos"
],
"v": "__flag__"
},
"methods": [

View file

@ -0,0 +1,11 @@
{
"ccr.pause_auto_follow_pattern": {
"methods": [
"POST"
],
"patterns": [
"_ccr/auto_follow/{name}/pause"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html"
}
}

View file

@ -0,0 +1,11 @@
{
"ccr.resume_auto_follow_pattern": {
"methods": [
"POST"
],
"patterns": [
"_ccr/auto_follow/{name}/resume"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html"
}
}