[console] adding generated spec files for xpack endpoints and adjusting code to… (#19928)

* adding generated spec files for xpack endpoints and adjusting code to handle the same override logic

* accounting for non URL documentation values

* fixing issue with incorrect override file

* adding support for unknown parameters in path (assuming they are ids)

* fixing autocomplete for get_categories ml API

* fixing issue with autocomplete for get_overall_buckets

* fixing issue with get_overall_buckets autocomplete

* fixing get_overall_buckets autocomplete issue for reals

* fixing __flag__ in body autocomplete specs

* fixing issue with ml put_datafeed autocomplete

* removing unnecessary overrides for rollup put_job

* fix issue with UrlPatternMatcher

* fixing tests

* fixing typos

* overriding rollup get due to bug in ES specs
This commit is contained in:
Bill McConaghy 2018-06-25 08:44:35 -04:00 committed by GitHub
parent a5810bad98
commit 39ac92a1d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
149 changed files with 1688 additions and 972 deletions

View file

@ -23,11 +23,11 @@ import { readFileSync } from 'fs';
import { merge } from 'lodash';
const extensionSpecFilePaths = [];
export function getSpec() {
const generatedFiles = glob.sync(join(__dirname, 'generated', '*.json'));
const overrideFiles = glob.sync(join(__dirname, 'overrides', '*.json'));
function _getSpec(dirname = __dirname) {
const generatedFiles = glob.sync(join(dirname, 'generated', '*.json'));
const overrideFiles = glob.sync(join(dirname, 'overrides', '*.json'));
const result = generatedFiles.reduce((acc, file) => {
return generatedFiles.reduce((acc, file) => {
const overrideFile = overrideFiles.find(f => basename(f) === basename(file));
const loadedSpec = JSON.parse(readFileSync(file, 'utf8'));
if (overrideFile) {
@ -45,11 +45,11 @@ export function getSpec() {
return { ...acc, ...spec };
}, {});
}
export function getSpec() {
const result = _getSpec();
extensionSpecFilePaths.forEach((extensionSpecFilePath) => {
const extensionFiles = glob.sync(join(extensionSpecFilePath, '*.json'));
extensionFiles.forEach((extensionFile) => {
merge(result, JSON.parse(readFileSync(extensionFile, 'utf8')));
});
merge(result, _getSpec(extensionSpecFilePath));
});
return result;
}

View file

@ -201,7 +201,7 @@ function compileDescription(description, compilingContext) {
function compileParametrizedValue(value, compilingContext, template) {
value = value.substr(1, value.length - 2).toLowerCase();
let component = compilingContext.parametrizedComponentFactories[value];
let component = compilingContext.parametrizedComponentFactories.getComponent(value, true);
if (!component) {
throw new Error('no factory found for \'' + value + '\'');
}

View file

@ -44,7 +44,9 @@ export class UrlPatternMatcher {
['HEAD', 'GET', 'PUT', 'POST', 'DELETE'].forEach((method) => {
this[method] = {
rootComponent: new SharedComponent('ROOT'),
parametrizedComponentFactories: parametrizedComponentFactories || {}
parametrizedComponentFactories: parametrizedComponentFactories || {
getComponent: () => {}
}
};
});
}
@ -87,7 +89,7 @@ export class UrlPatternMatcher {
);
c = new SharedComponent(part);
}
} else if ((c = this[method].parametrizedComponentFactories[part])) {
} else if ((c = this[method].parametrizedComponentFactories.getComponent(part))) {
// c is a f
c = c(part, activeComponent);
} else {

View file

@ -64,7 +64,9 @@ module.controller('SenseController', function SenseController(Private, $scope, $
const position = requests[0].range.end;
position.column = position.column - 1;
const endpoint = getEndpointFromPosition(input, position);
if (endpoint && endpoint.documentation) {
if (endpoint
&& endpoint.documentation
&& endpoint.documentation.indexOf('http') !== -1) {
$scope.documentation = endpoint.documentation.replace('master', DOC_LINK_VERSION);
$scope.$apply();
} else {

View file

@ -32,7 +32,17 @@ import Api from './kb/api';
let ACTIVE_API = new Api();
const isNotAnIndexName = name => name[0] === '_' && name !== '_all';
const idAutocompleteComponentFactory = (name, parent) => {
return new IdAutocompleteComponent(name, parent);
};
const parametrizedComponentFactories = {
getComponent: function (name, parent, provideDefault) {
if (this[name]) {
return this[name];
} else if (provideDefault) {
return idAutocompleteComponentFactory;
}
},
index: function (name, parent) {
if (isNotAnIndexName(name)) return;
return new IndexAutocompleteComponent(name, parent, false);
@ -48,13 +58,13 @@ const parametrizedComponentFactories = {
return new TypeAutocompleteComponent(name, parent, true);
},
id: function (name, parent) {
return new IdAutocompleteComponent(name, parent);
return idAutocompleteComponentFactory(name, parent);
},
task_id: function (name, parent) {
return new IdAutocompleteComponent(name, parent);
return idAutocompleteComponentFactory(name, parent);
},
ids: function (name, parent) {
return new IdAutocompleteComponent(name, parent, true);
return idAutocompleteComponentFactory(name, parent, true);
},
fields: function (name, parent) {
return new FieldAutocompleteComponent(name, parent, true);

View file

@ -304,6 +304,9 @@ describe('Url autocomplete', () => {
p: function (name, parent) {
return new ListComponent(name, ['g1', 'g2'], parent);
},
getComponent(name) {
return this[name];
}
};
patternsTest(

View file

@ -29,7 +29,7 @@ export function consoleExtensions(kibana) {
server.plugins.console.addExtensionSpecFilePath
) {
server.plugins.console.addExtensionSpecFilePath(
join(__dirname, 'spec')
join(__dirname, 'spec/')
);
} else {
console.warn(

View file

@ -0,0 +1,17 @@
{
"xpack.graph.explore": {
"url_params": {
"routing": "",
"timeout": ""
},
"methods": [
"GET",
"POST"
],
"patterns": [
"{indices}/_xpack/graph/_explore",
"{indices}/{type}/_xpack/graph/_explore"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.info": {
"url_params": {
"categories": []
},
"methods": [
"GET"
],
"patterns": [
"_xpack"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.license.delete": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/license"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.license.get": {
"url_params": {
"local": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/license"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.license.get_basic_status": {
"methods": [
"GET"
],
"patterns": [
"_xpack/license/basic_status"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.license.get_trial_status": {
"methods": [
"GET"
],
"patterns": [
"_xpack/license/trial_status"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.license.post": {
"url_params": {
"acknowledge": "__flag__"
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/license"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.license.post_start_basic": {
"url_params": {
"acknowledge": "__flag__"
},
"methods": [
"POST"
],
"patterns": [
"_xpack/license/start_basic"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.license.post_start_trial": {
"url_params": {
"type": "\"trial\"",
"acknowledge": "__flag__"
},
"methods": [
"POST"
],
"patterns": [
"_xpack/license/start_trial"
],
"documentation": "https://www.elastic.co/guide/en/x-pack/current/license-management.html"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.migration.deprecations": {
"methods": [
"GET"
],
"patterns": [
"_xpack/migration/deprecations",
"{indices}/_xpack/migration/deprecations"
],
"documentation": "http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html"
}
}

View file

@ -0,0 +1,22 @@
{
"xpack.migration.get_assistance": {
"url_params": {
"allow_no_indices": "__flag__",
"expand_wildcards": [
"open",
"closed",
"none",
"all"
],
"ignore_unavailable": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/migration/assistance",
"_xpack/migration/assistance/{indices}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-assistance.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.migration.upgrade": {
"url_params": {
"wait_for_completion": "__flag__"
},
"methods": [
"POST"
],
"patterns": [
"_xpack/migration/upgrade/{indices}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-upgrade.html"
}
}

View file

@ -0,0 +1,16 @@
{
"xpack.ml.close_job": {
"url_params": {
"allow_no_jobs": "__flag__",
"force": "__flag__",
"timeout": ""
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/_close"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.delete_calendar": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.delete_calendar_event": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}/events/{event_id}"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.delete_calendar_job": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}/jobs/{job_id}"
]
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.ml.delete_datafeed": {
"url_params": {
"force": "__flag__"
},
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.delete_expired_data": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/_delete_expired_data"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.delete_filter": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/filters/{filter_id}"
]
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.ml.delete_job": {
"url_params": {
"force": "__flag__"
},
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.delete_model_snapshot": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html"
}
}

View file

@ -0,0 +1,18 @@
{
"xpack.ml.flush_job": {
"url_params": {
"calc_interim": "__flag__",
"start": "",
"end": "",
"advance_time": "",
"skip_time": ""
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/_flush"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.ml.forecast": {
"url_params": {
"duration": "",
"expires_in": ""
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/_forecast"
]
}
}

View file

@ -0,0 +1,24 @@
{
"xpack.ml.get_buckets": {
"url_params": {
"expand": "__flag__",
"exclude_interim": "__flag__",
"from": 0,
"size": 0,
"start": "",
"end": "",
"anomaly_score": 0,
"sort": "",
"desc": "__flag__"
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/results/buckets/{timestamp}",
"_xpack/ml/anomaly_detectors/{job_id}/results/buckets"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html"
}
}

View file

@ -0,0 +1,17 @@
{
"xpack.ml.get_calendar_events": {
"url_params": {
"job_id": "",
"start": "",
"end": "",
"from": 0,
"size": 0
},
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}/events"
]
}
}

View file

@ -0,0 +1,16 @@
{
"xpack.ml.get_calendars": {
"url_params": {
"from": 0,
"size": 0
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/calendars",
"_xpack/ml/calendars/{calendar_id}"
]
}
}

View file

@ -0,0 +1,17 @@
{
"xpack.ml.get_categories": {
"url_params": {
"from": 0,
"size": 0
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/results/categories/{category_id}",
"_xpack/ml/anomaly_detectors/{job_id}/results/categories/"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.ml.get_datafeed_stats": {
"url_params": {
"allow_no_datafeeds": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}/_stats",
"_xpack/ml/datafeeds/_stats"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.ml.get_datafeeds": {
"url_params": {
"allow_no_datafeeds": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}",
"_xpack/ml/datafeeds"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.ml.get_filters": {
"url_params": {
"from": 0,
"size": 0
},
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/filters",
"_xpack/ml/filters/{filter_id}"
]
}
}

View file

@ -0,0 +1,22 @@
{
"xpack.ml.get_influencers": {
"url_params": {
"exclude_interim": "__flag__",
"from": 0,
"size": 0,
"start": "",
"end": "",
"influencer_score": 0,
"sort": "",
"desc": "__flag__"
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/results/influencers"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.ml.get_job_stats": {
"url_params": {
"allow_no_jobs": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/anomaly_detectors/_stats",
"_xpack/ml/anomaly_detectors/{job_id}/_stats"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.ml.get_jobs": {
"url_params": {
"allow_no_jobs": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}",
"_xpack/ml/anomaly_detectors"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html"
}
}

View file

@ -0,0 +1,21 @@
{
"xpack.ml.get_model_snapshots": {
"url_params": {
"from": 0,
"size": 0,
"start": "",
"end": "",
"sort": "",
"desc": "__flag__"
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}",
"_xpack/ml/anomaly_detectors/{job_id}/model_snapshots"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html"
}
}

View file

@ -0,0 +1,21 @@
{
"xpack.ml.get_overall_buckets": {
"url_params": {
"top_n": 0,
"bucket_span": "",
"overall_score": 0,
"exclude_interim": "__flag__",
"start": "",
"end": "",
"allow_no_jobs": "__flag__"
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/results/overall_buckets"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html"
}
}

View file

@ -0,0 +1,22 @@
{
"xpack.ml.get_records": {
"url_params": {
"exclude_interim": "__flag__",
"from": 0,
"size": 0,
"start": "",
"end": "",
"record_score": 0,
"sort": "",
"desc": "__flag__"
},
"methods": [
"GET",
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/results/records"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.info": {
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/info"
]
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.open_job": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/_open"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.post_calendar_events": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}/events"
]
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.ml.post_data": {
"url_params": {
"reset_start": "",
"reset_end": ""
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/_data"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.preview_datafeed": {
"methods": [
"GET"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}/_preview"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.put_calendar": {
"methods": [
"PUT"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.put_calendar_job": {
"methods": [
"PUT"
],
"patterns": [
"_xpack/ml/calendars/{calendar_id}/jobs/{job_id}"
]
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.put_datafeed": {
"methods": [
"PUT"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.put_filter": {
"methods": [
"PUT"
],
"patterns": [
"_xpack/ml/filters/{filter_id}"
]
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.put_job": {
"methods": [
"PUT"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.ml.revert_model_snapshot": {
"url_params": {
"delete_intervening_results": "__flag__"
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html"
}
}

View file

@ -0,0 +1,16 @@
{
"xpack.ml.start_datafeed": {
"url_params": {
"start": "",
"end": "",
"timeout": ""
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}/_start"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html"
}
}

View file

@ -0,0 +1,16 @@
{
"xpack.ml.stop_datafeed": {
"url_params": {
"allow_no_datafeeds": "__flag__",
"force": "__flag__",
"timeout": ""
},
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}/_stop"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.update_datafeed": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/datafeeds/{datafeed_id}/_update"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-datafeed.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.update_job": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/_update"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.ml.update_model_snapshot": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.validate": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/_validate"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.ml.validate_detector": {
"methods": [
"POST"
],
"patterns": [
"_xpack/ml/anomaly_detectors/_validate/detector"
]
}
}

View file

@ -0,0 +1,18 @@
{
"xpack.monitoring.bulk": {
"url_params": {
"system_id": "",
"system_api_version": "",
"interval": ""
},
"methods": [
"POST",
"PUT"
],
"patterns": [
"_xpack/monitoring/_bulk",
"_xpack/monitoring/{type}/_bulk"
],
"documentation": "http://www.elastic.co/guide/en/monitoring/current/appendix-api-bulk.html"
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.rollup.delete_job": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/rollup/job/{id}"
]
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.rollup.get_jobs": {
"methods": [
"GET"
],
"patterns": [
"_xpack/rollup/job/{id}",
"_xpack/rollup/job/"
]
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.rollup.get_rollup_caps": {
"methods": [
"GET"
],
"patterns": [
"_xpack/rollup/data/{id}",
"_xpack/rollup/data/"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.rollup.put_job": {
"methods": [
"PUT"
],
"patterns": [
"_xpack/rollup/job/{id}"
]
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.rollup.rollup_search": {
"methods": [
"GET",
"POST"
],
"patterns": [
"{indices}/_rollup_search",
"{indices}/{type}/_rollup_search"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.rollup.start_job": {
"methods": [
"POST"
],
"patterns": [
"_xpack/rollup/job/{id}/_start"
]
}
}

View file

@ -0,0 +1,10 @@
{
"xpack.rollup.stop_job": {
"methods": [
"POST"
],
"patterns": [
"_xpack/rollup/job/{id}/_stop"
]
}
}

View file

@ -1,11 +1,11 @@
{
"_xpack/security/_authenticate": {
"xpack.security.authenticate": {
"methods": [
"GET"
],
"patterns": [
"_xpack/security/_authenticate"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-authenticate.html"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html"
}
}

View file

@ -0,0 +1,20 @@
{
"xpack.security.change_password": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/security/user/{username}/_password",
"_xpack/security/user/_password"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.security.clear_cached_realms": {
"url_params": {
"usernames": []
},
"methods": [
"POST"
],
"patterns": [
"_xpack/security/realm/{realms}/_clear_cache"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.security.clear_cached_roles": {
"methods": [
"POST"
],
"patterns": [
"_xpack/security/role/{name}/_clear_cache"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-clear-role-cache"
}
}

View file

@ -0,0 +1,18 @@
{
"xpack.security.delete_role": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"DELETE"
],
"patterns": [
"_xpack/security/role/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-delete-role"
}
}

View file

@ -0,0 +1,18 @@
{
"xpack.security.delete_role_mapping": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"DELETE"
],
"patterns": [
"_xpack/security/role_mapping/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-delete-role-mapping"
}
}

View file

@ -0,0 +1,18 @@
{
"xpack.security.delete_user": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"DELETE"
],
"patterns": [
"_xpack/security/user/{username}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-delete-user"
}
}

View file

@ -0,0 +1,19 @@
{
"xpack.security.disable_user": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/security/user/{username}/_disable"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-disable-user"
}
}

View file

@ -0,0 +1,19 @@
{
"xpack.security.enable_user": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/security/user/{username}/_enable"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-enable-user"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.security.get_role": {
"methods": [
"GET"
],
"patterns": [
"_xpack/security/role/{name}",
"_xpack/security/role"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-get-role"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.security.get_role_mapping": {
"methods": [
"GET"
],
"patterns": [
"_xpack/security/role_mapping/{name}",
"_xpack/security/role_mapping"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-get-role-mapping"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.security.get_token": {
"methods": [
"POST"
],
"patterns": [
"_xpack/security/oauth2/token"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-get-token"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.security.get_user": {
"methods": [
"GET"
],
"patterns": [
"_xpack/security/user/{username}",
"_xpack/security/user"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-get-user"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.security.invalidate_token": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/security/oauth2/token"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-tokens.html#security-api-invalidate-token"
}
}

View file

@ -0,0 +1,19 @@
{
"xpack.security.put_role": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/security/role/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-roles.html#security-api-put-role"
}
}

View file

@ -0,0 +1,19 @@
{
"xpack.security.put_role_mapping": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/security/role_mapping/{name}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-role-mapping.html#security-api-put-role-mapping"
}
}

View file

@ -0,0 +1,19 @@
{
"xpack.security.put_user": {
"url_params": {
"refresh": [
"true",
"false",
"wait_for"
]
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/security/user/{username}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-users.html#security-api-put-user"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.sql.clear_cursor": {
"methods": [
"POST"
],
"patterns": [
"_xpack/sql/close"
],
"documentation": "Clear SQL cursor"
}
}

View file

@ -0,0 +1,15 @@
{
"xpack.sql.query": {
"url_params": {
"format": ""
},
"methods": [
"POST",
"GET"
],
"patterns": [
"_xpack/sql"
],
"documentation": "Execute SQL"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.sql.translate": {
"methods": [
"POST",
"GET"
],
"patterns": [
"_xpack/sql/translate"
],
"documentation": "Translate SQL into Elasticsearch queries"
}
}

View file

@ -1,11 +1,11 @@
{
"_xpack/ssl/certificates": {
"xpack.ssl.certificates": {
"methods": [
"GET"
],
"patterns": [
"_xpack/ssl/certificates"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-ssl.html"
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html"
}
}

View file

@ -0,0 +1,14 @@
{
"xpack.usage": {
"url_params": {
"master_timeout": ""
},
"methods": [
"GET"
],
"patterns": [
"_xpack/usage"
],
"documentation": "Retrieve information about xpack features usage"
}
}

View file

@ -0,0 +1,13 @@
{
"xpack.watcher.ack_watch": {
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/watcher/watch/{watch_id}/_ack",
"_xpack/watcher/watch/{watch_id}/_ack/{action_id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.watcher.activate_watch": {
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/watcher/watch/{watch_id}/_activate"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html"
}
}

View file

@ -0,0 +1,12 @@
{
"xpack.watcher.deactivate_watch": {
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/watcher/watch/{watch_id}/_deactivate"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.watcher.delete_watch": {
"methods": [
"DELETE"
],
"patterns": [
"_xpack/watcher/watch/{id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html"
}
}

View file

@ -0,0 +1,16 @@
{
"xpack.watcher.execute_watch": {
"url_params": {
"debug": "__flag__"
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/watcher/watch/{id}/_execute",
"_xpack/watcher/watch/_execute"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.watcher.get_watch": {
"methods": [
"GET"
],
"patterns": [
"_xpack/watcher/watch/{id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html"
}
}

View file

@ -0,0 +1,16 @@
{
"xpack.watcher.put_watch": {
"url_params": {
"active": "__flag__",
"version": ""
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"_xpack/watcher/watch/{id}"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html"
}
}

View file

@ -0,0 +1,11 @@
{
"xpack.watcher.start": {
"methods": [
"POST"
],
"patterns": [
"_xpack/watcher/_start"
],
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html"
}
}

View file

@ -0,0 +1,27 @@
{
"xpack.watcher.stats": {
"url_params": {
"metric": [
"_all",
"queued_watches",
"pending_watches"
],
"emit_stacktraces": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_xpack/watcher/stats",
"_xpack/watcher/stats/{metrics}"
],
"url_components": {
"metrics": [
"_all",
"pending_watches",
"queued_watches"
]
},
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html"
}
}

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