mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[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:
parent
a5810bad98
commit
39ac92a1d1
149 changed files with 1688 additions and 972 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 + '\'');
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -304,6 +304,9 @@ describe('Url autocomplete', () => {
|
|||
p: function (name, parent) {
|
||||
return new ListComponent(name, ['g1', 'g2'], parent);
|
||||
},
|
||||
getComponent(name) {
|
||||
return this[name];
|
||||
}
|
||||
};
|
||||
|
||||
patternsTest(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.delete_calendar": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/calendars/{calendar_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.delete_calendar_event": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/calendars/{calendar_id}/events/{event_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.delete_calendar_job": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/calendars/{calendar_id}/jobs/{job_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.delete_expired_data": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/_delete_expired_data"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.delete_filter": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/filters/{filter_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"xpack.ml.forecast": {
|
||||
"url_params": {
|
||||
"duration": "",
|
||||
"expires_in": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/anomaly_detectors/{job_id}/_forecast"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.info": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/info"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.post_calendar_events": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/calendars/{calendar_id}/events"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.put_calendar": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/calendars/{calendar_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.put_calendar_job": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/calendars/{calendar_id}/jobs/{job_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.put_filter": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/filters/{filter_id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.validate": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/anomaly_detectors/_validate"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.ml.validate_detector": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/ml/anomaly_detectors/_validate/detector"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.rollup.delete_job": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/rollup/job/{id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"xpack.rollup.get_jobs": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/rollup/job/{id}",
|
||||
"_xpack/rollup/job/"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"xpack.rollup.get_rollup_caps": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/rollup/data/{id}",
|
||||
"_xpack/rollup/data/"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.rollup.put_job": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/rollup/job/{id}"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"xpack.rollup.rollup_search": {
|
||||
"methods": [
|
||||
"GET",
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_rollup_search",
|
||||
"{indices}/{type}/_rollup_search"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.rollup.start_job": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/rollup/job/{id}/_start"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"xpack.rollup.stop_job": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/rollup/job/{id}/_stop"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"xpack.sql.clear_cursor": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/sql/close"
|
||||
],
|
||||
"documentation": "Clear SQL cursor"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"xpack.sql.query": {
|
||||
"url_params": {
|
||||
"format": ""
|
||||
},
|
||||
"methods": [
|
||||
"POST",
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/sql"
|
||||
],
|
||||
"documentation": "Execute SQL"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"xpack.sql.translate": {
|
||||
"methods": [
|
||||
"POST",
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/sql/translate"
|
||||
],
|
||||
"documentation": "Translate SQL into Elasticsearch queries"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"xpack.usage": {
|
||||
"url_params": {
|
||||
"master_timeout": ""
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_xpack/usage"
|
||||
],
|
||||
"documentation": "Retrieve information about xpack features usage"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue