mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Console definitions for 7.14 (rework) (#103681)
* Moved specs definitions from xpack to src and deleted console_extensions plugin * Generated spec definitions using the script on elasticsearch 7.x branch * Added some overrides and doc links fixes Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
3c51a845b6
commit
e604eebf91
347 changed files with 482 additions and 214 deletions
|
@ -350,10 +350,6 @@ The client-side plugin configures following values:
|
|||
|WARNING: Missing README.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/x-pack/plugins/console_extensions/README.md[consoleExtensions]
|
||||
|This plugin provides autocomplete definitions of licensed APIs to the OSS Console plugin.
|
||||
|
||||
|
||||
|{kib-repo}blob/{branch}/x-pack/plugins/cross_cluster_replication/README.md[crossClusterReplication]
|
||||
|You can run a local cluster and simulate a remote cluster within a single Kibana directory.
|
||||
|
||||
|
|
|
@ -18,15 +18,10 @@ git pull --depth=1 origin master
|
|||
|
||||
### Usage
|
||||
|
||||
You need to run the command twice: once for the **OSS** specs and once for the **X-Pack** specs
|
||||
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/plugins/console/server/lib/spec_definitions/json/generated"
|
||||
|
||||
# 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/server/lib/spec_definitions/json/generated"
|
||||
```
|
||||
|
||||
### Information used in Console that is not available in the REST spec
|
||||
|
|
|
@ -179,6 +179,29 @@ const dropProcessorDefinition = {
|
|||
},
|
||||
};
|
||||
|
||||
// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/enrich-processor.html
|
||||
const enrichProcessorDefinition = {
|
||||
enrich: {
|
||||
__template: {
|
||||
policy_name: '',
|
||||
field: '',
|
||||
target_field: '',
|
||||
},
|
||||
policy_name: '',
|
||||
field: '',
|
||||
target_field: '',
|
||||
ignore_missing: {
|
||||
__one_of: [false, true],
|
||||
},
|
||||
override: {
|
||||
__one_of: [true, false],
|
||||
},
|
||||
max_matches: 1,
|
||||
shape_relation: 'INTERSECTS',
|
||||
...commonPipelineParams,
|
||||
},
|
||||
};
|
||||
|
||||
// Based on https://www.elastic.co/guide/en/elasticsearch/reference/master/fail-processor.html
|
||||
const failProcessorDefinition = {
|
||||
fail: {
|
||||
|
@ -279,13 +302,26 @@ const inferenceProcessorDefinition = {
|
|||
inference: {
|
||||
__template: {
|
||||
model_id: '',
|
||||
field_map: {},
|
||||
inference_config: {},
|
||||
field_mappings: {},
|
||||
},
|
||||
model_id: '',
|
||||
field_map: {},
|
||||
inference_config: {},
|
||||
target_field: '',
|
||||
model_id: '',
|
||||
field_mappings: {
|
||||
__template: {},
|
||||
},
|
||||
inference_config: {
|
||||
regression: {
|
||||
__template: {},
|
||||
results_field: '',
|
||||
},
|
||||
classification: {
|
||||
__template: {},
|
||||
results_field: '',
|
||||
num_top_classes: 2,
|
||||
top_classes_results_field: '',
|
||||
},
|
||||
},
|
||||
...commonPipelineParams,
|
||||
},
|
||||
};
|
||||
|
@ -530,6 +566,7 @@ const processorDefinition = {
|
|||
dissectProcessorDefinition,
|
||||
dotExpanderProcessorDefinition,
|
||||
dropProcessorDefinition,
|
||||
enrichProcessorDefinition,
|
||||
failProcessorDefinition,
|
||||
foreachProcessorDefinition,
|
||||
geoipProcessorDefinition,
|
||||
|
|
|
@ -30,7 +30,8 @@
|
|||
"micros",
|
||||
"nanos"
|
||||
],
|
||||
"v": "__flag__"
|
||||
"v": "__flag__",
|
||||
"include_unloaded_segments": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
|
|
|
@ -12,5 +12,6 @@
|
|||
"_component_template",
|
||||
"_component_template/{name}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html" }
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/getting-component-templates.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@
|
|||
"patterns": [
|
||||
"_cluster/settings"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html"
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"PUT"
|
||||
"PUT",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_component_template/{name}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" }
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"eql.get_status": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_eql/search/status/{id}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-async-eql-status-api.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"features.get_features": {
|
||||
"url_params": {
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_features"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"features.reset_features": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_features/_reset"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/reset-features-api.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"fleet.global_checkpoints": {
|
||||
"url_params": {
|
||||
"wait_for_advance": "__flag__",
|
||||
"wait_for_index": "__flag__",
|
||||
"checkpoints": [],
|
||||
"timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_fleet/global_checkpoints"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-global-checkpoints.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"ilm.migrate_to_data_tiers": {
|
||||
"url_params": {
|
||||
"dry_run": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/migrate_to_data_tiers"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-migrate-to-data-tiers.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ingest.geo_ip_stats": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_ingest/geoip/stats"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/geoip-stats-api.html"
|
||||
}
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"ingest.get_pipeline": {
|
||||
"url_params": {
|
||||
"summary": "__flag__",
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
|
|
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