API generation
This commit is contained in:
218
api/api/cat.js
218
api/api/cat.js
@ -23,8 +23,8 @@
|
||||
/* eslint no-unused-vars: 0 */
|
||||
|
||||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
|
||||
const acceptedQuerystring = ['format', 'local', 'h', 'help', 's', 'v', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'bytes', 'master_timeout', 'fields', 'time', 'ts', 'health', 'pri', 'include_unloaded_segments', 'full_id', 'include_bootstrap', 'active_only', 'detailed', 'index', 'ignore_unavailable', 'nodes', 'actions', 'parent_task_id', 'allow_no_match', 'allow_no_datafeeds', 'allow_no_jobs', 'from', 'size']
|
||||
const snakeCase = { expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', includeUnloadedSegments: 'include_unloaded_segments', fullId: 'full_id', includeBootstrap: 'include_bootstrap', activeOnly: 'active_only', ignoreUnavailable: 'ignore_unavailable', parentTaskId: 'parent_task_id', allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds', allowNoJobs: 'allow_no_jobs' }
|
||||
const acceptedQuerystring = ['format', 'local', 'h', 'help', 's', 'v', 'expand_wildcards', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'bytes', 'master_timeout', 'fields', 'time', 'ts', 'health', 'pri', 'include_unloaded_segments', 'allow_no_match', 'allow_no_datafeeds', 'allow_no_jobs', 'from', 'size', 'full_id', 'include_bootstrap', 'active_only', 'detailed', 'index', 'ignore_unavailable', 'nodes', 'actions', 'parent_task_id']
|
||||
const snakeCase = { expandWildcards: 'expand_wildcards', errorTrace: 'error_trace', filterPath: 'filter_path', masterTimeout: 'master_timeout', includeUnloadedSegments: 'include_unloaded_segments', allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds', allowNoJobs: 'allow_no_jobs', fullId: 'full_id', includeBootstrap: 'include_bootstrap', activeOnly: 'active_only', ignoreUnavailable: 'ignore_unavailable', parentTaskId: 'parent_task_id' }
|
||||
|
||||
function CatApi (transport, ConfigurationError) {
|
||||
this.transport = transport
|
||||
@ -224,6 +224,110 @@ CatApi.prototype.master = function catMasterApi (params, options, callback) {
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlDataFrameAnalytics = function catMlDataFrameAnalyticsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((id) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'data_frame' + '/' + 'analytics'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlDatafeeds = function catMlDatafeedsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((datafeed_id || datafeedId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'datafeeds'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlJobs = function catMlJobsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, jobId, job_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((job_id || jobId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'anomaly_detectors'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlTrainedModels = function catMlTrainedModelsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, modelId, model_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((model_id || modelId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'trained_models'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.nodeattrs = function catNodeattrsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -506,110 +610,6 @@ CatApi.prototype.threadPool = function catThreadPoolApi (params, options, callba
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlDataFrameAnalytics = function catMlDataFrameAnalyticsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((id) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'data_frame' + '/' + 'analytics'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlDatafeeds = function catMlDatafeedsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((datafeed_id || datafeedId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'datafeeds'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlJobs = function catMlJobsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, jobId, job_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((job_id || jobId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'anomaly_detectors'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.mlTrainedModels = function catMlTrainedModelsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, modelId, model_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((model_id || modelId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'trained_models' + '/' + encodeURIComponent(model_id || modelId)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_cat' + '/' + 'ml' + '/' + 'trained_models'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
CatApi.prototype.transforms = function catTransformsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -637,12 +637,12 @@ CatApi.prototype.transforms = function catTransformsApi (params, options, callba
|
||||
}
|
||||
|
||||
Object.defineProperties(CatApi.prototype, {
|
||||
pending_tasks: { get () { return this.pendingTasks } },
|
||||
thread_pool: { get () { return this.threadPool } },
|
||||
ml_data_frame_analytics: { get () { return this.mlDataFrameAnalytics } },
|
||||
ml_datafeeds: { get () { return this.mlDatafeeds } },
|
||||
ml_jobs: { get () { return this.mlJobs } },
|
||||
ml_trained_models: { get () { return this.mlTrainedModels } }
|
||||
ml_trained_models: { get () { return this.mlTrainedModels } },
|
||||
pending_tasks: { get () { return this.pendingTasks } },
|
||||
thread_pool: { get () { return this.threadPool } }
|
||||
})
|
||||
|
||||
module.exports = CatApi
|
||||
|
||||
@ -211,6 +211,59 @@ IndicesApi.prototype.create = function indicesCreateApi (params, options, callba
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.createDataStream = function indicesCreateDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'PUT'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.dataStreamsStats = function indicesDataStreamsStatsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((name) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name) + '/' + '_stats'
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream' + '/' + '_stats'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.delete = function indicesDeleteApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -280,6 +333,33 @@ IndicesApi.prototype.deleteAlias = function indicesDeleteAliasApi (params, optio
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.deleteDataStream = function indicesDeleteDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'DELETE'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.deleteIndexTemplate = function indicesDeleteIndexTemplateApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -536,6 +616,33 @@ IndicesApi.prototype.forcemerge = function indicesForcemergeApi (params, options
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.freeze = function indicesFreezeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_freeze'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.get = function indicesGetApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -595,6 +702,32 @@ IndicesApi.prototype.getAlias = function indicesGetAliasApi (params, options, ca
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.getDataStream = function indicesGetDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((name) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.getFieldMapping = function indicesGetFieldMappingApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -737,6 +870,33 @@ IndicesApi.prototype.getTemplate = function indicesGetTemplateApi (params, optio
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.migrateToDataStream = function indicesMigrateToDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + '_data_stream' + '/' + '_migrate' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.open = function indicesOpenApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -764,6 +924,33 @@ IndicesApi.prototype.open = function indicesOpenApi (params, options, callback)
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.promoteDataStream = function indicesPromoteDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + '_data_stream' + '/' + '_promote' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.putAlias = function indicesPutAliasApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -983,6 +1170,33 @@ IndicesApi.prototype.refresh = function indicesRefreshApi (params, options, call
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.reloadSearchAnalyzers = function indicesReloadSearchAnalyzersApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = body == null ? 'GET' : 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_reload_search_analyzers'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.resolveIndex = function indicesResolveIndexApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -1259,6 +1473,33 @@ IndicesApi.prototype.stats = function indicesStatsApi (params, options, callback
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.unfreeze = function indicesUnfreezeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_unfreeze'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.updateAliases = function indicesUpdateAliasesApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -1321,251 +1562,13 @@ IndicesApi.prototype.validateQuery = function indicesValidateQueryApi (params, o
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.createDataStream = function indicesCreateDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'PUT'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.dataStreamsStats = function indicesDataStreamsStatsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((name) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name) + '/' + '_stats'
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream' + '/' + '_stats'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.deleteDataStream = function indicesDeleteDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'DELETE'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.freeze = function indicesFreezeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_freeze'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.getDataStream = function indicesGetDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((name) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream' + '/' + encodeURIComponent(name)
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_data_stream'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.migrateToDataStream = function indicesMigrateToDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + '_data_stream' + '/' + '_migrate' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.promoteDataStream = function indicesPromoteDataStreamApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.name == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: name')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, name, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + '_data_stream' + '/' + '_promote' + '/' + encodeURIComponent(name)
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.reloadSearchAnalyzers = function indicesReloadSearchAnalyzersApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = body == null ? 'GET' : 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_reload_search_analyzers'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IndicesApi.prototype.unfreeze = function indicesUnfreezeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.index == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: index')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_unfreeze'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
Object.defineProperties(IndicesApi.prototype, {
|
||||
add_block: { get () { return this.addBlock } },
|
||||
clear_cache: { get () { return this.clearCache } },
|
||||
create_data_stream: { get () { return this.createDataStream } },
|
||||
data_streams_stats: { get () { return this.dataStreamsStats } },
|
||||
delete_alias: { get () { return this.deleteAlias } },
|
||||
delete_data_stream: { get () { return this.deleteDataStream } },
|
||||
delete_index_template: { get () { return this.deleteIndexTemplate } },
|
||||
delete_template: { get () { return this.deleteTemplate } },
|
||||
exists_alias: { get () { return this.existsAlias } },
|
||||
@ -1573,29 +1576,26 @@ Object.defineProperties(IndicesApi.prototype, {
|
||||
exists_template: { get () { return this.existsTemplate } },
|
||||
exists_type: { get () { return this.existsType } },
|
||||
get_alias: { get () { return this.getAlias } },
|
||||
get_data_stream: { get () { return this.getDataStream } },
|
||||
get_field_mapping: { get () { return this.getFieldMapping } },
|
||||
get_index_template: { get () { return this.getIndexTemplate } },
|
||||
get_mapping: { get () { return this.getMapping } },
|
||||
get_settings: { get () { return this.getSettings } },
|
||||
get_template: { get () { return this.getTemplate } },
|
||||
migrate_to_data_stream: { get () { return this.migrateToDataStream } },
|
||||
promote_data_stream: { get () { return this.promoteDataStream } },
|
||||
put_alias: { get () { return this.putAlias } },
|
||||
put_index_template: { get () { return this.putIndexTemplate } },
|
||||
put_mapping: { get () { return this.putMapping } },
|
||||
put_settings: { get () { return this.putSettings } },
|
||||
put_template: { get () { return this.putTemplate } },
|
||||
reload_search_analyzers: { get () { return this.reloadSearchAnalyzers } },
|
||||
resolve_index: { get () { return this.resolveIndex } },
|
||||
shard_stores: { get () { return this.shardStores } },
|
||||
simulate_index_template: { get () { return this.simulateIndexTemplate } },
|
||||
simulate_template: { get () { return this.simulateTemplate } },
|
||||
update_aliases: { get () { return this.updateAliases } },
|
||||
validate_query: { get () { return this.validateQuery } },
|
||||
create_data_stream: { get () { return this.createDataStream } },
|
||||
data_streams_stats: { get () { return this.dataStreamsStats } },
|
||||
delete_data_stream: { get () { return this.deleteDataStream } },
|
||||
get_data_stream: { get () { return this.getDataStream } },
|
||||
migrate_to_data_stream: { get () { return this.migrateToDataStream } },
|
||||
promote_data_stream: { get () { return this.promoteDataStream } },
|
||||
reload_search_analyzers: { get () { return this.reloadSearchAnalyzers } }
|
||||
validate_query: { get () { return this.validateQuery } }
|
||||
})
|
||||
|
||||
module.exports = IndicesApi
|
||||
|
||||
@ -58,6 +58,27 @@ IngestApi.prototype.deletePipeline = function ingestDeletePipelineApi (params, o
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IngestApi.prototype.geoIpStats = function ingestGeoIpStatsApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_ingest' + '/' + 'geoip' + '/' + 'stats'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
IngestApi.prototype.getPipeline = function ingestGetPipelineApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
@ -170,6 +191,7 @@ IngestApi.prototype.simulate = function ingestSimulateApi (params, options, call
|
||||
|
||||
Object.defineProperties(IngestApi.prototype, {
|
||||
delete_pipeline: { get () { return this.deletePipeline } },
|
||||
geo_ip_stats: { get () { return this.geoIpStats } },
|
||||
get_pipeline: { get () { return this.getPipeline } },
|
||||
processor_grok: { get () { return this.processorGrok } },
|
||||
put_pipeline: { get () { return this.putPipeline } }
|
||||
|
||||
@ -1187,24 +1187,23 @@ MlApi.prototype.previewDataFrameAnalytics = function mlPreviewDataFrameAnalytics
|
||||
MlApi.prototype.previewDatafeed = function mlPreviewDatafeedApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.datafeed_id == null && params.datafeedId == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, datafeedId, datafeed_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_preview'
|
||||
if ((datafeed_id || datafeedId) != null) {
|
||||
if (method == null) method = body == null ? 'GET' : 'POST'
|
||||
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_preview'
|
||||
} else {
|
||||
if (method == null) method = body == null ? 'GET' : 'POST'
|
||||
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + '_preview'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
|
||||
124
api/api/shutdown.js
Normal file
124
api/api/shutdown.js
Normal file
@ -0,0 +1,124 @@
|
||||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
|
||||
/* eslint camelcase: 0 */
|
||||
/* eslint no-unused-vars: 0 */
|
||||
|
||||
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
|
||||
const acceptedQuerystring = ['pretty', 'human', 'error_trace', 'source', 'filter_path']
|
||||
const snakeCase = { errorTrace: 'error_trace', filterPath: 'filter_path' }
|
||||
|
||||
function ShutdownApi (transport, ConfigurationError) {
|
||||
this.transport = transport
|
||||
this[kConfigurationError] = ConfigurationError
|
||||
}
|
||||
|
||||
ShutdownApi.prototype.deleteNode = function shutdownDeleteNodeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.node_id == null && params.nodeId == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: node_id or nodeId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, nodeId, node_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'DELETE'
|
||||
path = '/' + '_nodes' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'shutdown'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
ShutdownApi.prototype.getNode = function shutdownGetNodeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
let { method, body, nodeId, node_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if ((node_id || nodeId) != null) {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_nodes' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'shutdown'
|
||||
} else {
|
||||
if (method == null) method = 'GET'
|
||||
path = '/' + '_nodes' + '/' + 'shutdown'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: null,
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
ShutdownApi.prototype.putNode = function shutdownPutNodeApi (params, options, callback) {
|
||||
;[params, options, callback] = normalizeArguments(params, options, callback)
|
||||
|
||||
// check required parameters
|
||||
if (params.node_id == null && params.nodeId == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: node_id or nodeId')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
if (params.body == null) {
|
||||
const err = new this[kConfigurationError]('Missing required parameter: body')
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
let { method, body, nodeId, node_id, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
||||
|
||||
let path = ''
|
||||
if (method == null) method = 'PUT'
|
||||
path = '/' + '_nodes' + '/' + encodeURIComponent(node_id || nodeId) + '/' + 'shutdown'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
return this.transport.request(request, options, callback)
|
||||
}
|
||||
|
||||
Object.defineProperties(ShutdownApi.prototype, {
|
||||
delete_node: { get () { return this.deleteNode } },
|
||||
get_node: { get () { return this.getNode } },
|
||||
put_node: { get () { return this.putNode } }
|
||||
})
|
||||
|
||||
module.exports = ShutdownApi
|
||||
275
api/index.js
275
api/index.js
@ -19,9 +19,13 @@
|
||||
|
||||
'use strict'
|
||||
|
||||
const AsyncSearchApi = require('./api/async_search')
|
||||
const AutoscalingApi = require('./api/autoscaling')
|
||||
const bulkApi = require('./api/bulk')
|
||||
const CatApi = require('./api/cat')
|
||||
const CcrApi = require('./api/ccr')
|
||||
const clearScrollApi = require('./api/clear_scroll')
|
||||
const closePointInTimeApi = require('./api/close_point_in_time')
|
||||
const ClusterApi = require('./api/cluster')
|
||||
const countApi = require('./api/count')
|
||||
const createApi = require('./api/create')
|
||||
@ -30,6 +34,8 @@ const deleteApi = require('./api/delete')
|
||||
const deleteByQueryApi = require('./api/delete_by_query')
|
||||
const deleteByQueryRethrottleApi = require('./api/delete_by_query_rethrottle')
|
||||
const deleteScriptApi = require('./api/delete_script')
|
||||
const EnrichApi = require('./api/enrich')
|
||||
const EqlApi = require('./api/eql')
|
||||
const existsApi = require('./api/exists')
|
||||
const existsSourceApi = require('./api/exists_source')
|
||||
const explainApi = require('./api/explain')
|
||||
@ -40,85 +46,81 @@ const getScriptApi = require('./api/get_script')
|
||||
const getScriptContextApi = require('./api/get_script_context')
|
||||
const getScriptLanguagesApi = require('./api/get_script_languages')
|
||||
const getSourceApi = require('./api/get_source')
|
||||
const GraphApi = require('./api/graph')
|
||||
const IlmApi = require('./api/ilm')
|
||||
const indexApi = require('./api/index')
|
||||
const IndicesApi = require('./api/indices')
|
||||
const infoApi = require('./api/info')
|
||||
const IngestApi = require('./api/ingest')
|
||||
const LicenseApi = require('./api/license')
|
||||
const LogstashApi = require('./api/logstash')
|
||||
const mgetApi = require('./api/mget')
|
||||
const MigrationApi = require('./api/migration')
|
||||
const MlApi = require('./api/ml')
|
||||
const MonitoringApi = require('./api/monitoring')
|
||||
const msearchApi = require('./api/msearch')
|
||||
const msearchTemplateApi = require('./api/msearch_template')
|
||||
const mtermvectorsApi = require('./api/mtermvectors')
|
||||
const NodesApi = require('./api/nodes')
|
||||
const openPointInTimeApi = require('./api/open_point_in_time')
|
||||
const pingApi = require('./api/ping')
|
||||
const putScriptApi = require('./api/put_script')
|
||||
const rankEvalApi = require('./api/rank_eval')
|
||||
const reindexApi = require('./api/reindex')
|
||||
const reindexRethrottleApi = require('./api/reindex_rethrottle')
|
||||
const renderSearchTemplateApi = require('./api/render_search_template')
|
||||
const RollupApi = require('./api/rollup')
|
||||
const scriptsPainlessExecuteApi = require('./api/scripts_painless_execute')
|
||||
const scrollApi = require('./api/scroll')
|
||||
const searchApi = require('./api/search')
|
||||
const searchShardsApi = require('./api/search_shards')
|
||||
const searchTemplateApi = require('./api/search_template')
|
||||
const SearchableSnapshotsApi = require('./api/searchable_snapshots')
|
||||
const SecurityApi = require('./api/security')
|
||||
const ShutdownApi = require('./api/shutdown')
|
||||
const SlmApi = require('./api/slm')
|
||||
const SnapshotApi = require('./api/snapshot')
|
||||
const SqlApi = require('./api/sql')
|
||||
const SslApi = require('./api/ssl')
|
||||
const TasksApi = require('./api/tasks')
|
||||
const termvectorsApi = require('./api/termvectors')
|
||||
const TextStructureApi = require('./api/text_structure')
|
||||
const TransformApi = require('./api/transform')
|
||||
const updateApi = require('./api/update')
|
||||
const updateByQueryApi = require('./api/update_by_query')
|
||||
const updateByQueryRethrottleApi = require('./api/update_by_query_rethrottle')
|
||||
const AsyncSearchApi = require('./api/async_search')
|
||||
const AutoscalingApi = require('./api/autoscaling')
|
||||
const CcrApi = require('./api/ccr')
|
||||
const closePointInTimeApi = require('./api/close_point_in_time')
|
||||
const EnrichApi = require('./api/enrich')
|
||||
const EqlApi = require('./api/eql')
|
||||
const GraphApi = require('./api/graph')
|
||||
const IlmApi = require('./api/ilm')
|
||||
const LicenseApi = require('./api/license')
|
||||
const LogstashApi = require('./api/logstash')
|
||||
const MigrationApi = require('./api/migration')
|
||||
const MlApi = require('./api/ml')
|
||||
const MonitoringApi = require('./api/monitoring')
|
||||
const openPointInTimeApi = require('./api/open_point_in_time')
|
||||
const RollupApi = require('./api/rollup')
|
||||
const SearchableSnapshotsApi = require('./api/searchable_snapshots')
|
||||
const SecurityApi = require('./api/security')
|
||||
const SlmApi = require('./api/slm')
|
||||
const SqlApi = require('./api/sql')
|
||||
const SslApi = require('./api/ssl')
|
||||
const TextStructureApi = require('./api/text_structure')
|
||||
const TransformApi = require('./api/transform')
|
||||
const WatcherApi = require('./api/watcher')
|
||||
const XpackApi = require('./api/xpack')
|
||||
|
||||
const { kConfigurationError } = require('./utils')
|
||||
const kCat = Symbol('Cat')
|
||||
const kCluster = Symbol('Cluster')
|
||||
const kDanglingIndices = Symbol('DanglingIndices')
|
||||
const kFeatures = Symbol('Features')
|
||||
const kIndices = Symbol('Indices')
|
||||
const kIngest = Symbol('Ingest')
|
||||
const kNodes = Symbol('Nodes')
|
||||
const kSnapshot = Symbol('Snapshot')
|
||||
const kTasks = Symbol('Tasks')
|
||||
const kAsyncSearch = Symbol('AsyncSearch')
|
||||
const kAutoscaling = Symbol('Autoscaling')
|
||||
const kCat = Symbol('Cat')
|
||||
const kCcr = Symbol('Ccr')
|
||||
const kCluster = Symbol('Cluster')
|
||||
const kDanglingIndices = Symbol('DanglingIndices')
|
||||
const kEnrich = Symbol('Enrich')
|
||||
const kEql = Symbol('Eql')
|
||||
const kFeatures = Symbol('Features')
|
||||
const kGraph = Symbol('Graph')
|
||||
const kIlm = Symbol('Ilm')
|
||||
const kIndices = Symbol('Indices')
|
||||
const kIngest = Symbol('Ingest')
|
||||
const kLicense = Symbol('License')
|
||||
const kLogstash = Symbol('Logstash')
|
||||
const kMigration = Symbol('Migration')
|
||||
const kMl = Symbol('Ml')
|
||||
const kMonitoring = Symbol('Monitoring')
|
||||
const kNodes = Symbol('Nodes')
|
||||
const kRollup = Symbol('Rollup')
|
||||
const kSearchableSnapshots = Symbol('SearchableSnapshots')
|
||||
const kSecurity = Symbol('Security')
|
||||
const kShutdown = Symbol('Shutdown')
|
||||
const kSlm = Symbol('Slm')
|
||||
const kSnapshot = Symbol('Snapshot')
|
||||
const kSql = Symbol('Sql')
|
||||
const kSsl = Symbol('Ssl')
|
||||
const kTasks = Symbol('Tasks')
|
||||
const kTextStructure = Symbol('TextStructure')
|
||||
const kTransform = Symbol('Transform')
|
||||
const kWatcher = Symbol('Watcher')
|
||||
@ -126,33 +128,34 @@ const kXpack = Symbol('Xpack')
|
||||
|
||||
function ESAPI (opts) {
|
||||
this[kConfigurationError] = opts.ConfigurationError
|
||||
this[kCat] = null
|
||||
this[kCluster] = null
|
||||
this[kDanglingIndices] = null
|
||||
this[kFeatures] = null
|
||||
this[kIndices] = null
|
||||
this[kIngest] = null
|
||||
this[kNodes] = null
|
||||
this[kSnapshot] = null
|
||||
this[kTasks] = null
|
||||
this[kAsyncSearch] = null
|
||||
this[kAutoscaling] = null
|
||||
this[kCat] = null
|
||||
this[kCcr] = null
|
||||
this[kCluster] = null
|
||||
this[kDanglingIndices] = null
|
||||
this[kEnrich] = null
|
||||
this[kEql] = null
|
||||
this[kFeatures] = null
|
||||
this[kGraph] = null
|
||||
this[kIlm] = null
|
||||
this[kIndices] = null
|
||||
this[kIngest] = null
|
||||
this[kLicense] = null
|
||||
this[kLogstash] = null
|
||||
this[kMigration] = null
|
||||
this[kMl] = null
|
||||
this[kMonitoring] = null
|
||||
this[kNodes] = null
|
||||
this[kRollup] = null
|
||||
this[kSearchableSnapshots] = null
|
||||
this[kSecurity] = null
|
||||
this[kShutdown] = null
|
||||
this[kSlm] = null
|
||||
this[kSnapshot] = null
|
||||
this[kSql] = null
|
||||
this[kSsl] = null
|
||||
this[kTasks] = null
|
||||
this[kTextStructure] = null
|
||||
this[kTransform] = null
|
||||
this[kWatcher] = null
|
||||
@ -161,6 +164,7 @@ function ESAPI (opts) {
|
||||
|
||||
ESAPI.prototype.bulk = bulkApi
|
||||
ESAPI.prototype.clearScroll = clearScrollApi
|
||||
ESAPI.prototype.closePointInTime = closePointInTimeApi
|
||||
ESAPI.prototype.count = countApi
|
||||
ESAPI.prototype.create = createApi
|
||||
ESAPI.prototype.delete = deleteApi
|
||||
@ -182,6 +186,7 @@ ESAPI.prototype.mget = mgetApi
|
||||
ESAPI.prototype.msearch = msearchApi
|
||||
ESAPI.prototype.msearchTemplate = msearchTemplateApi
|
||||
ESAPI.prototype.mtermvectors = mtermvectorsApi
|
||||
ESAPI.prototype.openPointInTime = openPointInTimeApi
|
||||
ESAPI.prototype.ping = pingApi
|
||||
ESAPI.prototype.putScript = putScriptApi
|
||||
ESAPI.prototype.rankEval = rankEvalApi
|
||||
@ -197,10 +202,25 @@ ESAPI.prototype.termvectors = termvectorsApi
|
||||
ESAPI.prototype.update = updateApi
|
||||
ESAPI.prototype.updateByQuery = updateByQueryApi
|
||||
ESAPI.prototype.updateByQueryRethrottle = updateByQueryRethrottleApi
|
||||
ESAPI.prototype.closePointInTime = closePointInTimeApi
|
||||
ESAPI.prototype.openPointInTime = openPointInTimeApi
|
||||
|
||||
Object.defineProperties(ESAPI.prototype, {
|
||||
asyncSearch: {
|
||||
get () {
|
||||
if (this[kAsyncSearch] === null) {
|
||||
this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kAsyncSearch]
|
||||
}
|
||||
},
|
||||
async_search: { get () { return this.asyncSearch } },
|
||||
autoscaling: {
|
||||
get () {
|
||||
if (this[kAutoscaling] === null) {
|
||||
this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kAutoscaling]
|
||||
}
|
||||
},
|
||||
cat: {
|
||||
get () {
|
||||
if (this[kCat] === null) {
|
||||
@ -209,7 +229,16 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kCat]
|
||||
}
|
||||
},
|
||||
ccr: {
|
||||
get () {
|
||||
if (this[kCcr] === null) {
|
||||
this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kCcr]
|
||||
}
|
||||
},
|
||||
clear_scroll: { get () { return this.clearScroll } },
|
||||
close_point_in_time: { get () { return this.closePointInTime } },
|
||||
cluster: {
|
||||
get () {
|
||||
if (this[kCluster] === null) {
|
||||
@ -230,96 +259,6 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
delete_by_query: { get () { return this.deleteByQuery } },
|
||||
delete_by_query_rethrottle: { get () { return this.deleteByQueryRethrottle } },
|
||||
delete_script: { get () { return this.deleteScript } },
|
||||
exists_source: { get () { return this.existsSource } },
|
||||
features: {
|
||||
get () {
|
||||
if (this[kFeatures] === null) {
|
||||
this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kFeatures]
|
||||
}
|
||||
},
|
||||
field_caps: { get () { return this.fieldCaps } },
|
||||
get_script: { get () { return this.getScript } },
|
||||
get_script_context: { get () { return this.getScriptContext } },
|
||||
get_script_languages: { get () { return this.getScriptLanguages } },
|
||||
get_source: { get () { return this.getSource } },
|
||||
indices: {
|
||||
get () {
|
||||
if (this[kIndices] === null) {
|
||||
this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kIndices]
|
||||
}
|
||||
},
|
||||
ingest: {
|
||||
get () {
|
||||
if (this[kIngest] === null) {
|
||||
this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kIngest]
|
||||
}
|
||||
},
|
||||
msearch_template: { get () { return this.msearchTemplate } },
|
||||
nodes: {
|
||||
get () {
|
||||
if (this[kNodes] === null) {
|
||||
this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kNodes]
|
||||
}
|
||||
},
|
||||
put_script: { get () { return this.putScript } },
|
||||
rank_eval: { get () { return this.rankEval } },
|
||||
reindex_rethrottle: { get () { return this.reindexRethrottle } },
|
||||
render_search_template: { get () { return this.renderSearchTemplate } },
|
||||
scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
|
||||
search_shards: { get () { return this.searchShards } },
|
||||
search_template: { get () { return this.searchTemplate } },
|
||||
snapshot: {
|
||||
get () {
|
||||
if (this[kSnapshot] === null) {
|
||||
this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kSnapshot]
|
||||
}
|
||||
},
|
||||
tasks: {
|
||||
get () {
|
||||
if (this[kTasks] === null) {
|
||||
this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kTasks]
|
||||
}
|
||||
},
|
||||
update_by_query: { get () { return this.updateByQuery } },
|
||||
update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
|
||||
asyncSearch: {
|
||||
get () {
|
||||
if (this[kAsyncSearch] === null) {
|
||||
this[kAsyncSearch] = new AsyncSearchApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kAsyncSearch]
|
||||
}
|
||||
},
|
||||
async_search: { get () { return this.asyncSearch } },
|
||||
autoscaling: {
|
||||
get () {
|
||||
if (this[kAutoscaling] === null) {
|
||||
this[kAutoscaling] = new AutoscalingApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kAutoscaling]
|
||||
}
|
||||
},
|
||||
ccr: {
|
||||
get () {
|
||||
if (this[kCcr] === null) {
|
||||
this[kCcr] = new CcrApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kCcr]
|
||||
}
|
||||
},
|
||||
close_point_in_time: { get () { return this.closePointInTime } },
|
||||
enrich: {
|
||||
get () {
|
||||
if (this[kEnrich] === null) {
|
||||
@ -336,6 +275,20 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kEql]
|
||||
}
|
||||
},
|
||||
exists_source: { get () { return this.existsSource } },
|
||||
features: {
|
||||
get () {
|
||||
if (this[kFeatures] === null) {
|
||||
this[kFeatures] = new FeaturesApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kFeatures]
|
||||
}
|
||||
},
|
||||
field_caps: { get () { return this.fieldCaps } },
|
||||
get_script: { get () { return this.getScript } },
|
||||
get_script_context: { get () { return this.getScriptContext } },
|
||||
get_script_languages: { get () { return this.getScriptLanguages } },
|
||||
get_source: { get () { return this.getSource } },
|
||||
graph: {
|
||||
get () {
|
||||
if (this[kGraph] === null) {
|
||||
@ -352,6 +305,22 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kIlm]
|
||||
}
|
||||
},
|
||||
indices: {
|
||||
get () {
|
||||
if (this[kIndices] === null) {
|
||||
this[kIndices] = new IndicesApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kIndices]
|
||||
}
|
||||
},
|
||||
ingest: {
|
||||
get () {
|
||||
if (this[kIngest] === null) {
|
||||
this[kIngest] = new IngestApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kIngest]
|
||||
}
|
||||
},
|
||||
license: {
|
||||
get () {
|
||||
if (this[kLicense] === null) {
|
||||
@ -392,7 +361,20 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kMonitoring]
|
||||
}
|
||||
},
|
||||
msearch_template: { get () { return this.msearchTemplate } },
|
||||
nodes: {
|
||||
get () {
|
||||
if (this[kNodes] === null) {
|
||||
this[kNodes] = new NodesApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kNodes]
|
||||
}
|
||||
},
|
||||
open_point_in_time: { get () { return this.openPointInTime } },
|
||||
put_script: { get () { return this.putScript } },
|
||||
rank_eval: { get () { return this.rankEval } },
|
||||
reindex_rethrottle: { get () { return this.reindexRethrottle } },
|
||||
render_search_template: { get () { return this.renderSearchTemplate } },
|
||||
rollup: {
|
||||
get () {
|
||||
if (this[kRollup] === null) {
|
||||
@ -401,6 +383,9 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kRollup]
|
||||
}
|
||||
},
|
||||
scripts_painless_execute: { get () { return this.scriptsPainlessExecute } },
|
||||
search_shards: { get () { return this.searchShards } },
|
||||
search_template: { get () { return this.searchTemplate } },
|
||||
searchableSnapshots: {
|
||||
get () {
|
||||
if (this[kSearchableSnapshots] === null) {
|
||||
@ -418,6 +403,14 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kSecurity]
|
||||
}
|
||||
},
|
||||
shutdown: {
|
||||
get () {
|
||||
if (this[kShutdown] === null) {
|
||||
this[kShutdown] = new ShutdownApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kShutdown]
|
||||
}
|
||||
},
|
||||
slm: {
|
||||
get () {
|
||||
if (this[kSlm] === null) {
|
||||
@ -426,6 +419,14 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kSlm]
|
||||
}
|
||||
},
|
||||
snapshot: {
|
||||
get () {
|
||||
if (this[kSnapshot] === null) {
|
||||
this[kSnapshot] = new SnapshotApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kSnapshot]
|
||||
}
|
||||
},
|
||||
sql: {
|
||||
get () {
|
||||
if (this[kSql] === null) {
|
||||
@ -442,6 +443,14 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kSsl]
|
||||
}
|
||||
},
|
||||
tasks: {
|
||||
get () {
|
||||
if (this[kTasks] === null) {
|
||||
this[kTasks] = new TasksApi(this.transport, this[kConfigurationError])
|
||||
}
|
||||
return this[kTasks]
|
||||
}
|
||||
},
|
||||
textStructure: {
|
||||
get () {
|
||||
if (this[kTextStructure] === null) {
|
||||
@ -459,6 +468,8 @@ Object.defineProperties(ESAPI.prototype, {
|
||||
return this[kTransform]
|
||||
}
|
||||
},
|
||||
update_by_query: { get () { return this.updateByQuery } },
|
||||
update_by_query_rethrottle: { get () { return this.updateByQueryRethrottle } },
|
||||
watcher: {
|
||||
get () {
|
||||
if (this[kWatcher] === null) {
|
||||
|
||||
18
api/kibana.d.ts
vendored
18
api/kibana.d.ts
vendored
@ -191,6 +191,7 @@ interface KibanaClient {
|
||||
explain<TDocument = unknown, TContext = unknown>(params: T.ExplainRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.ExplainResponse<TDocument>, TContext>>
|
||||
features: {
|
||||
getFeatures<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
resetFeatures<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
}
|
||||
fieldCaps<TContext = unknown>(params?: T.FieldCapabilitiesRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.FieldCapabilitiesResponse, TContext>>
|
||||
get<TDocument = unknown, TContext = unknown>(params: T.GetRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetResponse<TDocument>, TContext>>
|
||||
@ -221,7 +222,7 @@ interface KibanaClient {
|
||||
clone<TContext = unknown>(params: T.CloneIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.CloneIndexResponse, TContext>>
|
||||
close<TContext = unknown>(params: T.CloseIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.CloseIndexResponse, TContext>>
|
||||
create<TContext = unknown>(params: T.CreateIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.CreateIndexResponse, TContext>>
|
||||
createDataStream<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
createDataStream<TContext = unknown>(params: T.IndicesCreateDataStreamRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.IndicesCreateDataStreamResponse, TContext>>
|
||||
dataStreamsStats<TContext = unknown>(params?: T.IndicesDataStreamsStatsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.IndicesDataStreamsStatsResponse, TContext>>
|
||||
delete<TContext = unknown>(params: T.DeleteIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteIndexResponse, TContext>>
|
||||
deleteAlias<TContext = unknown>(params: T.DeleteAliasRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteAliasResponse, TContext>>
|
||||
@ -239,7 +240,7 @@ interface KibanaClient {
|
||||
freeze<TContext = unknown>(params: T.FreezeIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.FreezeIndexResponse, TContext>>
|
||||
get<TContext = unknown>(params: T.GetIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetIndexResponse, TContext>>
|
||||
getAlias<TContext = unknown>(params?: T.GetAliasRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetAliasResponse, TContext>>
|
||||
getDataStream<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
getDataStream<TContext = unknown>(params?: T.IndicesGetDataStreamRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.IndicesGetDataStreamResponse, TContext>>
|
||||
getFieldMapping<TContext = unknown>(params: T.GetFieldMappingRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetFieldMappingResponse, TContext>>
|
||||
getIndexTemplate<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
getMapping<TContext = unknown>(params?: T.GetMappingRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetMappingResponse, TContext>>
|
||||
@ -274,6 +275,7 @@ interface KibanaClient {
|
||||
info<TContext = unknown>(params?: T.RootNodeInfoRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.RootNodeInfoResponse, TContext>>
|
||||
ingest: {
|
||||
deletePipeline<TContext = unknown>(params: T.DeletePipelineRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeletePipelineResponse, TContext>>
|
||||
geoIpStats<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
getPipeline<TContext = unknown>(params?: T.GetPipelineRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetPipelineResponse, TContext>>
|
||||
processorGrok<TContext = unknown>(params?: T.GrokProcessorPatternsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GrokProcessorPatternsResponse, TContext>>
|
||||
putPipeline<TContext = unknown>(params: T.PutPipelineRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.PutPipelineResponse, TContext>>
|
||||
@ -302,7 +304,7 @@ interface KibanaClient {
|
||||
deleteCalendar<TContext = unknown>(params: T.DeleteCalendarRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteCalendarResponse, TContext>>
|
||||
deleteCalendarEvent<TContext = unknown>(params: T.DeleteCalendarEventRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteCalendarEventResponse, TContext>>
|
||||
deleteCalendarJob<TContext = unknown>(params: T.DeleteCalendarJobRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteCalendarJobResponse, TContext>>
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params: T.DeleteDataFrameAnalyticsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteDataFrameAnalyticsResponse, TContext>>
|
||||
deleteDatafeed<TContext = unknown>(params: T.DeleteDatafeedRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteDatafeedResponse, TContext>>
|
||||
deleteExpiredData<TContext = unknown>(params?: T.DeleteExpiredDataRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteExpiredDataResponse, TContext>>
|
||||
deleteFilter<TContext = unknown>(params: T.DeleteFilterRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteFilterResponse, TContext>>
|
||||
@ -314,6 +316,7 @@ interface KibanaClient {
|
||||
estimateModelMemory<TContext = unknown>(params?: T.EstimateModelMemoryRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.EstimateModelMemoryResponse, TContext>>
|
||||
evaluateDataFrame<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
explainDataFrameAnalytics<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
findFileStructure<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
flushJob<TContext = unknown>(params: T.FlushJobRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.FlushJobResponse, TContext>>
|
||||
forecast<TContext = unknown>(params: T.ForecastJobRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.ForecastJobResponse, TContext>>
|
||||
getBuckets<TContext = unknown>(params: T.GetBucketsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetBucketsResponse, TContext>>
|
||||
@ -365,7 +368,7 @@ interface KibanaClient {
|
||||
monitoring: {
|
||||
bulk<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
}
|
||||
msearch<TContext = unknown>(params?: T.MultiSearchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiSearchResponse, TContext>>
|
||||
msearch<TDocument = unknown, TContext = unknown>(params?: T.MultiSearchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiSearchResponse<TDocument>, TContext>>
|
||||
msearchTemplate<TContext = unknown>(params?: T.MultiSearchTemplateRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiSearchTemplateResponse, TContext>>
|
||||
mtermvectors<TContext = unknown>(params?: T.MultiTermVectorsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiTermVectorsResponse, TContext>>
|
||||
nodes: {
|
||||
@ -435,6 +438,11 @@ interface KibanaClient {
|
||||
putRoleMapping<TContext = unknown>(params: T.PutRoleMappingRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.PutRoleMappingResponse, TContext>>
|
||||
putUser<TContext = unknown>(params: T.PutUserRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.PutUserResponse, TContext>>
|
||||
}
|
||||
shutdown: {
|
||||
deleteNode<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
getNode<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
putNode<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
}
|
||||
slm: {
|
||||
deleteLifecycle<TContext = unknown>(params: T.DeleteSnapshotLifecycleRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteSnapshotLifecycleResponse, TContext>>
|
||||
executeLifecycle<TContext = unknown>(params: T.ExecuteSnapshotLifecycleRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.ExecuteSnapshotLifecycleResponse, TContext>>
|
||||
@ -488,7 +496,7 @@ interface KibanaClient {
|
||||
}
|
||||
update<TDocumentR = unknown, TDocument = unknown, TPartialDocument = unknown, TContext = unknown>(params: T.UpdateRequest<TDocument, TPartialDocument>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.UpdateResponse<TDocumentR>, TContext>>
|
||||
updateByQuery<TContext = unknown>(params: T.UpdateByQueryRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.UpdateByQueryResponse, TContext>>
|
||||
updateByQueryRethrottle<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
updateByQueryRethrottle<TContext = unknown>(params: T.UpdateByQueryRethrottleRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.UpdateByQueryRethrottleResponse, TContext>>
|
||||
watcher: {
|
||||
ackWatch<TContext = unknown>(params: T.AcknowledgeWatchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.AcknowledgeWatchResponse, TContext>>
|
||||
activateWatch<TContext = unknown>(params: T.ActivateWatchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.ActivateWatchResponse, TContext>>
|
||||
|
||||
63
api/new.d.ts
vendored
63
api/new.d.ts
vendored
@ -445,6 +445,10 @@ interface NewClientTypes {
|
||||
getFeatures<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getFeatures<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getFeatures<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
resetFeatures<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
resetFeatures<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
resetFeatures<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
resetFeatures<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
}
|
||||
fieldCaps<TContext = unknown>(params?: T.FieldCapabilitiesRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.FieldCapabilitiesResponse, TContext>>
|
||||
fieldCaps<TContext = unknown>(callback: callbackFn<T.FieldCapabilitiesResponse, TContext>): TransportRequestCallback
|
||||
@ -533,10 +537,9 @@ interface NewClientTypes {
|
||||
create<TContext = unknown>(params: T.CreateIndexRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.CreateIndexResponse, TContext>>
|
||||
create<TContext = unknown>(params: T.CreateIndexRequest, callback: callbackFn<T.CreateIndexResponse, TContext>): TransportRequestCallback
|
||||
create<TContext = unknown>(params: T.CreateIndexRequest, options: TransportRequestOptions, callback: callbackFn<T.CreateIndexResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
createDataStream<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
createDataStream<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
createDataStream<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
createDataStream<TContext = unknown>(params: T.IndicesCreateDataStreamRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.IndicesCreateDataStreamResponse, TContext>>
|
||||
createDataStream<TContext = unknown>(params: T.IndicesCreateDataStreamRequest, callback: callbackFn<T.IndicesCreateDataStreamResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TContext = unknown>(params: T.IndicesCreateDataStreamRequest, options: TransportRequestOptions, callback: callbackFn<T.IndicesCreateDataStreamResponse, TContext>): TransportRequestCallback
|
||||
dataStreamsStats<TContext = unknown>(params?: T.IndicesDataStreamsStatsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.IndicesDataStreamsStatsResponse, TContext>>
|
||||
dataStreamsStats<TContext = unknown>(callback: callbackFn<T.IndicesDataStreamsStatsResponse, TContext>): TransportRequestCallback
|
||||
dataStreamsStats<TContext = unknown>(params: T.IndicesDataStreamsStatsRequest, callback: callbackFn<T.IndicesDataStreamsStatsResponse, TContext>): TransportRequestCallback
|
||||
@ -595,10 +598,10 @@ interface NewClientTypes {
|
||||
getAlias<TContext = unknown>(callback: callbackFn<T.GetAliasResponse, TContext>): TransportRequestCallback
|
||||
getAlias<TContext = unknown>(params: T.GetAliasRequest, callback: callbackFn<T.GetAliasResponse, TContext>): TransportRequestCallback
|
||||
getAlias<TContext = unknown>(params: T.GetAliasRequest, options: TransportRequestOptions, callback: callbackFn<T.GetAliasResponse, TContext>): TransportRequestCallback
|
||||
getDataStream<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
getDataStream<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getDataStream<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getDataStream<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getDataStream<TContext = unknown>(params?: T.IndicesGetDataStreamRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.IndicesGetDataStreamResponse, TContext>>
|
||||
getDataStream<TContext = unknown>(callback: callbackFn<T.IndicesGetDataStreamResponse, TContext>): TransportRequestCallback
|
||||
getDataStream<TContext = unknown>(params: T.IndicesGetDataStreamRequest, callback: callbackFn<T.IndicesGetDataStreamResponse, TContext>): TransportRequestCallback
|
||||
getDataStream<TContext = unknown>(params: T.IndicesGetDataStreamRequest, options: TransportRequestOptions, callback: callbackFn<T.IndicesGetDataStreamResponse, TContext>): TransportRequestCallback
|
||||
getFieldMapping<TContext = unknown>(params: T.GetFieldMappingRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetFieldMappingResponse, TContext>>
|
||||
getFieldMapping<TContext = unknown>(params: T.GetFieldMappingRequest, callback: callbackFn<T.GetFieldMappingResponse, TContext>): TransportRequestCallback
|
||||
getFieldMapping<TContext = unknown>(params: T.GetFieldMappingRequest, options: TransportRequestOptions, callback: callbackFn<T.GetFieldMappingResponse, TContext>): TransportRequestCallback
|
||||
@ -717,6 +720,10 @@ interface NewClientTypes {
|
||||
deletePipeline<TContext = unknown>(params: T.DeletePipelineRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeletePipelineResponse, TContext>>
|
||||
deletePipeline<TContext = unknown>(params: T.DeletePipelineRequest, callback: callbackFn<T.DeletePipelineResponse, TContext>): TransportRequestCallback
|
||||
deletePipeline<TContext = unknown>(params: T.DeletePipelineRequest, options: TransportRequestOptions, callback: callbackFn<T.DeletePipelineResponse, TContext>): TransportRequestCallback
|
||||
geoIpStats<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
geoIpStats<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
geoIpStats<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
geoIpStats<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getPipeline<TContext = unknown>(params?: T.GetPipelineRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.GetPipelineResponse, TContext>>
|
||||
getPipeline<TContext = unknown>(callback: callbackFn<T.GetPipelineResponse, TContext>): TransportRequestCallback
|
||||
getPipeline<TContext = unknown>(params: T.GetPipelineRequest, callback: callbackFn<T.GetPipelineResponse, TContext>): TransportRequestCallback
|
||||
@ -800,10 +807,9 @@ interface NewClientTypes {
|
||||
deleteCalendarJob<TContext = unknown>(params: T.DeleteCalendarJobRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteCalendarJobResponse, TContext>>
|
||||
deleteCalendarJob<TContext = unknown>(params: T.DeleteCalendarJobRequest, callback: callbackFn<T.DeleteCalendarJobResponse, TContext>): TransportRequestCallback
|
||||
deleteCalendarJob<TContext = unknown>(params: T.DeleteCalendarJobRequest, options: TransportRequestOptions, callback: callbackFn<T.DeleteCalendarJobResponse, TContext>): TransportRequestCallback
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
deleteDataFrameAnalytics<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params: T.DeleteDataFrameAnalyticsRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteDataFrameAnalyticsResponse, TContext>>
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params: T.DeleteDataFrameAnalyticsRequest, callback: callbackFn<T.DeleteDataFrameAnalyticsResponse, TContext>): TransportRequestCallback
|
||||
deleteDataFrameAnalytics<TContext = unknown>(params: T.DeleteDataFrameAnalyticsRequest, options: TransportRequestOptions, callback: callbackFn<T.DeleteDataFrameAnalyticsResponse, TContext>): TransportRequestCallback
|
||||
deleteDatafeed<TContext = unknown>(params: T.DeleteDatafeedRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteDatafeedResponse, TContext>>
|
||||
deleteDatafeed<TContext = unknown>(params: T.DeleteDatafeedRequest, callback: callbackFn<T.DeleteDatafeedResponse, TContext>): TransportRequestCallback
|
||||
deleteDatafeed<TContext = unknown>(params: T.DeleteDatafeedRequest, options: TransportRequestOptions, callback: callbackFn<T.DeleteDatafeedResponse, TContext>): TransportRequestCallback
|
||||
@ -841,6 +847,10 @@ interface NewClientTypes {
|
||||
explainDataFrameAnalytics<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
explainDataFrameAnalytics<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
explainDataFrameAnalytics<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
findFileStructure<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
findFileStructure<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
findFileStructure<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
findFileStructure<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
flushJob<TContext = unknown>(params: T.FlushJobRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.FlushJobResponse, TContext>>
|
||||
flushJob<TContext = unknown>(params: T.FlushJobRequest, callback: callbackFn<T.FlushJobResponse, TContext>): TransportRequestCallback
|
||||
flushJob<TContext = unknown>(params: T.FlushJobRequest, options: TransportRequestOptions, callback: callbackFn<T.FlushJobResponse, TContext>): TransportRequestCallback
|
||||
@ -1011,10 +1021,10 @@ interface NewClientTypes {
|
||||
bulk<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
bulk<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
}
|
||||
msearch<TContext = unknown>(params?: T.MultiSearchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiSearchResponse, TContext>>
|
||||
msearch<TContext = unknown>(callback: callbackFn<T.MultiSearchResponse, TContext>): TransportRequestCallback
|
||||
msearch<TContext = unknown>(params: T.MultiSearchRequest, callback: callbackFn<T.MultiSearchResponse, TContext>): TransportRequestCallback
|
||||
msearch<TContext = unknown>(params: T.MultiSearchRequest, options: TransportRequestOptions, callback: callbackFn<T.MultiSearchResponse, TContext>): TransportRequestCallback
|
||||
msearch<TDocument = unknown, TContext = unknown>(params?: T.MultiSearchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiSearchResponse<TDocument>, TContext>>
|
||||
msearch<TDocument = unknown, TContext = unknown>(callback: callbackFn<T.MultiSearchResponse<TDocument>, TContext>): TransportRequestCallback
|
||||
msearch<TDocument = unknown, TContext = unknown>(params: T.MultiSearchRequest, callback: callbackFn<T.MultiSearchResponse<TDocument>, TContext>): TransportRequestCallback
|
||||
msearch<TDocument = unknown, TContext = unknown>(params: T.MultiSearchRequest, options: TransportRequestOptions, callback: callbackFn<T.MultiSearchResponse<TDocument>, TContext>): TransportRequestCallback
|
||||
msearchTemplate<TContext = unknown>(params?: T.MultiSearchTemplateRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.MultiSearchTemplateResponse, TContext>>
|
||||
msearchTemplate<TContext = unknown>(callback: callbackFn<T.MultiSearchTemplateResponse, TContext>): TransportRequestCallback
|
||||
msearchTemplate<TContext = unknown>(params: T.MultiSearchTemplateRequest, callback: callbackFn<T.MultiSearchTemplateResponse, TContext>): TransportRequestCallback
|
||||
@ -1245,6 +1255,20 @@ interface NewClientTypes {
|
||||
putUser<TContext = unknown>(params: T.PutUserRequest, callback: callbackFn<T.PutUserResponse, TContext>): TransportRequestCallback
|
||||
putUser<TContext = unknown>(params: T.PutUserRequest, options: TransportRequestOptions, callback: callbackFn<T.PutUserResponse, TContext>): TransportRequestCallback
|
||||
}
|
||||
shutdown: {
|
||||
deleteNode<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
deleteNode<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
deleteNode<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
deleteNode<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getNode<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
getNode<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getNode<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
getNode<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
putNode<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
putNode<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
putNode<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
putNode<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
}
|
||||
slm: {
|
||||
deleteLifecycle<TContext = unknown>(params: T.DeleteSnapshotLifecycleRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.DeleteSnapshotLifecycleResponse, TContext>>
|
||||
deleteLifecycle<TContext = unknown>(params: T.DeleteSnapshotLifecycleRequest, callback: callbackFn<T.DeleteSnapshotLifecycleResponse, TContext>): TransportRequestCallback
|
||||
@ -1392,10 +1416,9 @@ interface NewClientTypes {
|
||||
updateByQuery<TContext = unknown>(params: T.UpdateByQueryRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.UpdateByQueryResponse, TContext>>
|
||||
updateByQuery<TContext = unknown>(params: T.UpdateByQueryRequest, callback: callbackFn<T.UpdateByQueryResponse, TContext>): TransportRequestCallback
|
||||
updateByQuery<TContext = unknown>(params: T.UpdateByQueryRequest, options: TransportRequestOptions, callback: callbackFn<T.UpdateByQueryResponse, TContext>): TransportRequestCallback
|
||||
updateByQueryRethrottle<TContext = unknown>(params?: TODO, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TODO, TContext>>
|
||||
updateByQueryRethrottle<TContext = unknown>(callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
updateByQueryRethrottle<TContext = unknown>(params: TODO, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
updateByQueryRethrottle<TContext = unknown>(params: TODO, options: TransportRequestOptions, callback: callbackFn<TODO, TContext>): TransportRequestCallback
|
||||
updateByQueryRethrottle<TContext = unknown>(params: T.UpdateByQueryRethrottleRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.UpdateByQueryRethrottleResponse, TContext>>
|
||||
updateByQueryRethrottle<TContext = unknown>(params: T.UpdateByQueryRethrottleRequest, callback: callbackFn<T.UpdateByQueryRethrottleResponse, TContext>): TransportRequestCallback
|
||||
updateByQueryRethrottle<TContext = unknown>(params: T.UpdateByQueryRethrottleRequest, options: TransportRequestOptions, callback: callbackFn<T.UpdateByQueryRethrottleResponse, TContext>): TransportRequestCallback
|
||||
watcher: {
|
||||
ackWatch<TContext = unknown>(params: T.AcknowledgeWatchRequest, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<T.AcknowledgeWatchResponse, TContext>>
|
||||
ackWatch<TContext = unknown>(params: T.AcknowledgeWatchRequest, callback: callbackFn<T.AcknowledgeWatchResponse, TContext>): TransportRequestCallback
|
||||
|
||||
343
api/types.d.ts
vendored
343
api/types.d.ts
vendored
@ -292,7 +292,7 @@ export interface AnalysisConfig {
|
||||
categorization_field_name?: Field
|
||||
categorization_filters?: Array<string>
|
||||
detectors: Array<Detector>
|
||||
influencers: Array<Field>
|
||||
influencers?: Array<Field>
|
||||
latency?: Time
|
||||
multivariate_by_fields?: boolean
|
||||
per_partition_categorization?: PerPartitionCategorization
|
||||
@ -387,8 +387,9 @@ export interface AnomalyCause {
|
||||
export interface AnomalyDetectors {
|
||||
categorization_analyzer: CategorizationAnalyzer
|
||||
categorization_examples_limit: integer
|
||||
model_memory_limit: string
|
||||
model_memory_limit: ByteSize
|
||||
model_snapshot_retention_days: integer
|
||||
daily_model_snapshot_retention_after_days: integer
|
||||
}
|
||||
|
||||
export interface AnomalyRecord {
|
||||
@ -785,7 +786,7 @@ export interface BucketInfluencer {
|
||||
influencer_score: double
|
||||
initial_influencer_score: double
|
||||
is_interim: boolean
|
||||
job_id: string
|
||||
job_id: Id
|
||||
probability: double
|
||||
result_type: string
|
||||
timestamp: DateString
|
||||
@ -3813,17 +3814,18 @@ export interface DailySchedule {
|
||||
|
||||
export interface DataCounts {
|
||||
bucket_count: long
|
||||
earliest_record_timestamp: long
|
||||
earliest_record_timestamp?: long
|
||||
empty_bucket_count: long
|
||||
input_bytes: long
|
||||
input_field_count: long
|
||||
input_record_count: long
|
||||
invalid_date_count: long
|
||||
job_id: string
|
||||
last_data_time: long
|
||||
latest_empty_bucket_timestamp: long
|
||||
latest_record_timestamp: long
|
||||
latest_sparse_bucket_timestamp: long
|
||||
job_id: Id
|
||||
last_data_time?: long
|
||||
latest_empty_bucket_timestamp?: long
|
||||
latest_record_timestamp?: long
|
||||
latest_sparse_bucket_timestamp?: long
|
||||
latest_bucket_timestamp?: long
|
||||
missing_field_count: long
|
||||
out_of_order_timestamp_count: long
|
||||
processed_field_count: long
|
||||
@ -3835,6 +3837,7 @@ export interface DataDescription {
|
||||
format?: string
|
||||
time_field: Field
|
||||
time_format?: string
|
||||
field_delimiter?: string
|
||||
}
|
||||
|
||||
export interface DataPathStats {
|
||||
@ -3856,6 +3859,8 @@ export interface DataPathStats {
|
||||
type: string
|
||||
}
|
||||
|
||||
export type DataStreamHealthStatus = 'GREEN' | 'green' | 'YELLOW' | 'yellow' | 'RED' | 'red'
|
||||
|
||||
export type DataStreamName = string
|
||||
|
||||
export interface DataStreamsStatsItem {
|
||||
@ -3895,10 +3900,10 @@ export interface DataTiersUsage extends XPackUsage {
|
||||
export interface Datafeed {
|
||||
aggregations?: Record<string, AggregationContainer>
|
||||
aggs?: Record<string, AggregationContainer>
|
||||
chunking_config: ChunkingConfig
|
||||
datafeed_id: string
|
||||
chunking_config?: ChunkingConfig
|
||||
datafeed_id: Id
|
||||
frequency?: Timestamp
|
||||
indices: Array<string>
|
||||
indices: Indices
|
||||
indexes?: Array<string>
|
||||
job_id: Id
|
||||
max_empty_searches?: integer
|
||||
@ -3908,18 +3913,26 @@ export interface Datafeed {
|
||||
scroll_size?: integer
|
||||
delayed_data_check_config: DelayedDataCheckConfig
|
||||
runtime_mappings?: RuntimeFields
|
||||
indices_options?: DatafeedIndicesOptions
|
||||
}
|
||||
|
||||
export interface DatafeedCount {
|
||||
count: long
|
||||
}
|
||||
|
||||
export interface DatafeedIndicesOptions {
|
||||
allow_no_indices?: boolean
|
||||
expand_wildcards?: ExpandWildcards
|
||||
ignore_unavailable?: boolean
|
||||
ignore_throttled?: boolean
|
||||
}
|
||||
|
||||
export type DatafeedState = 'started' | 'stopped' | 'starting' | 'stopping'
|
||||
|
||||
export interface DatafeedStats {
|
||||
assignment_explanation: string
|
||||
datafeed_id: string
|
||||
node: DiscoveryNode
|
||||
assignment_explanation?: string
|
||||
datafeed_id: Id
|
||||
node?: DiscoveryNode
|
||||
state: DatafeedState
|
||||
timing_stats: DatafeedTimingStats
|
||||
}
|
||||
@ -4198,9 +4211,9 @@ export interface DeleteCalendarJobRequest extends RequestBase {
|
||||
}
|
||||
|
||||
export interface DeleteCalendarJobResponse extends ResponseBase {
|
||||
calendar_id: string
|
||||
description: string
|
||||
job_ids: Array<Id>
|
||||
calendar_id: Id
|
||||
description?: string
|
||||
job_ids: Ids
|
||||
}
|
||||
|
||||
export interface DeleteCalendarRequest extends RequestBase {
|
||||
@ -4222,6 +4235,15 @@ export interface DeleteDanglingIndexResponse extends ResponseBase {
|
||||
stub: integer
|
||||
}
|
||||
|
||||
export interface DeleteDataFrameAnalyticsRequest extends RequestBase {
|
||||
id: Id
|
||||
force?: boolean
|
||||
timeout?: Time
|
||||
}
|
||||
|
||||
export interface DeleteDataFrameAnalyticsResponse extends AcknowledgedResponseBase {
|
||||
}
|
||||
|
||||
export interface DeleteDatafeedRequest extends RequestBase {
|
||||
datafeed_id: Id
|
||||
force?: boolean
|
||||
@ -4301,7 +4323,7 @@ export interface DeleteJobResponse extends AcknowledgedResponseBase {
|
||||
export interface DeleteLicenseRequest extends RequestBase {
|
||||
}
|
||||
|
||||
export interface DeleteLicenseResponse extends ResponseBase {
|
||||
export interface DeleteLicenseResponse extends AcknowledgedResponseBase {
|
||||
}
|
||||
|
||||
export interface DeleteLifecycleRequest extends RequestBase {
|
||||
@ -4416,7 +4438,7 @@ export interface DeleteSnapshotResponse extends AcknowledgedResponseBase {
|
||||
}
|
||||
|
||||
export interface DeleteTrainedModelAliasRequest extends RequestBase {
|
||||
model_alias: Alias
|
||||
model_alias: Name
|
||||
model_id: Id
|
||||
}
|
||||
|
||||
@ -4540,9 +4562,9 @@ export interface DisableUserResponse extends ResponseBase {
|
||||
|
||||
export interface DiscoveryNode {
|
||||
attributes: Record<string, string>
|
||||
ephemeral_id: string
|
||||
id: string
|
||||
name: string
|
||||
ephemeral_id: Id
|
||||
id: Id
|
||||
name: Name
|
||||
transport_address: string
|
||||
}
|
||||
|
||||
@ -5313,8 +5335,8 @@ export interface FileSystemStats {
|
||||
}
|
||||
|
||||
export interface Filter {
|
||||
description: string
|
||||
filter_id: string
|
||||
description?: string
|
||||
filter_id: Id
|
||||
items: Array<string>
|
||||
}
|
||||
|
||||
@ -5836,14 +5858,19 @@ export interface GetAliasResponse extends DictionaryResponseBase<IndexName, Inde
|
||||
|
||||
export interface GetAnomalyRecordsRequest extends RequestBase {
|
||||
job_id: Id
|
||||
exclude_interim?: boolean
|
||||
from?: integer
|
||||
size?: integer
|
||||
start?: DateString
|
||||
end?: DateString
|
||||
body?: {
|
||||
desc?: boolean
|
||||
end?: DateString
|
||||
exclude_interim?: boolean
|
||||
page?: Page
|
||||
record_score?: double
|
||||
sort?: Field
|
||||
start?: DateString
|
||||
end?: DateString
|
||||
}
|
||||
}
|
||||
|
||||
@ -5905,16 +5932,23 @@ export interface GetBasicLicenseStatusResponse extends ResponseBase {
|
||||
|
||||
export interface GetBucketsRequest extends RequestBase {
|
||||
job_id: Id
|
||||
timestamp?: Id
|
||||
timestamp?: Timestamp
|
||||
from?: integer
|
||||
size?: integer
|
||||
exclude_interim?: boolean
|
||||
sort?: Field
|
||||
desc?: boolean
|
||||
start?: DateString
|
||||
end?: DateString
|
||||
body?: {
|
||||
anomaly_score?: double
|
||||
desc?: boolean
|
||||
end?: DateString
|
||||
exclude_interim?: boolean
|
||||
expand?: boolean
|
||||
page?: Page
|
||||
sort?: Field
|
||||
start?: DateString
|
||||
end?: DateString
|
||||
}
|
||||
}
|
||||
|
||||
@ -5933,11 +5967,15 @@ export interface GetBuiltinPrivilegesResponse extends ResponseBase {
|
||||
|
||||
export interface GetCalendarEventsRequest extends RequestBase {
|
||||
calendar_id: Id
|
||||
job_id?: Id
|
||||
end?: DateString
|
||||
job_id?: string
|
||||
from?: integer
|
||||
start?: string
|
||||
size?: integer
|
||||
body?: {
|
||||
end?: DateString
|
||||
from?: integer
|
||||
start?: string
|
||||
size?: integer
|
||||
}
|
||||
}
|
||||
@ -5978,7 +6016,7 @@ export interface GetCertificatesRequest extends RequestBase {
|
||||
export type GetCertificatesResponse = ClusterCertificateInformation[]
|
||||
|
||||
export interface GetDatafeedStatsRequest extends RequestBase {
|
||||
datafeed_id?: Id
|
||||
datafeed_id?: Ids
|
||||
allow_no_datafeeds?: boolean
|
||||
}
|
||||
|
||||
@ -6121,7 +6159,7 @@ export interface GetJobStatsResponse extends ResponseBase {
|
||||
}
|
||||
|
||||
export interface GetJobsRequest extends RequestBase {
|
||||
job_id?: Id
|
||||
job_id?: Ids
|
||||
allow_no_jobs?: boolean
|
||||
exclude_generated?: boolean
|
||||
}
|
||||
@ -6289,6 +6327,30 @@ export interface GetRollupJobResponse extends ResponseBase {
|
||||
jobs: Array<RollupJobInformation>
|
||||
}
|
||||
|
||||
export interface GetScriptContextRequest extends RequestBase {
|
||||
stub_a: integer
|
||||
stub_b: integer
|
||||
body?: {
|
||||
stub_c: integer
|
||||
}
|
||||
}
|
||||
|
||||
export interface GetScriptContextResponse extends ResponseBase {
|
||||
stub: integer
|
||||
}
|
||||
|
||||
export interface GetScriptLanguagesRequest extends RequestBase {
|
||||
stub_a: integer
|
||||
stub_b: integer
|
||||
body?: {
|
||||
stub_c: integer
|
||||
}
|
||||
}
|
||||
|
||||
export interface GetScriptLanguagesResponse extends ResponseBase {
|
||||
stub: integer
|
||||
}
|
||||
|
||||
export interface GetScriptRequest extends RequestBase {
|
||||
id: Id
|
||||
master_timeout?: Time
|
||||
@ -7026,15 +7088,10 @@ export interface IndexingStats {
|
||||
export type Indices = string | Array<string>
|
||||
|
||||
export interface IndicesCreateDataStreamRequest extends RequestBase {
|
||||
stub_a: integer
|
||||
stub_b: integer
|
||||
body?: {
|
||||
stub_c: integer
|
||||
}
|
||||
name: DataStreamName
|
||||
}
|
||||
|
||||
export interface IndicesCreateDataStreamResponse extends ResponseBase {
|
||||
stub: integer
|
||||
export interface IndicesCreateDataStreamResponse extends AcknowledgedResponseBase {
|
||||
}
|
||||
|
||||
export interface IndicesDataStreamsStatsRequest extends RequestBase {
|
||||
@ -7059,13 +7116,34 @@ export interface IndicesDeleteDataStreamRequest extends RequestBase {
|
||||
export interface IndicesDeleteDataStreamResponse extends AcknowledgedResponseBase {
|
||||
}
|
||||
|
||||
export interface IndicesGetDataStreamItem {
|
||||
name: DataStreamName
|
||||
timestamp_field: IndicesGetDataStreamItemTimestampField
|
||||
indices: Array<IndicesGetDataStreamItemIndex>
|
||||
generation: integer
|
||||
template: Name
|
||||
hidden: boolean
|
||||
status: DataStreamHealthStatus
|
||||
ilm_policy?: Name
|
||||
_meta?: Record<string, any>
|
||||
}
|
||||
|
||||
export interface IndicesGetDataStreamItemIndex {
|
||||
index_name: IndexName
|
||||
index_uuid: Uuid
|
||||
}
|
||||
|
||||
export interface IndicesGetDataStreamItemTimestampField {
|
||||
name: Field
|
||||
}
|
||||
|
||||
export interface IndicesGetDataStreamRequest extends RequestBase {
|
||||
name?: IndexName
|
||||
expand_wildcards?: ExpandWildcardOptions
|
||||
}
|
||||
|
||||
export interface IndicesGetDataStreamResponse extends ResponseBase {
|
||||
stub: integer
|
||||
data_streams: Array<IndicesGetDataStreamItem>
|
||||
}
|
||||
|
||||
export interface IndicesMigrateToDataStreamRequest extends RequestBase {
|
||||
@ -7412,14 +7490,14 @@ export interface Job {
|
||||
analysis_config?: AnalysisConfig
|
||||
analysis_limits?: AnalysisLimits
|
||||
background_persist_interval?: Time
|
||||
count: integer
|
||||
created_by: EmptyObject
|
||||
count?: integer
|
||||
created_by?: EmptyObject
|
||||
create_time?: integer
|
||||
detectors?: JobStatistics
|
||||
data_description?: DataDescription
|
||||
description?: string
|
||||
finished_time?: integer
|
||||
forecasts: MlJobForecasts
|
||||
forecasts?: MlJobForecasts
|
||||
job_id?: Id
|
||||
job_type?: string
|
||||
model_plot?: ModelPlotConfig
|
||||
@ -7438,11 +7516,12 @@ export interface Job {
|
||||
}
|
||||
|
||||
export interface JobForecastStatistics {
|
||||
memory_bytes: JobStatistics
|
||||
processing_time_ms: JobStatistics
|
||||
records: JobStatistics
|
||||
status: Record<string, long>
|
||||
memory_bytes?: JobStatistics
|
||||
processing_time_ms?: JobStatistics
|
||||
records?: JobStatistics
|
||||
status?: Record<string, long>
|
||||
total: long
|
||||
forecasted_jobs: integer
|
||||
}
|
||||
|
||||
export type JobState = 'closing' | 'closed' | 'opened' | 'failed' | 'opening'
|
||||
@ -7455,13 +7534,13 @@ export interface JobStatistics {
|
||||
}
|
||||
|
||||
export interface JobStats {
|
||||
assignment_explanation: string
|
||||
assignment_explanation?: string
|
||||
data_counts: DataCounts
|
||||
forecasts_stats: JobForecastStatistics
|
||||
job_id: string
|
||||
model_size_stats: ModelSizeStats
|
||||
node: DiscoveryNode
|
||||
open_time: DateString
|
||||
node?: DiscoveryNode
|
||||
open_time?: DateString
|
||||
state: JobState
|
||||
timing_stats: TimingStats
|
||||
deleting?: boolean
|
||||
@ -7683,8 +7762,9 @@ export interface LimitTokenCountTokenFilter extends TokenFilterBase {
|
||||
}
|
||||
|
||||
export interface Limits {
|
||||
max_model_memory_limit: string
|
||||
effective_max_model_memory_limit: string
|
||||
max_model_memory_limit?: ByteSize
|
||||
effective_max_model_memory_limit: ByteSize
|
||||
total_ml_memory: ByteSize
|
||||
}
|
||||
|
||||
export interface LineStringGeoShape {
|
||||
@ -7789,6 +7869,7 @@ export interface MachineLearningInfoResponse extends ResponseBase {
|
||||
defaults: Defaults
|
||||
limits: Limits
|
||||
upgrade_mode: boolean
|
||||
native_code: NativeCode
|
||||
}
|
||||
|
||||
export interface MachineLearningUsage extends XPackUsage {
|
||||
@ -8029,6 +8110,7 @@ export interface ModelPlotConfig {
|
||||
|
||||
export interface ModelPlotConfigEnabled {
|
||||
enabled: boolean
|
||||
terms?: string
|
||||
}
|
||||
|
||||
export interface ModelSizeStats {
|
||||
@ -8037,6 +8119,10 @@ export interface ModelSizeStats {
|
||||
log_time: Time
|
||||
memory_status: MemoryStatus
|
||||
model_bytes: long
|
||||
model_bytes_exceeded?: long
|
||||
model_bytes_memory_limit?: long
|
||||
peak_model_bytes?: long
|
||||
assignment_memory_basis?: string
|
||||
result_type: string
|
||||
total_by_field_count: long
|
||||
total_over_field_count: long
|
||||
@ -8048,6 +8134,7 @@ export interface ModelSizeStats {
|
||||
frequent_category_count: integer
|
||||
rare_category_count: integer
|
||||
total_category_count: integer
|
||||
timestamp?: long
|
||||
}
|
||||
|
||||
export interface ModelSnapshot {
|
||||
@ -8200,6 +8287,28 @@ export interface MultiMatchQuery extends QueryBase {
|
||||
zero_terms_query?: ZeroTermsQuery
|
||||
}
|
||||
|
||||
export interface MultiSearchBody {
|
||||
aggregations?: Record<string, AggregationContainer>
|
||||
aggs?: Record<string, AggregationContainer>
|
||||
query?: QueryContainer
|
||||
from?: integer
|
||||
size?: integer
|
||||
pit?: PointInTimeReference
|
||||
track_total_hits?: boolean | integer
|
||||
suggest?: SuggestContainer | Record<string, SuggestContainer>
|
||||
}
|
||||
|
||||
export interface MultiSearchHeader {
|
||||
allow_no_indices?: boolean
|
||||
expand_wildcards?: ExpandWildcards
|
||||
ignore_unavailable?: boolean
|
||||
index?: Indices
|
||||
preference?: string
|
||||
request_cache?: boolean
|
||||
routing?: string
|
||||
search_type?: SearchType
|
||||
}
|
||||
|
||||
export interface MultiSearchRequest extends RequestBase {
|
||||
index?: Indices
|
||||
type?: Types
|
||||
@ -8208,15 +8317,18 @@ export interface MultiSearchRequest extends RequestBase {
|
||||
max_concurrent_shard_requests?: long
|
||||
pre_filter_shard_size?: long
|
||||
search_type?: SearchType
|
||||
total_hits_as_integer?: boolean
|
||||
rest_total_hits_as_int?: boolean
|
||||
typed_keys?: boolean
|
||||
body: {
|
||||
operations?: Record<string, SearchRequest>
|
||||
}
|
||||
body: Array<MultiSearchHeader | MultiSearchBody>
|
||||
}
|
||||
|
||||
export interface MultiSearchResponse extends ResponseBase {
|
||||
responses: Array<SearchResponse<any>>
|
||||
export interface MultiSearchResponse<TDocument = unknown> extends ResponseBase {
|
||||
took: long
|
||||
responses: Array<MultiSearchResult<TDocument> | ErrorResponse>
|
||||
}
|
||||
|
||||
export interface MultiSearchResult<TDocument = unknown> extends SearchResponse<TDocument> {
|
||||
status: integer
|
||||
}
|
||||
|
||||
export interface MultiSearchTemplateRequest extends RequestBase {
|
||||
@ -8340,6 +8452,11 @@ export type NamedQuery<TQuery = unknown> = NamedQueryKeys<TQuery> |
|
||||
|
||||
export type Names = string | Array<string>
|
||||
|
||||
export interface NativeCode {
|
||||
build_hash: string
|
||||
version: VersionString
|
||||
}
|
||||
|
||||
export interface NativeCodeInformation {
|
||||
build_hash: string
|
||||
version: VersionString
|
||||
@ -9445,6 +9562,7 @@ export interface PutMappingRequest extends RequestBase {
|
||||
routing_field?: RoutingField
|
||||
size_field?: SizeField
|
||||
source_field?: SourceField
|
||||
runtime?: RuntimeFields
|
||||
}
|
||||
}
|
||||
|
||||
@ -10020,7 +10138,7 @@ export interface ReindexNode {
|
||||
attributes: Record<string, string>
|
||||
host: string
|
||||
ip: string
|
||||
name: string
|
||||
name: Name
|
||||
roles: Array<string>
|
||||
tasks: Record<TaskId, ReindexTask>
|
||||
transport_address: string
|
||||
@ -10105,11 +10223,12 @@ export interface ReindexTask {
|
||||
cancellable: boolean
|
||||
description: string
|
||||
id: long
|
||||
node: string
|
||||
node: Name
|
||||
running_time_in_nanos: long
|
||||
start_time_in_millis: long
|
||||
status: ReindexStatus
|
||||
type: string
|
||||
headers: Record<string, string>
|
||||
}
|
||||
|
||||
export type RelationName = string
|
||||
@ -10300,11 +10419,11 @@ export interface ResultBucket {
|
||||
event_count: long
|
||||
initial_anomaly_score: double
|
||||
is_interim: boolean
|
||||
job_id: string
|
||||
partition_scores: Array<PartitionScore>
|
||||
job_id: Id
|
||||
partition_scores?: Array<PartitionScore>
|
||||
processing_time_ms: double
|
||||
result_type: string
|
||||
timestamp: DateString
|
||||
timestamp: Time
|
||||
}
|
||||
|
||||
export interface ResumeAutoFollowPatternRequest extends RequestBase {
|
||||
@ -10482,7 +10601,7 @@ export interface RollupJobStats {
|
||||
export interface RollupJobStatus {
|
||||
current_position?: Record<string, any>
|
||||
job_state: IndexingJobState
|
||||
upgraded_doc_id: boolean
|
||||
upgraded_doc_id?: boolean
|
||||
}
|
||||
|
||||
export interface RollupJobTaskFailure {
|
||||
@ -10555,10 +10674,12 @@ export type RuleFilterType = 'include' | 'exclude'
|
||||
|
||||
export interface RuntimeField {
|
||||
format?: string
|
||||
script?: StoredScript
|
||||
type: FieldType
|
||||
script?: Script
|
||||
type: RuntimeFieldType
|
||||
}
|
||||
|
||||
export type RuntimeFieldType = 'boolean' | 'date' | 'double' | 'geo_point' | 'ip' | 'keyword' | 'long'
|
||||
|
||||
export interface RuntimeFieldTypesStats {
|
||||
name: Name
|
||||
count: integer
|
||||
@ -10631,9 +10752,9 @@ export interface ScheduleTriggerEvent {
|
||||
export interface ScheduledEvent {
|
||||
calendar_id: Id
|
||||
description: string
|
||||
end_time: DateString
|
||||
end_time: EpochMillis
|
||||
event_id: Id
|
||||
start_time: DateString
|
||||
start_time: EpochMillis
|
||||
}
|
||||
|
||||
export interface ScoreFunctionBase {
|
||||
@ -11648,7 +11769,7 @@ export interface SmoothingModelContainer {
|
||||
}
|
||||
|
||||
export interface SnapshotIndexStats {
|
||||
shards: Record<string, SnapshotShardsStats>
|
||||
shards: Record<string, SnapshotShardsStatus>
|
||||
shards_stats: SnapshotShardsStats
|
||||
stats: SnapshotStats
|
||||
}
|
||||
@ -11804,6 +11925,25 @@ export interface SnapshotShardsStats {
|
||||
total: long
|
||||
}
|
||||
|
||||
export type SnapshotShardsStatsStage = 'DONE' | 'FAILURE' | 'FINALIZE' | 'INIT' | 'STARTED'
|
||||
|
||||
export interface SnapshotShardsStatsSummary {
|
||||
incremental: SnapshotShardsStatsSummaryItem
|
||||
total: SnapshotShardsStatsSummaryItem
|
||||
start_time_in_millis: long
|
||||
time_in_millis: long
|
||||
}
|
||||
|
||||
export interface SnapshotShardsStatsSummaryItem {
|
||||
file_count: long
|
||||
size_in_bytes: long
|
||||
}
|
||||
|
||||
export interface SnapshotShardsStatus {
|
||||
stage: SnapshotShardsStatsStage
|
||||
stats: SnapshotShardsStatsSummary
|
||||
}
|
||||
|
||||
export interface SnapshotStats {
|
||||
incremental: FileCountSnapshotStats
|
||||
start_time_in_millis: long
|
||||
@ -12046,9 +12186,10 @@ export interface StartBasicLicenseResponse extends AcknowledgedResponseBase {
|
||||
|
||||
export interface StartDatafeedRequest extends RequestBase {
|
||||
datafeed_id: Id
|
||||
start?: Time
|
||||
body?: {
|
||||
end?: DateString
|
||||
start?: DateString
|
||||
end?: Time
|
||||
start?: Time
|
||||
timeout?: Time
|
||||
}
|
||||
}
|
||||
@ -12136,8 +12277,9 @@ export interface StepKey {
|
||||
}
|
||||
|
||||
export interface StopDatafeedRequest extends RequestBase {
|
||||
datafeed_id: Id
|
||||
allow_no_datafeeds?: boolean
|
||||
datafeed_id: Ids
|
||||
allow_no_match?: boolean
|
||||
force?: boolean
|
||||
body?: {
|
||||
force?: boolean
|
||||
timeout?: Time
|
||||
@ -12430,7 +12572,7 @@ export interface TermQuery extends QueryBase {
|
||||
|
||||
export interface TermSuggestOption {
|
||||
text: string
|
||||
freq: long
|
||||
freq?: long
|
||||
score: double
|
||||
}
|
||||
|
||||
@ -12658,13 +12800,14 @@ export type TimeSpan = string
|
||||
export type Timestamp = string
|
||||
|
||||
export interface TimingStats {
|
||||
average_bucket_processing_time_ms: double
|
||||
average_bucket_processing_time_ms?: double
|
||||
bucket_count: long
|
||||
exponential_average_bucket_processing_time_ms: double
|
||||
exponential_average_bucket_processing_time_ms?: double
|
||||
exponential_average_bucket_processing_time_per_hour_ms: double
|
||||
job_id: string
|
||||
maximum_bucket_processing_time_ms: double
|
||||
minimum_bucket_processing_time_ms: double
|
||||
job_id: Id
|
||||
total_bucket_processing_time_ms: double
|
||||
maximum_bucket_processing_time_ms?: double
|
||||
minimum_bucket_processing_time_ms?: double
|
||||
}
|
||||
|
||||
export interface Token {
|
||||
@ -13063,11 +13206,25 @@ export interface UpdateByQueryResponse extends ResponseBase {
|
||||
throttled_until_millis?: ulong
|
||||
}
|
||||
|
||||
export interface UpdateByQueryRethrottleNode {
|
||||
attributes: Record<string, string>
|
||||
host: string
|
||||
transport_address: string
|
||||
ip: string
|
||||
name: Name
|
||||
roles: Array<string>
|
||||
tasks: Record<TaskId, TaskInfo>
|
||||
}
|
||||
|
||||
export interface UpdateByQueryRethrottleRequest extends RequestBase {
|
||||
task_id: Id
|
||||
requests_per_second?: long
|
||||
}
|
||||
|
||||
export interface UpdateByQueryRethrottleResponse extends ResponseBase {
|
||||
nodes: Record<string, UpdateByQueryRethrottleNode>
|
||||
}
|
||||
|
||||
export interface UpdateDatafeedRequest extends RequestBase {
|
||||
datafeed_id: Id
|
||||
allow_no_indices?: boolean
|
||||
@ -13077,8 +13234,11 @@ export interface UpdateDatafeedRequest extends RequestBase {
|
||||
body: {
|
||||
aggregations?: Record<string, AggregationContainer>
|
||||
chunking_config?: ChunkingConfig
|
||||
delayed_data_check_config?: DelayedDataCheckConfig
|
||||
frequency?: Time
|
||||
indexes?: Indices
|
||||
indices?: Indices
|
||||
indices_options?: DatafeedIndicesOptions
|
||||
job_id?: Id
|
||||
max_empty_searches?: integer
|
||||
query?: QueryContainer
|
||||
@ -13089,17 +13249,19 @@ export interface UpdateDatafeedRequest extends RequestBase {
|
||||
}
|
||||
|
||||
export interface UpdateDatafeedResponse extends ResponseBase {
|
||||
aggregations: Record<string, AggregationContainer>
|
||||
chunking_config: ChunkingConfig
|
||||
datafeed_id: string
|
||||
frequency: Time
|
||||
aggregations?: Record<string, AggregationContainer>
|
||||
chunking_config?: ChunkingConfig
|
||||
datafeed_id: Id
|
||||
frequency?: Time
|
||||
indices: Indices
|
||||
job_id: string
|
||||
max_empty_searches: integer
|
||||
max_empty_searches?: integer
|
||||
query: QueryContainer
|
||||
query_delay: Time
|
||||
script_fields: Record<string, ScriptField>
|
||||
script_fields?: Record<string, ScriptField>
|
||||
scroll_size: integer
|
||||
indices_options: DatafeedIndicesOptions
|
||||
delayed_data_check_config: DelayedDataCheckConfig
|
||||
}
|
||||
|
||||
export interface UpdateFilterRequest extends RequestBase {
|
||||
@ -13283,6 +13445,7 @@ export interface ValidateDetectorResponse extends AcknowledgedResponseBase {
|
||||
|
||||
export interface ValidateJobRequest extends RequestBase {
|
||||
body: {
|
||||
job_id?: Id
|
||||
analysis_config?: AnalysisConfig
|
||||
analysis_limits?: AnalysisLimits
|
||||
data_description?: DataDescription
|
||||
@ -13311,21 +13474,23 @@ export interface ValidateQueryRequest extends RequestBase {
|
||||
lenient?: boolean
|
||||
query_on_query_string?: string
|
||||
rewrite?: boolean
|
||||
q?: string
|
||||
body?: {
|
||||
query?: QueryContainer
|
||||
}
|
||||
}
|
||||
|
||||
export interface ValidateQueryResponse extends ResponseBase {
|
||||
explanations: Array<ValidationExplanation>
|
||||
_shards: ShardStatistics
|
||||
explanations?: Array<ValidationExplanation>
|
||||
_shards?: ShardStatistics
|
||||
valid: boolean
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface ValidationExplanation {
|
||||
error: string
|
||||
explanation: string
|
||||
index: string
|
||||
error?: string
|
||||
explanation?: string
|
||||
index: IndexName
|
||||
valid: boolean
|
||||
}
|
||||
|
||||
|
||||
@ -2304,8 +2304,8 @@ link:{ref}/cluster-reroute.html[Documentation] +
|
||||
[source,ts]
|
||||
----
|
||||
client.cluster.state({
|
||||
metric: string | string[],
|
||||
index: string | string[],
|
||||
metric: string | string[],
|
||||
local: boolean,
|
||||
master_timeout: string,
|
||||
flat_settings: boolean,
|
||||
@ -2319,12 +2319,12 @@ client.cluster.state({
|
||||
link:{ref}/cluster-state.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`metric`
|
||||
|`string \| string[]` - Limit the information returned to the specified metrics
|
||||
|
||||
|`index`
|
||||
|`string \| string[]` - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
|
||||
|
||||
|`metric`
|
||||
|`string \| string[]` - Limit the information returned to the specified metrics
|
||||
|
||||
|`local`
|
||||
|`boolean` - Return local information, do not retrieve the state from master node (default: false)
|
||||
|
||||
@ -3233,7 +3233,7 @@ client.features.getFeatures({
|
||||
master_timeout: string
|
||||
})
|
||||
----
|
||||
link:{ref}/modules-snapshots.html[Documentation] +
|
||||
link:{ref}/get-features-api.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`master_timeout` or `masterTimeout`
|
||||
@ -5574,6 +5574,16 @@ link:{ref}/delete-pipeline-api.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
[discrete]
|
||||
=== ingest.geoIpStats
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.ingest.geoIpStats()
|
||||
----
|
||||
link:{ref}/geoip-stats-api.html[Documentation] +
|
||||
|
||||
|
||||
[discrete]
|
||||
=== ingest.getPipeline
|
||||
|
||||
@ -7103,7 +7113,8 @@ link:{ref}/preview-dfanalytics.html[Documentation] +
|
||||
[source,ts]
|
||||
----
|
||||
client.ml.previewDatafeed({
|
||||
datafeed_id: string
|
||||
datafeed_id: string,
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:{ref}/ml-preview-datafeed.html[Documentation] +
|
||||
@ -7112,6 +7123,9 @@ link:{ref}/ml-preview-datafeed.html[Documentation] +
|
||||
|`datafeed_id` or `datafeedId`
|
||||
|`string` - The ID of the datafeed to preview
|
||||
|
||||
|`body`
|
||||
|`object` - The datafeed config and job config with which to execute the preview
|
||||
|
||||
|===
|
||||
|
||||
[discrete]
|
||||
@ -9488,6 +9502,61 @@ link:{ref}/security-api-put-user.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
[discrete]
|
||||
=== shutdown.deleteNode
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.shutdown.deleteNode({
|
||||
node_id: string
|
||||
})
|
||||
----
|
||||
link:https://www.elastic.co/guide/en/elasticsearch/reference/current[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`node_id` or `nodeId`
|
||||
|`string` - The node id of node to be removed from the shutdown state
|
||||
|
||||
|===
|
||||
|
||||
[discrete]
|
||||
=== shutdown.getNode
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.shutdown.getNode({
|
||||
node_id: string
|
||||
})
|
||||
----
|
||||
link:https://www.elastic.co/guide/en/elasticsearch/reference/current[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`node_id` or `nodeId`
|
||||
|`string` - Which node for which to retrieve the shutdown status
|
||||
|
||||
|===
|
||||
|
||||
[discrete]
|
||||
=== shutdown.putNode
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
----
|
||||
client.shutdown.putNode({
|
||||
node_id: string,
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:https://www.elastic.co/guide/en/elasticsearch/reference/current[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`node_id` or `nodeId`
|
||||
|`string` - The node id of node to be shut down
|
||||
|
||||
|`body`
|
||||
|`object` - The shutdown type definition to register
|
||||
|
||||
|===
|
||||
|
||||
[discrete]
|
||||
=== slm.deleteLifecycle
|
||||
|
||||
@ -10170,7 +10239,7 @@ _Default:_ `true`
|
||||
|
||||
[discrete]
|
||||
=== textStructure.findStructure
|
||||
*Stability:* experimental
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.textStructure.findStructure({
|
||||
|
||||
Reference in New Issue
Block a user