mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
* Update and cleanup existing OSS spec * Including some maintenance on existing overrides * Update x-pack spec definitions and overrides Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
This commit is contained in:
parent
70c802161c
commit
477dde5cf8
123 changed files with 534 additions and 153 deletions
|
@ -23,18 +23,14 @@ At the root of the Kibana repository, run the following commands:
|
|||
|
||||
```sh
|
||||
# OSS
|
||||
yarn spec_to_console \
|
||||
-g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" \
|
||||
-d "src/legacy/core_plugins/console/api_server/spec/generated"
|
||||
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/rest-api-spec/src/main/resources/rest-api-spec/api/*" -d "src/plugins/console/server/lib/spec_definitions/json"
|
||||
|
||||
# X-pack
|
||||
yarn spec_to_console \
|
||||
-g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" \
|
||||
-d "x-pack/plugins/console_extensions/spec/generated"
|
||||
yarn spec_to_console -g "<ELASTICSEARCH-REPO-FOLDER>/x-pack/plugin/src/test/resources/rest-api-spec/api/*" -d "x-pack/plugins/console_extensions/server/spec/generated"
|
||||
```
|
||||
|
||||
### Information used in Console that is not available in the REST spec
|
||||
|
||||
* Request bodies
|
||||
* Data fetched at runtime: indices, fields, snapshots, etc
|
||||
* Ad hoc additions
|
||||
* Ad hoc additions
|
|
@ -21,6 +21,7 @@ const fs = require('fs');
|
|||
const path = require('path');
|
||||
const program = require('commander');
|
||||
const glob = require('glob');
|
||||
const chalk = require('chalk');
|
||||
|
||||
const packageJSON = require('../package.json');
|
||||
const convert = require('../lib/convert');
|
||||
|
@ -37,10 +38,26 @@ if (!program.glob) {
|
|||
}
|
||||
|
||||
const files = glob.sync(program.glob);
|
||||
console.log(files.length, files);
|
||||
const totalFilesCount = files.length;
|
||||
let convertedFilesCount = 0;
|
||||
|
||||
console.log(chalk.bold(`Detected files (count: ${totalFilesCount}):`));
|
||||
console.log();
|
||||
console.log(files);
|
||||
console.log();
|
||||
|
||||
files.forEach(file => {
|
||||
const spec = JSON.parse(fs.readFileSync(file));
|
||||
const output = JSON.stringify(convert(spec), null, 2);
|
||||
const convertedSpec = convert(spec);
|
||||
if (!Object.keys(convertedSpec).length) {
|
||||
console.log(
|
||||
// prettier-ignore
|
||||
`${chalk.yellow('Detected')} ${chalk.grey(file)} but no endpoints were converted; ${chalk.yellow('skipping')}...`
|
||||
);
|
||||
return;
|
||||
}
|
||||
const output = JSON.stringify(convertedSpec, null, 2);
|
||||
++convertedFilesCount;
|
||||
if (program.directory) {
|
||||
const outputName = path.basename(file);
|
||||
const outputPath = path.resolve(program.directory, outputName);
|
||||
|
@ -54,3 +71,9 @@ files.forEach(file => {
|
|||
console.log(output);
|
||||
}
|
||||
});
|
||||
|
||||
console.log();
|
||||
// prettier-ignore
|
||||
console.log(`${chalk.grey('Converted')} ${chalk.bold(`${convertedFilesCount}/${totalFilesCount}`)} ${chalk.grey('files')}`);
|
||||
console.log(`Check your ${chalk.bold('git status')}.`);
|
||||
console.log();
|
||||
|
|
|
@ -36,6 +36,11 @@ module.exports = spec => {
|
|||
*/
|
||||
Object.keys(spec).forEach(api => {
|
||||
const source = spec[api];
|
||||
|
||||
if (source.url.paths.every(path => Boolean(path.deprecated))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!source.url) {
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ module.exports = params => {
|
|||
case 'date':
|
||||
case 'string':
|
||||
case 'number':
|
||||
case 'number|string':
|
||||
result[param] = defaultValue || '';
|
||||
break;
|
||||
case 'list':
|
||||
|
|
|
@ -6,7 +6,14 @@
|
|||
"h": [],
|
||||
"help": "__flag__",
|
||||
"s": [],
|
||||
"v": "__flag__"
|
||||
"v": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
|
|
|
@ -36,7 +36,14 @@
|
|||
"nanos"
|
||||
],
|
||||
"v": "__flag__",
|
||||
"include_unloaded_segments": "__flag__"
|
||||
"include_unloaded_segments": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"cluster.delete_component_template": {
|
||||
"url_params": {
|
||||
"timeout": "",
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_component_template/{name}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-templates.html"
|
||||
}
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"delete_by_query": {
|
||||
"url_params": {
|
||||
"analyzer": "",
|
||||
"analyze_wildcard": "__flag__",
|
||||
"default_operator": [
|
||||
"AND",
|
||||
|
@ -17,6 +18,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -4,9 +4,7 @@
|
|||
"include_type_name": "__flag__",
|
||||
"order": "",
|
||||
"create": "__flag__",
|
||||
"timeout": "",
|
||||
"master_timeout": "",
|
||||
"flat_settings": "__flag__"
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"PUT",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
],
|
||||
"typed_keys": "__flag__",
|
||||
"max_concurrent_searches": "",
|
||||
"rest_total_hits_as_int": "__flag__"
|
||||
"rest_total_hits_as_int": "__flag__",
|
||||
"ccs_minimize_roundtrips": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET",
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
@ -22,7 +23,8 @@
|
|||
"explain": "__flag__",
|
||||
"profile": "__flag__",
|
||||
"typed_keys": "__flag__",
|
||||
"rest_total_hits_as_int": "__flag__"
|
||||
"rest_total_hits_as_int": "__flag__",
|
||||
"ccs_minimize_roundtrips": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET",
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
|
|
|
@ -1,11 +1,38 @@
|
|||
{
|
||||
"cluster.health": {
|
||||
"url_params": {
|
||||
"master_timeout": "30s",
|
||||
"timeout": "30s",
|
||||
"wait_for_relocating_shards": 0,
|
||||
"wait_for_active_shards": 0,
|
||||
"wait_for_nodes": 0
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"level": [
|
||||
"cluster",
|
||||
"indices",
|
||||
"shards"
|
||||
],
|
||||
"local": "__flag__",
|
||||
"master_timeout": "",
|
||||
"timeout": "",
|
||||
"wait_for_active_shards": "",
|
||||
"wait_for_nodes": "",
|
||||
"wait_for_events": [
|
||||
"immediate",
|
||||
"urgent",
|
||||
"high",
|
||||
"normal",
|
||||
"low",
|
||||
"languid"
|
||||
],
|
||||
"wait_for_no_relocating_shards": "__flag__",
|
||||
"wait_for_no_initializing_shards": "__flag__",
|
||||
"wait_for_status": [
|
||||
"green",
|
||||
"yellow",
|
||||
"red"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"indices.get_template": {
|
||||
"patterns": [
|
||||
"_template",
|
||||
"_template/{template}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"async_search.delete": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_async_search/{id}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"async_search.get": {
|
||||
"url_params": {
|
||||
"wait_for_completion": "",
|
||||
"keep_alive": "",
|
||||
"typed_keys": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_async_search/{id}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"async_search.submit": {
|
||||
"url_params": {
|
||||
"wait_for_completion": "",
|
||||
"clean_on_completion": "__flag__",
|
||||
"keep_alive": "",
|
||||
"batched_reduce_size": "",
|
||||
"request_cache": "__flag__",
|
||||
"analyzer": "",
|
||||
"analyze_wildcard": "__flag__",
|
||||
"default_operator": [
|
||||
"AND",
|
||||
"OR"
|
||||
],
|
||||
"df": "",
|
||||
"explain": "__flag__",
|
||||
"stored_fields": [],
|
||||
"docvalue_fields": [],
|
||||
"from": "0",
|
||||
"ignore_unavailable": "__flag__",
|
||||
"ignore_throttled": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"none",
|
||||
"all"
|
||||
],
|
||||
"lenient": "__flag__",
|
||||
"preference": "random",
|
||||
"q": "",
|
||||
"routing": [],
|
||||
"search_type": [
|
||||
"query_then_fetch",
|
||||
"dfs_query_then_fetch"
|
||||
],
|
||||
"size": "10",
|
||||
"sort": [],
|
||||
"_source": [],
|
||||
"_source_excludes": [],
|
||||
"_source_includes": [],
|
||||
"terminate_after": "",
|
||||
"stats": [],
|
||||
"suggest_field": "",
|
||||
"suggest_mode": [
|
||||
"missing",
|
||||
"popular",
|
||||
"always"
|
||||
],
|
||||
"suggest_size": "",
|
||||
"suggest_text": "",
|
||||
"timeout": "",
|
||||
"track_scores": "__flag__",
|
||||
"track_total_hits": "__flag__",
|
||||
"allow_partial_search_results": "__flag__",
|
||||
"typed_keys": "__flag__",
|
||||
"version": "__flag__",
|
||||
"seq_no_primary_term": "__flag__",
|
||||
"max_concurrent_shard_requests": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_async_search",
|
||||
"{indices}/_async_search"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"autoscaling.get_autoscaling_decision": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_autoscaling/decision"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-decision.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"cat.ml_data_frame_analytics": {
|
||||
"url_params": {
|
||||
"allow_no_match": "__flag__",
|
||||
"bytes": [
|
||||
"b",
|
||||
"k",
|
||||
"kb",
|
||||
"m",
|
||||
"mb",
|
||||
"g",
|
||||
"gb",
|
||||
"t",
|
||||
"tb",
|
||||
"p",
|
||||
"pb"
|
||||
],
|
||||
"format": "",
|
||||
"h": [],
|
||||
"help": "__flag__",
|
||||
"s": [],
|
||||
"time": [
|
||||
"d",
|
||||
"h",
|
||||
"m",
|
||||
"s",
|
||||
"ms",
|
||||
"micros",
|
||||
"nanos"
|
||||
],
|
||||
"v": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_cat/ml/data_frame/analytics",
|
||||
"_cat/ml/data_frame/analytics/{id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"cat.ml_datafeeds": {
|
||||
"url_params": {
|
||||
"allow_no_datafeeds": "__flag__",
|
||||
"format": "",
|
||||
"h": [],
|
||||
"help": "__flag__",
|
||||
"s": [],
|
||||
"time": [
|
||||
"d",
|
||||
"h",
|
||||
"m",
|
||||
"s",
|
||||
"ms",
|
||||
"micros",
|
||||
"nanos"
|
||||
],
|
||||
"v": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_cat/ml/datafeeds",
|
||||
"_cat/ml/datafeeds/{datafeed_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"cat.ml_jobs": {
|
||||
"url_params": {
|
||||
"allow_no_jobs": "__flag__",
|
||||
"bytes": [
|
||||
"b",
|
||||
"k",
|
||||
"kb",
|
||||
"m",
|
||||
"mb",
|
||||
"g",
|
||||
"gb",
|
||||
"t",
|
||||
"tb",
|
||||
"p",
|
||||
"pb"
|
||||
],
|
||||
"format": "",
|
||||
"h": [],
|
||||
"help": "__flag__",
|
||||
"s": [],
|
||||
"time": [
|
||||
"d",
|
||||
"h",
|
||||
"m",
|
||||
"s",
|
||||
"ms",
|
||||
"micros",
|
||||
"nanos"
|
||||
],
|
||||
"v": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_cat/ml/anomaly_detectors",
|
||||
"_cat/ml/anomaly_detectors/{job_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"cat.ml_trained_models": {
|
||||
"url_params": {
|
||||
"allow_no_match": "__flag__",
|
||||
"from": 0,
|
||||
"size": 0,
|
||||
"bytes": [
|
||||
"b",
|
||||
"k",
|
||||
"kb",
|
||||
"m",
|
||||
"mb",
|
||||
"g",
|
||||
"gb",
|
||||
"t",
|
||||
"tb",
|
||||
"p",
|
||||
"pb"
|
||||
],
|
||||
"format": "",
|
||||
"h": [],
|
||||
"help": "__flag__",
|
||||
"s": [],
|
||||
"time": [
|
||||
"d",
|
||||
"h",
|
||||
"m",
|
||||
"s",
|
||||
"ms",
|
||||
"micros",
|
||||
"nanos"
|
||||
],
|
||||
"v": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_cat/ml/trained_models",
|
||||
"_cat/ml/trained_models/{model_id}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html"
|
||||
}
|
||||
}
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"{indices}/_ccr/unfollow"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
],
|
||||
"patterns": [
|
||||
"_enrich/policy/{name}"
|
||||
]
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
],
|
||||
"patterns": [
|
||||
"_enrich/policy/{name}/_execute"
|
||||
]
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
"patterns": [
|
||||
"_enrich/policy/{name}",
|
||||
"_enrich/policy"
|
||||
]
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
],
|
||||
"patterns": [
|
||||
"_enrich/policy/{name}"
|
||||
]
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
],
|
||||
"patterns": [
|
||||
"_enrich/_stats"
|
||||
]
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"_migration/deprecations",
|
||||
"{indices}/_migration/deprecations"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/_close"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
"patterns": [
|
||||
"_ml/data_frame/analytics/{id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
"patterns": [
|
||||
"_ml/datafeeds/{datafeed_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"_ml/anomaly_detectors/{job_id}/_forecast",
|
||||
"_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
{
|
||||
"ml.estimate_memory_usage": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_ml/data_frame/analytics/_estimate_memory_usage"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html"
|
||||
}
|
||||
}
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/data_frame/_evaluate"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,6 +27,6 @@
|
|||
"patterns": [
|
||||
"_ml/find_file_structure"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,6 +13,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/_flush"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,6 +19,6 @@
|
|||
"_ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}",
|
||||
"_ml/anomaly_detectors/{job_id}/results/buckets"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"_ml/anomaly_detectors/{job_id}/results/categories/{category_id}",
|
||||
"_ml/anomaly_detectors/{job_id}/results/categories/"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"_ml/data_frame/analytics/{id}",
|
||||
"_ml/data_frame/analytics"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"_ml/data_frame/analytics/_stats",
|
||||
"_ml/data_frame/analytics/{id}/_stats"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"_ml/datafeeds/{datafeed_id}/_stats",
|
||||
"_ml/datafeeds/_stats"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"_ml/datafeeds/{datafeed_id}",
|
||||
"_ml/datafeeds"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/results/influencers"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"_ml/anomaly_detectors/_stats",
|
||||
"_ml/anomaly_detectors/{job_id}/_stats"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"_ml/anomaly_detectors/{job_id}",
|
||||
"_ml/anomaly_detectors"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,6 @@
|
|||
"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}",
|
||||
"_ml/anomaly_detectors/{job_id}/model_snapshots"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/results/overall_buckets"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,6 +17,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/results/records"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
"include_model_definition": "__flag__",
|
||||
"decompress_definition": "__flag__",
|
||||
"from": 0,
|
||||
"size": 0
|
||||
"size": 0,
|
||||
"tags": []
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/_open"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/_data"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/datafeeds/{datafeed_id}/_preview"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/data_frame/analytics/{id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,23 @@
|
|||
{
|
||||
"ml.put_datafeed": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"ignore_throttled": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_ml/datafeeds/{datafeed_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
"patterns": [
|
||||
"_ml/set_upgrade_mode"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
"patterns": [
|
||||
"_ml/data_frame/analytics/{id}/_start"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"patterns": [
|
||||
"_ml/datafeeds/{datafeed_id}/_start"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"patterns": [
|
||||
"_ml/data_frame/analytics/{id}/_stop"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
"patterns": [
|
||||
"_ml/datafeeds/{datafeed_id}/_stop"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,23 @@
|
|||
{
|
||||
"ml.update_datafeed": {
|
||||
"url_params": {
|
||||
"ignore_unavailable": "__flag__",
|
||||
"allow_no_indices": "__flag__",
|
||||
"ignore_throttled": "__flag__",
|
||||
"expand_wildcards": [
|
||||
"open",
|
||||
"closed",
|
||||
"hidden",
|
||||
"none",
|
||||
"all"
|
||||
]
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_ml/datafeeds/{datafeed_id}/_update"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/_update"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_security/privilege"
|
||||
"_security/privilege/"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html"
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_slm/policy/{policy_id}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
"patterns": [
|
||||
"_slm/policy/{policy_id}/_execute"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html"
|
||||
}
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue