API generation

This commit is contained in:
delvedor
2020-04-02 07:48:45 +02:00
parent 1d24147ada
commit bb28276553
191 changed files with 413 additions and 59 deletions

View File

@ -21,6 +21,7 @@ function buildAsyncSearchDelete (opts) {
/**
* Perform a async_search.delete request
* Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
*/
return function asyncSearchDelete (params, options, callback) {

View File

@ -25,6 +25,7 @@ function buildAsyncSearchGet (opts) {
/**
* Perform a async_search.get request
* Retrieves the results of a previously submitted async search request given its ID.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
*/
return function asyncSearchGet (params, options, callback) {

View File

@ -91,6 +91,7 @@ function buildAsyncSearchSubmit (opts) {
/**
* Perform a async_search.submit request
* Executes a search request asynchronously.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html
*/
return function asyncSearchSubmit (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildAutoscalingGetAutoscalingDecision (opts) {
/**
* Perform a autoscaling.get_autoscaling_decision request
* Gets the current autoscaling decision based on the configured autoscaling policy, indicating whether or not autoscaling is needed.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-decision.html
*/
return function autoscalingGetAutoscalingDecision (params, options, callback) {

View File

@ -0,0 +1,81 @@
// Licensed to Elasticsearch B.V under one or more agreements.
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information
'use strict'
/* eslint camelcase: 0 */
/* eslint no-unused-vars: 0 */
function buildAutoscalingPutAutoscalingPolicy (opts) {
// eslint-disable-next-line no-unused-vars
const { makeRequest, ConfigurationError, handleError, snakeCaseKeys } = opts
const acceptedQuerystring = [
]
const snakeCase = {
}
/**
* Perform a autoscaling.put_autoscaling_policy request
* https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html
*/
return function autoscalingPutAutoscalingPolicy (params, options, callback) {
options = options || {}
if (typeof options === 'function') {
callback = options
options = {}
}
if (typeof params === 'function' || params == null) {
callback = params
params = {}
options = {}
}
// check required parameters
if (params['name'] == null) {
const err = new ConfigurationError('Missing required parameter: name')
return handleError(err, callback)
}
if (params['body'] == null) {
const err = new ConfigurationError('Missing required parameter: body')
return handleError(err, callback)
}
// 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, name, ...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 = 'PUT'
path = '/' + '_autoscaling' + '/' + 'policy' + '/' + encodeURIComponent(name)
// build request object
const request = {
method,
path,
body: body || '',
querystring
}
options.warnings = warnings.length === 0 ? null : warnings
return makeRequest(request, options, callback)
}
}
module.exports = buildAutoscalingPutAutoscalingPolicy

View File

@ -29,6 +29,7 @@ function buildCatMlDataFrameAnalytics (opts) {
/**
* Perform a cat.ml_data_frame_analytics request
* Gets configuration and usage information about data frame analytics jobs.
* http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html
*/
return function catMlDataFrameAnalytics (params, options, callback) {

View File

@ -28,6 +28,7 @@ function buildCatMlDatafeeds (opts) {
/**
* Perform a cat.ml_datafeeds request
* Gets configuration and usage information about datafeeds.
* http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html
*/
return function catMlDatafeeds (params, options, callback) {

View File

@ -29,6 +29,7 @@ function buildCatMlJobs (opts) {
/**
* Perform a cat.ml_jobs request
* Gets configuration and usage information about anomaly detection jobs.
* http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html
*/
return function catMlJobs (params, options, callback) {

View File

@ -31,6 +31,7 @@ function buildCatMlTrainedModels (opts) {
/**
* Perform a cat.ml_trained_models request
* Gets configuration and usage information about inference trained models.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html
*/
return function catMlTrainedModels (params, options, callback) {

View File

@ -30,6 +30,7 @@ function buildCatTransform (opts) {
/**
* Perform a cat.transform request
* Gets configuration and usage information about transforms.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html
*/
return function catTransform (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrDeleteAutoFollowPattern (opts) {
/**
* Perform a ccr.delete_auto_follow_pattern request
* Deletes auto-follow patterns.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html
*/
return function ccrDeleteAutoFollowPattern (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrFollow (opts) {
/**
* Perform a ccr.follow request
* Creates a new follower index configured to follow the referenced leader index.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html
*/
return function ccrFollow (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrFollowInfo (opts) {
/**
* Perform a ccr.follow_info request
* Retrieves information about all follower indices, including parameters and status for each follower index
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html
*/
return function ccrFollowInfo (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrFollowStats (opts) {
/**
* Perform a ccr.follow_stats request
* Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html
*/
return function ccrFollowStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrForgetFollower (opts) {
/**
* Perform a ccr.forget_follower request
* Removes the follower retention leases from the leader.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html
*/
return function ccrForgetFollower (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrGetAutoFollowPattern (opts) {
/**
* Perform a ccr.get_auto_follow_pattern request
* Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html
*/
return function ccrGetAutoFollowPattern (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrPauseAutoFollowPattern (opts) {
/**
* Perform a ccr.pause_auto_follow_pattern request
* Pauses an auto-follow pattern
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html
*/
return function ccrPauseAutoFollowPattern (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrPauseFollow (opts) {
/**
* Perform a ccr.pause_follow request
* Pauses a follower index. The follower index will not fetch any additional operations from the leader index.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html
*/
return function ccrPauseFollow (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrPutAutoFollowPattern (opts) {
/**
* Perform a ccr.put_auto_follow_pattern request
* Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html
*/
return function ccrPutAutoFollowPattern (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrResumeAutoFollowPattern (opts) {
/**
* Perform a ccr.resume_auto_follow_pattern request
* Resumes an auto-follow pattern that has been paused
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html
*/
return function ccrResumeAutoFollowPattern (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrResumeFollow (opts) {
/**
* Perform a ccr.resume_follow request
* Resumes a follower index that has been paused
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html
*/
return function ccrResumeFollow (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrStats (opts) {
/**
* Perform a ccr.stats request
* Gets all stats related to cross-cluster replication.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html
*/
return function ccrStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildCcrUnfollow (opts) {
/**
* Perform a ccr.unfollow request
* Stops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html
*/
return function ccrUnfollow (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildDataFrameTransformDeprecatedDeleteTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.delete_transform request
* Deletes an existing transform.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html
*/
return function dataFrameTransformDeprecatedDeleteTransform (params, options, callback) {

View File

@ -23,6 +23,7 @@ function buildDataFrameTransformDeprecatedGetTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.get_transform request
* Retrieves configuration information for transforms.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html
*/
return function dataFrameTransformDeprecatedGetTransform (params, options, callback) {

View File

@ -23,6 +23,7 @@ function buildDataFrameTransformDeprecatedGetTransformStats (opts) {
/**
* Perform a data_frame_transform_deprecated.get_transform_stats request
* Retrieves usage information for transforms.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html
*/
return function dataFrameTransformDeprecatedGetTransformStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildDataFrameTransformDeprecatedPreviewTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.preview_transform request
* Previews a transform.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html
*/
return function dataFrameTransformDeprecatedPreviewTransform (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildDataFrameTransformDeprecatedPutTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.put_transform request
* Instantiates a transform.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html
*/
return function dataFrameTransformDeprecatedPutTransform (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildDataFrameTransformDeprecatedStartTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.start_transform request
* Starts one or more transforms.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html
*/
return function dataFrameTransformDeprecatedStartTransform (params, options, callback) {

View File

@ -24,6 +24,7 @@ function buildDataFrameTransformDeprecatedStopTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.stop_transform request
* Stops one or more transforms.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html
*/
return function dataFrameTransformDeprecatedStopTransform (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildDataFrameTransformDeprecatedUpdateTransform (opts) {
/**
* Perform a data_frame_transform_deprecated.update_transform request
* Updates certain properties of a transform.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html
*/
return function dataFrameTransformDeprecatedUpdateTransform (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildEnrichDeletePolicy (opts) {
/**
* Perform a enrich.delete_policy request
* Deletes an existing enrich policy and its enrich index.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html
*/
return function enrichDeletePolicy (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildEnrichExecutePolicy (opts) {
/**
* Perform a enrich.execute_policy request
* Creates the enrich index for an existing enrich policy.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html
*/
return function enrichExecutePolicy (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildEnrichGetPolicy (opts) {
/**
* Perform a enrich.get_policy request
* Gets information about an enrich policy.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html
*/
return function enrichGetPolicy (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildEnrichPutPolicy (opts) {
/**
* Perform a enrich.put_policy request
* Creates a new enrich policy.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html
*/
return function enrichPutPolicy (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildEnrichStats (opts) {
/**
* Perform a enrich.stats request
* Gets enrich coordinator statistics and information about enrich policies that are currently executing.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html
*/
return function enrichStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildEqlSearch (opts) {
/**
* Perform a eql.search request
* Returns results matching a query expressed in Event Query Language (EQL)
* https://www.elastic.co/guide/en/elasticsearch/reference/current/eql.html
*/
return function eqlSearch (params, options, callback) {

View File

@ -27,6 +27,7 @@ function buildGetScriptContext (opts) {
/**
* Perform a get_script_context request
* Returns all script contexts.
* https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html
*/
return function getScriptContext (params, options, callback) {
options = options || {}

View File

@ -27,6 +27,7 @@ function buildGetScriptLanguages (opts) {
/**
* Perform a get_script_languages request
* Returns available script types, languages and contexts
* https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html
*/
return function getScriptLanguages (params, options, callback) {
options = options || {}

View File

@ -22,6 +22,7 @@ function buildGraphExplore (opts) {
/**
* Perform a graph.explore request
* Explore extracted and summarized information about the documents and terms in an index.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html
*/
return function graphExplore (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmDeleteLifecycle (opts) {
/**
* Perform a ilm.delete_lifecycle request
* Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html
*/
return function ilmDeleteLifecycle (params, options, callback) {

View File

@ -23,6 +23,7 @@ function buildIlmExplainLifecycle (opts) {
/**
* Perform a ilm.explain_lifecycle request
* Retrieves information about the index's current lifecycle state, such as the currently executing phase, action, and step.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html
*/
return function ilmExplainLifecycle (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmGetLifecycle (opts) {
/**
* Perform a ilm.get_lifecycle request
* Returns the specified policy definition. Includes the policy version and last modified date.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html
*/
return function ilmGetLifecycle (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmGetStatus (opts) {
/**
* Perform a ilm.get_status request
* Retrieves the current index lifecycle management (ILM) status.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html
*/
return function ilmGetStatus (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmMoveToStep (opts) {
/**
* Perform a ilm.move_to_step request
* Manually moves an index into the specified step and executes that step.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html
*/
return function ilmMoveToStep (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmPutLifecycle (opts) {
/**
* Perform a ilm.put_lifecycle request
* Creates a lifecycle policy
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html
*/
return function ilmPutLifecycle (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmRemovePolicy (opts) {
/**
* Perform a ilm.remove_policy request
* Removes the assigned lifecycle policy and stops managing the specified index
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html
*/
return function ilmRemovePolicy (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmRetry (opts) {
/**
* Perform a ilm.retry request
* Retries executing the policy for an index that is in the ERROR step.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html
*/
return function ilmRetry (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmStart (opts) {
/**
* Perform a ilm.start request
* Start the index lifecycle management (ILM) plugin.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html
*/
return function ilmStart (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildIlmStop (opts) {
/**
* Perform a ilm.stop request
* Halts all lifecycle management operations and stops the index lifecycle management (ILM) plugin
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html
*/
return function ilmStop (params, options, callback) {

View File

@ -30,7 +30,8 @@ function buildIndicesFreeze (opts) {
/**
* Perform a indices.freeze request
* https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html
* Freezes an index. A frozen index has almost no overhead on the cluster (except for maintaining its metadata in memory) and is read-only.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html
*/
return function indicesFreeze (params, options, callback) {
options = options || {}

View File

@ -25,6 +25,7 @@ function buildIndicesReloadSearchAnalyzers (opts) {
/**
* Perform a indices.reload_search_analyzers request
* Reloads an index's search analyzers and their resources.
* https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html
*/
return function indicesReloadSearchAnalyzers (params, options, callback) {

View File

@ -30,7 +30,8 @@ function buildIndicesUnfreeze (opts) {
/**
* Perform a indices.unfreeze request
* https://www.elastic.co/guide/en/elasticsearch/reference/current/frozen.html
* Unfreezes an index. When a frozen index is unfrozen, the index goes through the normal recovery process and becomes writeable again.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html
*/
return function indicesUnfreeze (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,7 @@ function buildLicenseDelete (opts) {
/**
* Perform a license.delete request
* Deletes licensing information for the cluster
* https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html
*/
return function licenseDelete (params, options, callback) {

View File

@ -22,6 +22,7 @@ function buildLicenseGet (opts) {
/**
* Perform a license.get request
* Retrieves licensing information for the cluster
* https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html
*/
return function licenseGet (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildLicenseGetBasicStatus (opts) {
/**
* Perform a license.get_basic_status request
* Retrieves information about the status of the basic license.
* https://www.elastic.co/guide/en/elasticsearch/reference/master/get-basic-status.html
*/
return function licenseGetBasicStatus (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildLicenseGetTrialStatus (opts) {
/**
* Perform a license.get_trial_status request
* Retrieves information about the status of the trial license.
* https://www.elastic.co/guide/en/elasticsearch/reference/master/get-trial-status.html
*/
return function licenseGetTrialStatus (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildLicensePost (opts) {
/**
* Perform a license.post request
* Updates the license for the cluster.
* https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html
*/
return function licensePost (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildLicensePostStartBasic (opts) {
/**
* Perform a license.post_start_basic request
* Starts an indefinite basic license.
* https://www.elastic.co/guide/en/elasticsearch/reference/master/start-basic.html
*/
return function licensePostStartBasic (params, options, callback) {

View File

@ -22,6 +22,7 @@ function buildLicensePostStartTrial (opts) {
/**
* Perform a license.post_start_trial request
* starts a limited time trial license.
* https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html
*/
return function licensePostStartTrial (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMigrationDeprecations (opts) {
/**
* Perform a migration.deprecations request
* Retrieves information about different cluster, node, and index level settings that use deprecated features that will be removed or changed in the next major version.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html
*/
return function migrationDeprecations (params, options, callback) {

View File

@ -24,6 +24,7 @@ function buildMlCloseJob (opts) {
/**
* Perform a ml.close_job request
* Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html
*/
return function mlCloseJob (params, options, callback) {

View File

@ -21,6 +21,8 @@ function buildMlDeleteCalendar (opts) {
/**
* Perform a ml.delete_calendar request
* Deletes a calendar.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html
*/
return function mlDeleteCalendar (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,8 @@ function buildMlDeleteCalendarEvent (opts) {
/**
* Perform a ml.delete_calendar_event request
* Deletes scheduled events from a calendar.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html
*/
return function mlDeleteCalendarEvent (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,8 @@ function buildMlDeleteCalendarJob (opts) {
/**
* Perform a ml.delete_calendar_job request
* Deletes anomaly detection jobs from a calendar.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html
*/
return function mlDeleteCalendarJob (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,7 @@ function buildMlDeleteDataFrameAnalytics (opts) {
/**
* Perform a ml.delete_data_frame_analytics request
* Deletes an existing data frame analytics job.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html
*/
return function mlDeleteDataFrameAnalytics (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlDeleteDatafeed (opts) {
/**
* Perform a ml.delete_datafeed request
* Deletes an existing datafeed.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html
*/
return function mlDeleteDatafeed (params, options, callback) {

View File

@ -21,6 +21,8 @@ function buildMlDeleteExpiredData (opts) {
/**
* Perform a ml.delete_expired_data request
* Deletes expired and unused machine learning data.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-expired-data.html
*/
return function mlDeleteExpiredData (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,8 @@ function buildMlDeleteFilter (opts) {
/**
* Perform a ml.delete_filter request
* Deletes a filter.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html
*/
return function mlDeleteFilter (params, options, callback) {
options = options || {}

View File

@ -23,6 +23,7 @@ function buildMlDeleteForecast (opts) {
/**
* Perform a ml.delete_forecast request
* Deletes forecasts from a machine learning job.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html
*/
return function mlDeleteForecast (params, options, callback) {

View File

@ -22,6 +22,7 @@ function buildMlDeleteJob (opts) {
/**
* Perform a ml.delete_job request
* Deletes an existing anomaly detection job.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html
*/
return function mlDeleteJob (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlDeleteModelSnapshot (opts) {
/**
* Perform a ml.delete_model_snapshot request
* Deletes an existing model snapshot.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html
*/
return function mlDeleteModelSnapshot (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlDeleteTrainedModel (opts) {
/**
* Perform a ml.delete_trained_model request
* Deletes an existing trained inference model that is currently not referenced by an ingest pipeline.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html
*/
return function mlDeleteTrainedModel (params, options, callback) {

View File

@ -21,6 +21,8 @@ function buildMlEstimateModelMemory (opts) {
/**
* Perform a ml.estimate_model_memory request
* Estimates the model memory
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html
*/
return function mlEstimateModelMemory (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,7 @@ function buildMlEvaluateDataFrame (opts) {
/**
* Perform a ml.evaluate_data_frame request
* Evaluates the data frame analytics for an annotated index.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html
*/
return function mlEvaluateDataFrame (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlExplainDataFrameAnalytics (opts) {
/**
* Perform a ml.explain_data_frame_analytics request
* Explains a data frame analytics config.
* http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html
*/
return function mlExplainDataFrameAnalytics (params, options, callback) {

View File

@ -42,6 +42,7 @@ function buildMlFindFileStructure (opts) {
/**
* Perform a ml.find_file_structure request
* Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-find-file-structure.html
*/
return function mlFindFileStructure (params, options, callback) {

View File

@ -27,6 +27,7 @@ function buildMlFlushJob (opts) {
/**
* Perform a ml.flush_job request
* Forces any buffered data to be processed by the job.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html
*/
return function mlFlushJob (params, options, callback) {

View File

@ -22,6 +22,8 @@ function buildMlForecast (opts) {
/**
* Perform a ml.forecast request
* Predicts the future behavior of a time series by using its historical behavior.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html
*/
return function mlForecast (params, options, callback) {
options = options || {}

View File

@ -31,6 +31,7 @@ function buildMlGetBuckets (opts) {
/**
* Perform a ml.get_buckets request
* Retrieves anomaly detection job results for one or more buckets.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html
*/
return function mlGetBuckets (params, options, callback) {

View File

@ -26,6 +26,8 @@ function buildMlGetCalendarEvents (opts) {
/**
* Perform a ml.get_calendar_events request
* Retrieves information about the scheduled events in calendars.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html
*/
return function mlGetCalendarEvents (params, options, callback) {
options = options || {}

View File

@ -22,6 +22,8 @@ function buildMlGetCalendars (opts) {
/**
* Perform a ml.get_calendars request
* Retrieves configuration information for calendars.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html
*/
return function mlGetCalendars (params, options, callback) {
options = options || {}

View File

@ -22,6 +22,7 @@ function buildMlGetCategories (opts) {
/**
* Perform a ml.get_categories request
* Retrieves anomaly detection job results for one or more categories.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html
*/
return function mlGetCategories (params, options, callback) {

View File

@ -24,6 +24,7 @@ function buildMlGetDataFrameAnalytics (opts) {
/**
* Perform a ml.get_data_frame_analytics request
* Retrieves configuration information for data frame analytics jobs.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html
*/
return function mlGetDataFrameAnalytics (params, options, callback) {

View File

@ -24,6 +24,7 @@ function buildMlGetDataFrameAnalyticsStats (opts) {
/**
* Perform a ml.get_data_frame_analytics_stats request
* Retrieves usage information for data frame analytics jobs.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html
*/
return function mlGetDataFrameAnalyticsStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlGetDatafeedStats (opts) {
/**
* Perform a ml.get_datafeed_stats request
* Retrieves usage information for datafeeds.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html
*/
return function mlGetDatafeedStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlGetDatafeeds (opts) {
/**
* Perform a ml.get_datafeeds request
* Retrieves configuration information for datafeeds.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html
*/
return function mlGetDatafeeds (params, options, callback) {

View File

@ -22,6 +22,8 @@ function buildMlGetFilters (opts) {
/**
* Perform a ml.get_filters request
* Retrieves filters.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html
*/
return function mlGetFilters (params, options, callback) {
options = options || {}

View File

@ -30,6 +30,7 @@ function buildMlGetInfluencers (opts) {
/**
* Perform a ml.get_influencers request
* Retrieves anomaly detection job results for one or more influencers.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html
*/
return function mlGetInfluencers (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlGetJobStats (opts) {
/**
* Perform a ml.get_job_stats request
* Retrieves usage information for anomaly detection jobs.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html
*/
return function mlGetJobStats (params, options, callback) {

View File

@ -21,6 +21,7 @@ function buildMlGetJobs (opts) {
/**
* Perform a ml.get_jobs request
* Retrieves configuration information for anomaly detection jobs.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html
*/
return function mlGetJobs (params, options, callback) {

View File

@ -26,6 +26,7 @@ function buildMlGetModelSnapshots (opts) {
/**
* Perform a ml.get_model_snapshots request
* Retrieves information about model snapshots.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html
*/
return function mlGetModelSnapshots (params, options, callback) {

View File

@ -31,6 +31,7 @@ function buildMlGetOverallBuckets (opts) {
/**
* Perform a ml.get_overall_buckets request
* Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html
*/
return function mlGetOverallBuckets (params, options, callback) {

View File

@ -30,6 +30,7 @@ function buildMlGetRecords (opts) {
/**
* Perform a ml.get_records request
* Retrieves anomaly records for an anomaly detection job.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html
*/
return function mlGetRecords (params, options, callback) {

View File

@ -29,6 +29,7 @@ function buildMlGetTrainedModels (opts) {
/**
* Perform a ml.get_trained_models request
* Retrieves configuration information for a trained inference model.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html
*/
return function mlGetTrainedModels (params, options, callback) {

View File

@ -24,6 +24,7 @@ function buildMlGetTrainedModelsStats (opts) {
/**
* Perform a ml.get_trained_models_stats request
* Retrieves usage information for trained inference models.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html
*/
return function mlGetTrainedModelsStats (params, options, callback) {

View File

@ -21,6 +21,8 @@ function buildMlInfo (opts) {
/**
* Perform a ml.info request
* Returns defaults and limits used by machine learning.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html
*/
return function mlInfo (params, options, callback) {
options = options || {}

View File

@ -21,6 +21,7 @@ function buildMlOpenJob (opts) {
/**
* Perform a ml.open_job request
* Opens one or more anomaly detection jobs.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html
*/
return function mlOpenJob (params, options, callback) {

View File

@ -21,6 +21,8 @@ function buildMlPostCalendarEvents (opts) {
/**
* Perform a ml.post_calendar_events request
* Posts scheduled events in a calendar.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html
*/
return function mlPostCalendarEvents (params, options, callback) {
options = options || {}

View File

@ -23,6 +23,7 @@ function buildMlPostData (opts) {
/**
* Perform a ml.post_data request
* Sends data to an anomaly detection job for analysis.
* https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html
*/
return function mlPostData (params, options, callback) {

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