API generation
This commit is contained in:
@ -27,6 +27,7 @@ function buildCatMlDatafeeds (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_datafeeds',
|
||||
'format',
|
||||
'h',
|
||||
@ -37,6 +38,7 @@ function buildCatMlDatafeeds (opts) {
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoDatafeeds: 'allow_no_datafeeds'
|
||||
|
||||
}
|
||||
|
||||
@ -27,6 +27,7 @@ function buildCatMlJobs (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_jobs',
|
||||
'bytes',
|
||||
'format',
|
||||
@ -38,6 +39,7 @@ function buildCatMlJobs (opts) {
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoJobs: 'allow_no_jobs'
|
||||
|
||||
}
|
||||
|
||||
87
api/api/close_point_in_time.js
Normal file
87
api/api/close_point_in_time.js
Normal file
@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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 */
|
||||
|
||||
function buildClosePointInTime (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a close_point_in_time request
|
||||
* Close a point in time
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time.html
|
||||
*/
|
||||
return function closePointInTime (params, options, callback) {
|
||||
options = options || {}
|
||||
if (typeof options === 'function') {
|
||||
callback = options
|
||||
options = {}
|
||||
}
|
||||
if (typeof params === 'function' || params == null) {
|
||||
callback = params
|
||||
params = {}
|
||||
options = {}
|
||||
}
|
||||
|
||||
// validate headers object
|
||||
if (options.headers != null && typeof options.headers !== 'object') {
|
||||
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
var warnings = []
|
||||
var { method, body, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)
|
||||
|
||||
var ignore = options.ignore
|
||||
if (typeof ignore === 'number') {
|
||||
options.ignore = [ignore]
|
||||
}
|
||||
|
||||
var path = ''
|
||||
|
||||
if (method == null) method = 'DELETE'
|
||||
path = '/' + '_pit'
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
options.warnings = warnings.length === 0 ? null : warnings
|
||||
return makeRequest(request, options, callback)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = buildClosePointInTime
|
||||
@ -51,7 +51,7 @@ function buildIndicesAddBlock (opts) {
|
||||
/**
|
||||
* Perform a indices.add_block request
|
||||
* Adds a block to an index.
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-blocks.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html
|
||||
*/
|
||||
return function indicesAddBlock (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -36,7 +36,7 @@ function buildIndicesCreateDataStream (opts) {
|
||||
|
||||
/**
|
||||
* Perform a indices.create_data_stream request
|
||||
* Creates or updates a data stream
|
||||
* Creates a data stream
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html
|
||||
*/
|
||||
return function indicesCreateDataStream (params, options, callback) {
|
||||
|
||||
@ -44,7 +44,7 @@ function buildIndicesResolveIndex (opts) {
|
||||
/**
|
||||
* Perform a indices.resolve_index request
|
||||
* Returns information about any matching indices, aliases, and data streams
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index.html
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html
|
||||
*/
|
||||
return function indicesResolveIndex (params, options, callback) {
|
||||
options = options || {}
|
||||
|
||||
@ -27,12 +27,14 @@ function buildMlCloseJob (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_jobs',
|
||||
'force',
|
||||
'timeout'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoJobs: 'allow_no_jobs'
|
||||
|
||||
}
|
||||
|
||||
@ -27,10 +27,12 @@ function buildMlGetDatafeedStats (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_datafeeds'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoDatafeeds: 'allow_no_datafeeds'
|
||||
}
|
||||
|
||||
|
||||
@ -27,10 +27,12 @@ function buildMlGetDatafeeds (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_datafeeds'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoDatafeeds: 'allow_no_datafeeds'
|
||||
}
|
||||
|
||||
|
||||
@ -27,10 +27,12 @@ function buildMlGetJobStats (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_jobs'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoJobs: 'allow_no_jobs'
|
||||
}
|
||||
|
||||
|
||||
@ -27,10 +27,12 @@ function buildMlGetJobs (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_jobs'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoJobs: 'allow_no_jobs'
|
||||
}
|
||||
|
||||
|
||||
@ -33,6 +33,7 @@ function buildMlGetOverallBuckets (opts) {
|
||||
'exclude_interim',
|
||||
'start',
|
||||
'end',
|
||||
'allow_no_match',
|
||||
'allow_no_jobs'
|
||||
]
|
||||
|
||||
@ -41,6 +42,7 @@ function buildMlGetOverallBuckets (opts) {
|
||||
bucketSpan: 'bucket_span',
|
||||
overallScore: 'overall_score',
|
||||
excludeInterim: 'exclude_interim',
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoJobs: 'allow_no_jobs'
|
||||
}
|
||||
|
||||
|
||||
@ -27,12 +27,14 @@ function buildMlStopDatafeed (opts) {
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'allow_no_match',
|
||||
'allow_no_datafeeds',
|
||||
'force',
|
||||
'timeout'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
allowNoMatch: 'allow_no_match',
|
||||
allowNoDatafeeds: 'allow_no_datafeeds'
|
||||
|
||||
}
|
||||
|
||||
98
api/api/open_point_in_time.js
Normal file
98
api/api/open_point_in_time.js
Normal file
@ -0,0 +1,98 @@
|
||||
/*
|
||||
* 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 */
|
||||
|
||||
function buildOpenPointInTime (opts) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
|
||||
|
||||
const acceptedQuerystring = [
|
||||
'preference',
|
||||
'routing',
|
||||
'ignore_unavailable',
|
||||
'expand_wildcards',
|
||||
'keep_alive'
|
||||
]
|
||||
|
||||
const snakeCase = {
|
||||
ignoreUnavailable: 'ignore_unavailable',
|
||||
expandWildcards: 'expand_wildcards',
|
||||
keepAlive: 'keep_alive'
|
||||
}
|
||||
|
||||
/**
|
||||
* Perform a open_point_in_time request
|
||||
* Open a point in time that can be used in subsequent searches
|
||||
* https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time.html
|
||||
*/
|
||||
return function openPointInTime (params, options, callback) {
|
||||
options = options || {}
|
||||
if (typeof options === 'function') {
|
||||
callback = options
|
||||
options = {}
|
||||
}
|
||||
if (typeof params === 'function' || params == null) {
|
||||
callback = params
|
||||
params = {}
|
||||
options = {}
|
||||
}
|
||||
|
||||
// validate headers object
|
||||
if (options.headers != null && typeof options.headers !== 'object') {
|
||||
const err = new ConfigurationError(`Headers should be an object, instead got: ${typeof options.headers}`)
|
||||
return handleError(err, callback)
|
||||
}
|
||||
|
||||
var warnings = []
|
||||
var { method, body, index, ...querystring } = params
|
||||
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring, warnings)
|
||||
|
||||
var ignore = options.ignore
|
||||
if (typeof ignore === 'number') {
|
||||
options.ignore = [ignore]
|
||||
}
|
||||
|
||||
var path = ''
|
||||
|
||||
if ((index) != null) {
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + encodeURIComponent(index) + '/' + '_pit'
|
||||
} else {
|
||||
if (method == null) method = 'POST'
|
||||
path = '/' + '_pit'
|
||||
}
|
||||
|
||||
// build request object
|
||||
const request = {
|
||||
method,
|
||||
path,
|
||||
body: body || '',
|
||||
querystring
|
||||
}
|
||||
|
||||
options.warnings = warnings.length === 0 ? null : warnings
|
||||
return makeRequest(request, options, callback)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = buildOpenPointInTime
|
||||
@ -112,6 +112,8 @@ function ESAPI (opts) {
|
||||
},
|
||||
clear_scroll: lazyLoad('clear_scroll', opts),
|
||||
clearScroll: lazyLoad('clear_scroll', opts),
|
||||
close_point_in_time: lazyLoad('close_point_in_time', opts),
|
||||
closePointInTime: lazyLoad('close_point_in_time', opts),
|
||||
cluster: {
|
||||
allocation_explain: lazyLoad('cluster.allocation_explain', opts),
|
||||
allocationExplain: lazyLoad('cluster.allocation_explain', opts),
|
||||
@ -505,6 +507,8 @@ function ESAPI (opts) {
|
||||
stats: lazyLoad('nodes.stats', opts),
|
||||
usage: lazyLoad('nodes.usage', opts)
|
||||
},
|
||||
open_point_in_time: lazyLoad('open_point_in_time', opts),
|
||||
openPointInTime: lazyLoad('open_point_in_time', opts),
|
||||
ping: lazyLoad('ping', opts),
|
||||
put_script: lazyLoad('put_script', opts),
|
||||
putScript: lazyLoad('put_script', opts),
|
||||
|
||||
6
api/kibana.d.ts
vendored
6
api/kibana.d.ts
vendored
@ -130,6 +130,7 @@ interface KibanaClient {
|
||||
unfollow<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.CcrUnfollow, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
}
|
||||
clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClearScroll<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
closePointInTime<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClosePointInTime<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
cluster: {
|
||||
allocationExplain<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClusterAllocationExplain<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
deleteComponentTemplate<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.ClusterDeleteComponentTemplate, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
@ -212,7 +213,7 @@ interface KibanaClient {
|
||||
clone<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesClone<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
close<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesClose, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
create<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreate<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
createDataStream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreateDataStream<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
createDataStream<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
dataStreamsStats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesDataStreamsStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
delete<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesDelete, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
deleteAlias<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesDeleteAlias, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
@ -333,7 +334,7 @@ interface KibanaClient {
|
||||
startDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStartDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
startDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStartDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stopDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stopDatafeed<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stopDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
updateDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
updateDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
updateFilter<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateFilter<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
@ -355,6 +356,7 @@ interface KibanaClient {
|
||||
stats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.NodesStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
usage<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.NodesUsage, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
}
|
||||
openPointInTime<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.OpenPointInTime, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
ping<TResponse = boolean, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
putScript<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.PutScript<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
rankEval<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.RankEval<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
|
||||
28
api/requestParams.d.ts
vendored
28
api/requestParams.d.ts
vendored
@ -1538,6 +1538,7 @@ export interface CatMlDataFrameAnalytics extends Generic {
|
||||
|
||||
export interface CatMlDatafeeds extends Generic {
|
||||
datafeed_id?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_datafeeds?: boolean;
|
||||
format?: string;
|
||||
h?: string | string[];
|
||||
@ -1549,6 +1550,7 @@ export interface CatMlDatafeeds extends Generic {
|
||||
|
||||
export interface CatMlJobs extends Generic {
|
||||
job_id?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_jobs?: boolean;
|
||||
bytes?: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb';
|
||||
format?: string;
|
||||
@ -1642,6 +1644,10 @@ export interface CcrUnfollow extends Generic {
|
||||
index: string;
|
||||
}
|
||||
|
||||
export interface ClosePointInTime<T = RequestBody> extends Generic {
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface DataFrameTransformDeprecatedDeleteTransform extends Generic {
|
||||
transform_id: string;
|
||||
force?: boolean;
|
||||
@ -1776,9 +1782,8 @@ export interface IlmStart extends Generic {
|
||||
export interface IlmStop extends Generic {
|
||||
}
|
||||
|
||||
export interface IndicesCreateDataStream<T = RequestBody> extends Generic {
|
||||
export interface IndicesCreateDataStream extends Generic {
|
||||
name: string;
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface IndicesDataStreamsStats extends Generic {
|
||||
@ -1854,6 +1859,7 @@ export interface MigrationDeprecations extends Generic {
|
||||
|
||||
export interface MlCloseJob<T = RequestBody> extends Generic {
|
||||
job_id: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_jobs?: boolean;
|
||||
force?: boolean;
|
||||
timeout?: string;
|
||||
@ -2023,11 +2029,13 @@ export interface MlGetDataFrameAnalyticsStats extends Generic {
|
||||
|
||||
export interface MlGetDatafeedStats extends Generic {
|
||||
datafeed_id?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_datafeeds?: boolean;
|
||||
}
|
||||
|
||||
export interface MlGetDatafeeds extends Generic {
|
||||
datafeed_id?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_datafeeds?: boolean;
|
||||
}
|
||||
|
||||
@ -2052,11 +2060,13 @@ export interface MlGetInfluencers<T = RequestBody> extends Generic {
|
||||
|
||||
export interface MlGetJobStats extends Generic {
|
||||
job_id?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_jobs?: boolean;
|
||||
}
|
||||
|
||||
export interface MlGetJobs extends Generic {
|
||||
job_id?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_jobs?: boolean;
|
||||
}
|
||||
|
||||
@ -2080,6 +2090,7 @@ export interface MlGetOverallBuckets<T = RequestBody> extends Generic {
|
||||
exclude_interim?: boolean;
|
||||
start?: string;
|
||||
end?: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_jobs?: boolean;
|
||||
body?: T;
|
||||
}
|
||||
@ -2211,11 +2222,13 @@ export interface MlStopDataFrameAnalytics<T = RequestBody> extends Generic {
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface MlStopDatafeed extends Generic {
|
||||
export interface MlStopDatafeed<T = RequestBody> extends Generic {
|
||||
datafeed_id: string;
|
||||
allow_no_match?: boolean;
|
||||
allow_no_datafeeds?: boolean;
|
||||
force?: boolean;
|
||||
timeout?: string;
|
||||
body?: T;
|
||||
}
|
||||
|
||||
export interface MlUpdateDataFrameAnalytics<T = RequestBody> extends Generic {
|
||||
@ -2264,6 +2277,15 @@ export interface MonitoringBulk<T = RequestNDBody> extends Generic {
|
||||
body: T;
|
||||
}
|
||||
|
||||
export interface OpenPointInTime extends Generic {
|
||||
index?: string | string[];
|
||||
preference?: string;
|
||||
routing?: string;
|
||||
ignore_unavailable?: boolean;
|
||||
expand_wildcards?: 'open' | 'closed' | 'hidden' | 'none' | 'all';
|
||||
keep_alive?: string;
|
||||
}
|
||||
|
||||
export interface RollupDeleteJob extends Generic {
|
||||
id: string;
|
||||
}
|
||||
|
||||
@ -2431,7 +2431,7 @@ client.indices.addBlock({
|
||||
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
|
||||
})
|
||||
----
|
||||
|
||||
link:{ref}/index-modules-blocks.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`index`
|
||||
@ -3583,7 +3583,7 @@ client.indices.resolveIndex({
|
||||
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all'
|
||||
})
|
||||
----
|
||||
|
||||
link:{ref}/indices-resolve-index-api.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`name`
|
||||
@ -6128,6 +6128,7 @@ link:{ref}/cat-dfanalytics.html[Documentation] +
|
||||
----
|
||||
client.cat.mlDatafeeds({
|
||||
datafeed_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_datafeeds: boolean,
|
||||
format: string,
|
||||
h: string | string[],
|
||||
@ -6143,9 +6144,14 @@ link:{ref}/cat-datafeeds.html[Documentation] +
|
||||
|`datafeed_id` or `datafeedId`
|
||||
|`string` - The ID of the datafeeds stats to fetch
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|`format`
|
||||
|`string` - a short version of the Accept header, e.g. json, yaml
|
||||
|
||||
@ -6172,6 +6178,7 @@ link:{ref}/cat-datafeeds.html[Documentation] +
|
||||
----
|
||||
client.cat.mlJobs({
|
||||
job_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_jobs: boolean,
|
||||
bytes: 'b' | 'k' | 'kb' | 'm' | 'mb' | 'g' | 'gb' | 't' | 'tb' | 'p' | 'pb',
|
||||
format: string,
|
||||
@ -6188,9 +6195,14 @@ link:{ref}/cat-anomaly-detectors.html[Documentation] +
|
||||
|`job_id` or `jobId`
|
||||
|`string` - The ID of the jobs stats to fetch
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|`bytes`
|
||||
|`'b' \| 'k' \| 'kb' \| 'm' \| 'mb' \| 'g' \| 'gb' \| 't' \| 'tb' \| 'p' \| 'pb'` - The unit in which to display byte values
|
||||
|
||||
@ -6546,6 +6558,22 @@ link:{ref}/ccr-post-unfollow.html[Documentation] +
|
||||
|
||||
|===
|
||||
|
||||
=== closePointInTime
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.closePointInTime({
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:{ref}/point-in-time.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`body`
|
||||
|`object` - a point-in-time id to close
|
||||
|
||||
|===
|
||||
|
||||
=== dataFrameTransformDeprecated.deleteTransform
|
||||
*Stability:* beta
|
||||
[source,ts]
|
||||
@ -7078,8 +7106,7 @@ link:{ref}/ilm-stop.html[Documentation] +
|
||||
[source,ts]
|
||||
----
|
||||
client.indices.createDataStream({
|
||||
name: string,
|
||||
body: object
|
||||
name: string
|
||||
})
|
||||
----
|
||||
link:{ref}/data-streams.html[Documentation] +
|
||||
@ -7088,9 +7115,6 @@ link:{ref}/data-streams.html[Documentation] +
|
||||
|`name`
|
||||
|`string` - The name of the data stream
|
||||
|
||||
|`body`
|
||||
|`object` - The data stream definition
|
||||
|
||||
|===
|
||||
|
||||
=== indices.dataStreamsStats
|
||||
@ -7379,6 +7403,7 @@ link:{ref}/migration-api-deprecation.html[Documentation] +
|
||||
----
|
||||
client.ml.closeJob({
|
||||
job_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_jobs: boolean,
|
||||
force: boolean,
|
||||
timeout: string,
|
||||
@ -7391,9 +7416,14 @@ link:{ref}/ml-close-job.html[Documentation] +
|
||||
|`job_id` or `jobId`
|
||||
|`string` - The name of the job to close
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|`force`
|
||||
|`boolean` - True if the job should be forcefully closed
|
||||
|
||||
@ -8063,6 +8093,7 @@ _Default:_ `100`
|
||||
----
|
||||
client.ml.getDatafeedStats({
|
||||
datafeed_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_datafeeds: boolean
|
||||
})
|
||||
----
|
||||
@ -8072,9 +8103,14 @@ link:{ref}/ml-get-datafeed-stats.html[Documentation] +
|
||||
|`datafeed_id` or `datafeedId`
|
||||
|`string` - The ID of the datafeeds stats to fetch
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|===
|
||||
|
||||
=== ml.getDatafeeds
|
||||
@ -8083,6 +8119,7 @@ link:{ref}/ml-get-datafeed-stats.html[Documentation] +
|
||||
----
|
||||
client.ml.getDatafeeds({
|
||||
datafeed_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_datafeeds: boolean
|
||||
})
|
||||
----
|
||||
@ -8092,9 +8129,14 @@ link:{ref}/ml-get-datafeed.html[Documentation] +
|
||||
|`datafeed_id` or `datafeedId`
|
||||
|`string` - The ID of the datafeeds to fetch
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|===
|
||||
|
||||
=== ml.getFilters
|
||||
@ -8179,6 +8221,7 @@ link:{ref}/ml-get-influencer.html[Documentation] +
|
||||
----
|
||||
client.ml.getJobStats({
|
||||
job_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_jobs: boolean
|
||||
})
|
||||
----
|
||||
@ -8188,9 +8231,14 @@ link:{ref}/ml-get-job-stats.html[Documentation] +
|
||||
|`job_id` or `jobId`
|
||||
|`string` - The ID of the jobs stats to fetch
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|===
|
||||
|
||||
=== ml.getJobs
|
||||
@ -8199,6 +8247,7 @@ link:{ref}/ml-get-job-stats.html[Documentation] +
|
||||
----
|
||||
client.ml.getJobs({
|
||||
job_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_jobs: boolean
|
||||
})
|
||||
----
|
||||
@ -8208,9 +8257,14 @@ link:{ref}/ml-get-job.html[Documentation] +
|
||||
|`job_id` or `jobId`
|
||||
|`string` - The ID of the jobs to fetch
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|===
|
||||
|
||||
=== ml.getModelSnapshots
|
||||
@ -8273,6 +8327,7 @@ client.ml.getOverallBuckets({
|
||||
exclude_interim: boolean,
|
||||
start: string,
|
||||
end: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_jobs: boolean,
|
||||
body: object
|
||||
})
|
||||
@ -8301,9 +8356,14 @@ link:{ref}/ml-get-overall-buckets.html[Documentation] +
|
||||
|`end`
|
||||
|`string` - Returns overall buckets with timestamps earlier than this time
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified)
|
||||
|
||||
|`allow_no_jobs` or `allowNoJobs`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no jobs. (This includes `_all` string or when no jobs have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|`body`
|
||||
|`object` - Overall bucket selection details if not provided in URI
|
||||
|
||||
@ -8825,9 +8885,11 @@ link:{ref}/stop-dfanalytics.html[Documentation] +
|
||||
----
|
||||
client.ml.stopDatafeed({
|
||||
datafeed_id: string,
|
||||
allow_no_match: boolean,
|
||||
allow_no_datafeeds: boolean,
|
||||
force: boolean,
|
||||
timeout: string
|
||||
timeout: string,
|
||||
body: object
|
||||
})
|
||||
----
|
||||
link:{ref}/ml-stop-datafeed.html[Documentation] +
|
||||
@ -8836,15 +8898,23 @@ link:{ref}/ml-stop-datafeed.html[Documentation] +
|
||||
|`datafeed_id` or `datafeedId`
|
||||
|`string` - The ID of the datafeed to stop
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`allow_no_match` or `allowNoMatch`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
|
||||
|
||||
|`allow_no_datafeeds` or `allowNoDatafeeds`
|
||||
|`boolean` - Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|`force`
|
||||
|`boolean` - True if the datafeed should be forcefully stopped.
|
||||
|
||||
|`timeout`
|
||||
|`string` - Controls the time to wait until a datafeed has stopped. Default to 20 seconds
|
||||
|
||||
|`body`
|
||||
|`object` - The URL params optionally sent in the body
|
||||
|
||||
|===
|
||||
|
||||
=== ml.updateDataFrameAnalytics
|
||||
@ -9033,6 +9103,43 @@ WARNING: This parameter has been deprecated.
|
||||
|
||||
|===
|
||||
|
||||
=== openPointInTime
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
client.openPointInTime({
|
||||
index: string | string[],
|
||||
preference: string,
|
||||
routing: string,
|
||||
ignore_unavailable: boolean,
|
||||
expand_wildcards: 'open' | 'closed' | 'hidden' | 'none' | 'all',
|
||||
keep_alive: string
|
||||
})
|
||||
----
|
||||
link:{ref}/point-in-time.html[Documentation] +
|
||||
[cols=2*]
|
||||
|===
|
||||
|`index`
|
||||
|`string \| string[]` - A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices
|
||||
|
||||
|`preference`
|
||||
|`string` - Specify the node or shard the operation should be performed on (default: random)
|
||||
|
||||
|`routing`
|
||||
|`string` - Specific routing value
|
||||
|
||||
|`ignore_unavailable` or `ignoreUnavailable`
|
||||
|`boolean` - Whether specified concrete indices should be ignored when unavailable (missing or closed)
|
||||
|
||||
|`expand_wildcards` or `expandWildcards`
|
||||
|`'open' \| 'closed' \| 'hidden' \| 'none' \| 'all'` - Whether to expand wildcard expression to concrete indices that are open, closed or both. +
|
||||
_Default:_ `open`
|
||||
|
||||
|`keep_alive` or `keepAlive`
|
||||
|`string` - Specific the time to live for the point in time
|
||||
|
||||
|===
|
||||
|
||||
=== rollup.deleteJob
|
||||
*Stability:* experimental
|
||||
[source,ts]
|
||||
@ -10360,7 +10467,7 @@ link:{ref}/info-api.html[Documentation] +
|
||||
|`string \| string[]` - Comma-separated list of info categories. Can be any of: build, license, features
|
||||
|
||||
|`accept_enterprise` or `acceptEnterprise`
|
||||
|`boolean` - Supported for backwards compatibility with 7.x. If this param is used it must be set to true +
|
||||
|`boolean` - If this param is used it must be set to true +
|
||||
|
||||
WARNING: This parameter has been deprecated.
|
||||
|
||||
|
||||
48
index.d.ts
vendored
48
index.d.ts
vendored
@ -433,6 +433,14 @@ declare class Client {
|
||||
clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClearScroll<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
clearScroll<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClearScroll<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
close_point_in_time<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClosePointInTime<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
close_point_in_time<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
close_point_in_time<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClosePointInTime<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
close_point_in_time<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClosePointInTime<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
closePointInTime<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClosePointInTime<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
closePointInTime<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
closePointInTime<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClosePointInTime<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
closePointInTime<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.ClosePointInTime<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
cluster: {
|
||||
allocation_explain<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.ClusterAllocationExplain<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
allocation_explain<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
@ -984,14 +992,14 @@ declare class Client {
|
||||
create<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreate<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreate<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create_data_stream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreateDataStream<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
create_data_stream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create_data_stream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create_data_stream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreateDataStream<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
createDataStream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create_data_stream<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
create_data_stream<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create_data_stream<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
create_data_stream<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesCreateDataStream, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
createDataStream<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
createDataStream<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.IndicesCreateDataStream, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
data_streams_stats<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.IndicesDataStreamsStats, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
data_streams_stats<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
data_streams_stats<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.IndicesDataStreamsStats, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
@ -1796,14 +1804,14 @@ declare class Client {
|
||||
stopDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDataFrameAnalytics<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDataFrameAnalytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDataFrameAnalytics<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stop_datafeed<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stop_datafeed<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stop_datafeed<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stop_datafeed<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDatafeed<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stopDatafeed<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDatafeed<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDatafeed<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stop_datafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stop_datafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stop_datafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stop_datafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlStopDatafeed<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
stopDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
stopDatafeed<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlStopDatafeed<TRequestBody>, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
update_data_frame_analytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params?: RequestParams.MlUpdateDataFrameAnalytics<TRequestBody>, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
update_data_frame_analytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
update_data_frame_analytics<TResponse = Record<string, any>, TRequestBody extends RequestBody = Record<string, any>, TContext = Context>(params: RequestParams.MlUpdateDataFrameAnalytics<TRequestBody>, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
@ -1909,6 +1917,14 @@ declare class Client {
|
||||
usage<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.NodesUsage, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
usage<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.NodesUsage, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
}
|
||||
open_point_in_time<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.OpenPointInTime, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
open_point_in_time<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
open_point_in_time<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.OpenPointInTime, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
open_point_in_time<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.OpenPointInTime, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
openPointInTime<TResponse = Record<string, any>, TContext = Context>(params?: RequestParams.OpenPointInTime, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
openPointInTime<TResponse = Record<string, any>, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
openPointInTime<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.OpenPointInTime, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
openPointInTime<TResponse = Record<string, any>, TContext = Context>(params: RequestParams.OpenPointInTime, options: TransportRequestOptions, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
ping<TResponse = boolean, TContext = Context>(params?: RequestParams.Ping, options?: TransportRequestOptions): TransportRequestPromise<ApiResponse<TResponse, TContext>>
|
||||
ping<TResponse = boolean, TContext = Context>(callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
ping<TResponse = boolean, TContext = Context>(params: RequestParams.Ping, callback: callbackFn<TResponse, TContext>): TransportRequestCallback
|
||||
|
||||
Reference in New Issue
Block a user