Skip to content

Commit

Permalink
[Console] Update autocomplete api definition (elastic#43651)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga authored Aug 22, 2019
1 parent d83e3a6 commit 1b164c1
Show file tree
Hide file tree
Showing 33 changed files with 231 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-spec-to-console/lib/convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = spec => {
convertedSpec.url_components = convertParts(urlComponents);
}
}
if (source.documentation) {
if (source.documentation && source.documentation.url) {
convertedSpec.documentation = source.documentation.url;
}
});
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"indices.clone": {
"data_autocomplete_rules": {
"settings": {
"__scope_link": "put_settings"
},
"aliases": {
"__template": {
"NAME": {}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"patterns": [
"{indices}/_ccr/forget_follower"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"data_frame.delete_data_frame_transform": {
"url_params": {
"force": "__flag__"
},
"methods": [
"DELETE"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"data_frame.get_data_frame_transform": {
"url_params": {
"from": 0,
"size": 0
"size": 0,
"allow_no_match": "__flag__"
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"data_frame.get_data_frame_transform_stats": {
"url_params": {
"from": "",
"size": ""
"size": "",
"allow_no_match": "__flag__"
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"data_frame.put_data_frame_transform": {
"url_params": {
"defer_validation": "__flag__"
},
"methods": [
"PUT"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"data_frame.stop_data_frame_transform": {
"url_params": {
"wait_for_completion": "__flag__",
"timeout": ""
"timeout": "",
"allow_no_match": "__flag__"
},
"methods": [
"POST"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"data_frame.update_data_frame_transform": {
"url_params": {
"defer_validation": "__flag__"
},
"methods": [
"POST"
],
"patterns": [
"_data_frame/transforms/{transform_id}/_update"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-data-frame-transform.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"POST"
],
"patterns": [
"{indices}/_graph/explore"
"{indices}/_graph/explore",
"{indices}/{type}/_graph/explore"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"ilm.explain_lifecycle": {
"url_params": {
"only_managed": "__flag__",
"only_errors": "__flag__"
},
"methods": [
"GET"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"indices.reload_search_analyzers": {
"url_params": {
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
"open",
"closed",
"none",
"all"
]
},
"methods": [
"GET",
"POST"
],
"patterns": [
"{indices}/_reload_search_analyzers"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"patterns": [
"_ml/data_frame/analytics/{id}"
]
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ml.estimate_memory_usage": {
"methods": [
"POST"
],
"patterns": [
"_ml/data_frame/analytics/_estimate_memory_usage"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/estimate-memory-usage-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"patterns": [
"_ml/data_frame/_evaluate"
]
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"patterns": [
"_ml/data_frame/analytics/{id}",
"_ml/data_frame/analytics"
]
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"patterns": [
"_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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"patterns": [
"_ml/data_frame/analytics/{id}"
]
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
],
"patterns": [
"_ml/data_frame/analytics/{id}/_start"
]
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
"ml.stop_data_frame_analytics": {
"url_params": {
"allow_no_match": "__flag__",
"force": "__flag__",
"timeout": ""
},
"methods": [
"POST"
],
"patterns": [
"_ml/data_frame/analytics/{id}/_stop"
]
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"PUT"
],
"patterns": [
"_monitoring/bulk"
"_monitoring/bulk",
"_monitoring/{type}/bulk"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/es-monitoring.html"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"POST"
],
"patterns": [
"{indices}/_rollup_search"
"{indices}/_rollup_search",
"{indices}/{type}/_rollup_search"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"patterns": [
"_security/privilege/{application}/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-delete-privilege.html"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"security.get_builtin_privileges": {
"methods": [
"GET"
],
"patterns": [
"_security/privilege/_builtin"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"_security/privilege/{application}",
"_security/privilege/{application}/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-get-privileges.html"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"patterns": [
"_security/privilege/"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-put-privileges.html"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"slm.delete_lifecycle": {
"methods": [
"DELETE"
],
"patterns": [
"_slm/policy/{policy_id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"slm.execute_lifecycle": {
"methods": [
"PUT"
],
"patterns": [
"_slm/policy/{policy_id}/_execute"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"slm.get_lifecycle": {
"methods": [
"GET"
],
"patterns": [
"_slm/policy/{policy_id}",
"_slm/policy"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"slm.put_lifecycle": {
"methods": [
"PUT"
],
"patterns": [
"_slm/policy/{policy_id}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"data_frame.update_data_frame_transform": {
"data_autocomplete_rules": {
"description": "",
"dest": {
"index": "SOURCE_INDEX_NAME",
"pipeline": ""
},
"frequency": "",
"source": {
"index": "SOURCE_INDEX_NAME",
"query": {
"__scope_link": "GLOBAL.query"
}
},
"sync": {
"time": {
"field": "FIELD_NAME",
"delay": ""
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"ml.estimate_memory_usage": {
"data_autocomplete_rules": {
"data_frame_analytics_config": {
"source": {
"index": { "__one_of": ["SOURCE_INDEX_NAME", []] },
"query": {}
},
"dest": {
"index": "",
"results_field": ""
},
"analysis": {
"outlier_detection": {
"n_neighbors": 1,
"method": {"__one_of": ["lof", "ldof", "distance_knn_nn", "distance_knn"]},
"feature_influence_threshold": 1.0
}
},
"analyzed_fields": {
"__one_of": [
"FIELD_NAME",
[],
{
"includes": {
"__one_of": ["FIELD_NAME", []]
},
"excludes": {
"__one_of": ["FIELD_NAME", []]
}
}
]
},
"model_memory_limit": ""
}
}
}
}
Loading

0 comments on commit 1b164c1

Please sign in to comment.