[Console] Update spec definitions for 7.7.0 (#61080)

* Update and cleanup existing OSS spec
* Including some maintenance on existing overrides
* Update x-pack spec definitions and overrides
This commit is contained in:
Jean-Louis Leysens 2020-03-25 00:14:06 +01:00 committed by GitHub
parent 2443827579
commit 846e84b6b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
128 changed files with 544 additions and 151 deletions

View file

@ -23,10 +23,10 @@ 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/server/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/legacy/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

View file

@ -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();

View file

@ -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;
}

View file

@ -47,6 +47,7 @@ module.exports = params => {
case 'date':
case 'string':
case 'number':
case 'number|string':
result[param] = defaultValue || '';
break;
case 'list':

View file

@ -6,7 +6,14 @@
"h": [],
"help": "__flag__",
"s": [],
"v": "__flag__"
"v": "__flag__",
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]
},
"methods": [
"GET"

View file

@ -36,7 +36,14 @@
"nanos"
],
"v": "__flag__",
"include_unloaded_segments": "__flag__"
"include_unloaded_segments": "__flag__",
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]
},
"methods": [
"GET"

View file

@ -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"
}
}

View file

@ -4,6 +4,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -11,6 +11,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -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"
],

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -9,6 +9,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -8,6 +8,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,6 +1,7 @@
{
"indices.create": {
"url_params": {
"include_type_name": "__flag__",
"wait_for_active_shards": "",
"timeout": "",
"master_timeout": ""

View file

@ -8,6 +8,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -8,6 +8,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,12 +1,14 @@
{
"indices.get": {
"url_params": {
"include_type_name": "__flag__",
"local": "__flag__",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,12 +1,14 @@
{
"indices.get_field_mapping": {
"url_params": {
"include_type_name": "__flag__",
"include_defaults": "__flag__",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,11 +1,13 @@
{
"indices.get_mapping": {
"url_params": {
"include_type_name": "__flag__",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,6 +1,7 @@
{
"indices.get_template": {
"url_params": {
"include_type_name": "__flag__",
"flat_settings": "__flag__",
"master_timeout": "",
"local": "__flag__"

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -8,6 +8,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,6 +1,7 @@
{
"indices.put_mapping": {
"url_params": {
"include_type_name": "__flag__",
"timeout": "",
"master_timeout": "",
"ignore_unavailable": "__flag__",
@ -8,6 +9,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -9,6 +9,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -1,11 +1,10 @@
{
"indices.put_template": {
"url_params": {
"include_type_name": "__flag__",
"order": "",
"create": "__flag__",
"timeout": "",
"master_timeout": "",
"flat_settings": "__flag__"
"master_timeout": ""
},
"methods": [
"PUT",

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -1,6 +1,7 @@
{
"indices.rollover": {
"url_params": {
"include_type_name": "__flag__",
"timeout": "",
"dry_run": "__flag__",
"master_timeout": "",

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -16,6 +16,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -5,6 +5,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -7,6 +7,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -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",

View file

@ -6,6 +6,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -19,6 +19,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -9,6 +9,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
]

View file

@ -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",

View file

@ -18,6 +18,7 @@
"expand_wildcards": [
"open",
"closed",
"hidden",
"none",
"all"
],

View file

@ -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"
]
}
}
}

View file

@ -1,8 +0,0 @@
{
"indices.get_template": {
"patterns": [
"_template",
"_template/{template}"
]
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -6,6 +6,6 @@
"patterns": [
"{indices}/_ccr/forget_follower"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html"
}
}

View file

@ -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"
}
}

View file

@ -5,6 +5,7 @@
],
"patterns": [
"_enrich/policy/{name}"
]
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html"
}
}

View file

@ -8,6 +8,7 @@
],
"patterns": [
"_enrich/policy/{name}/_execute"
]
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html"
}
}

View file

@ -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"
}
}

View file

@ -5,6 +5,7 @@
],
"patterns": [
"_enrich/policy/{name}"
]
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html"
}
}

View file

@ -5,6 +5,7 @@
],
"patterns": [
"_enrich/_stats"
]
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -5,7 +5,8 @@
"include_model_definition": "__flag__",
"decompress_definition": "__flag__",
"from": 0,
"size": 0
"size": 0,
"tags": []
},
"methods": [
"GET"

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

View file

@ -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"
}
}

Some files were not shown because too many files have changed in this diff Show more