@elastic/elasticsearch 7.9.0 → 7.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/api/async_search.js +114 -0
- package/api/api/autoscaling.js +147 -0
- package/api/api/bulk.js +55 -98
- package/api/api/cat.js +648 -0
- package/api/api/ccr.js +403 -0
- package/api/api/clear_scroll.js +42 -69
- package/api/api/cluster.js +420 -0
- package/api/api/count.js +49 -98
- package/api/api/create.js +54 -92
- package/api/api/dangling_indices.js +115 -0
- package/api/api/delete.js +50 -89
- package/api/api/delete_by_query.js +55 -135
- package/api/api/delete_by_query_rethrottle.js +45 -74
- package/api/api/delete_script.js +41 -71
- package/api/api/enrich.js +173 -0
- package/api/api/eql.js +119 -0
- package/api/api/exists.js +50 -95
- package/api/api/exists_source.js +58 -101
- package/api/api/explain.js +50 -98
- package/api/api/field_caps.js +42 -78
- package/api/api/get.js +50 -95
- package/api/api/get_script.js +41 -70
- package/api/api/get_script_context.js +37 -64
- package/api/api/get_script_languages.js +37 -64
- package/api/api/get_source.js +50 -93
- package/api/api/graph.js +72 -0
- package/api/api/ilm.js +295 -0
- package/api/api/index.js +56 -98
- package/api/api/indices.js +1656 -0
- package/api/api/info.js +37 -64
- package/api/api/ingest.js +178 -0
- package/api/api/license.js +188 -0
- package/api/api/mget.js +55 -97
- package/api/api/migration.js +60 -0
- package/api/api/ml.js +1842 -0
- package/api/api/monitoring.js +66 -0
- package/api/api/msearch.js +55 -96
- package/api/api/msearch_template.js +55 -92
- package/api/api/mtermvectors.js +49 -91
- package/api/api/nodes.js +202 -0
- package/api/api/ping.js +37 -64
- package/api/api/put_script.js +55 -86
- package/api/api/rank_eval.js +46 -81
- package/api/api/reindex.js +41 -82
- package/api/api/reindex_rethrottle.js +45 -74
- package/api/api/render_search_template.js +42 -69
- package/api/api/rollup.js +278 -0
- package/api/api/scripts_painless_execute.js +37 -64
- package/api/api/scroll.js +42 -74
- package/api/api/search.js +49 -149
- package/api/api/search_shards.js +42 -78
- package/api/api/search_template.js +55 -103
- package/api/api/searchable_snapshots.js +159 -0
- package/api/api/security.js +805 -0
- package/api/api/slm.js +256 -0
- package/api/api/snapshot.js +363 -0
- package/api/api/sql.js +119 -0
- package/api/api/ssl.js +55 -0
- package/api/api/tasks.js +108 -0
- package/api/api/termvectors.js +52 -93
- package/api/api/transform.js +268 -0
- package/api/api/update.js +54 -102
- package/api/api/update_by_query.js +51 -135
- package/api/api/update_by_query_rethrottle.js +45 -74
- package/api/api/watcher.js +311 -0
- package/api/api/xpack.js +76 -0
- package/api/index.js +408 -685
- package/api/requestParams.d.ts +813 -813
- package/api/utils.js +58 -0
- package/index.js +49 -48
- package/lib/Connection.d.ts +1 -1
- package/lib/Connection.js +1 -0
- package/lib/Helpers.js +4 -3
- package/lib/Transport.js +31 -25
- package/package.json +1 -1
- package/api/api/async_search.delete.js +0 -78
- package/api/api/async_search.get.js +0 -82
- package/api/api/async_search.submit.js +0 -147
- package/api/api/autoscaling.delete_autoscaling_policy.js +0 -78
- package/api/api/autoscaling.get_autoscaling_decision.js +0 -72
- package/api/api/autoscaling.get_autoscaling_policy.js +0 -78
- package/api/api/autoscaling.put_autoscaling_policy.js +0 -82
- package/api/api/cat.aliases.js +0 -90
- package/api/api/cat.allocation.js +0 -91
- package/api/api/cat.count.js +0 -87
- package/api/api/cat.fielddata.js +0 -89
- package/api/api/cat.health.js +0 -84
- package/api/api/cat.help.js +0 -79
- package/api/api/cat.indices.js +0 -98
- package/api/api/cat.master.js +0 -85
- package/api/api/cat.ml_data_frame_analytics.js +0 -85
- package/api/api/cat.ml_datafeeds.js +0 -84
- package/api/api/cat.ml_jobs.js +0 -85
- package/api/api/cat.ml_trained_models.js +0 -87
- package/api/api/cat.nodeattrs.js +0 -85
- package/api/api/cat.nodes.js +0 -89
- package/api/api/cat.pending_tasks.js +0 -86
- package/api/api/cat.plugins.js +0 -85
- package/api/api/cat.recovery.js +0 -93
- package/api/api/cat.repositories.js +0 -85
- package/api/api/cat.segments.js +0 -88
- package/api/api/cat.shards.js +0 -92
- package/api/api/cat.snapshots.js +0 -92
- package/api/api/cat.tasks.js +0 -89
- package/api/api/cat.templates.js +0 -90
- package/api/api/cat.thread_pool.js +0 -92
- package/api/api/cat.transforms.js +0 -86
- package/api/api/ccr.delete_auto_follow_pattern.js +0 -78
- package/api/api/ccr.follow.js +0 -82
- package/api/api/ccr.follow_info.js +0 -78
- package/api/api/ccr.follow_stats.js +0 -78
- package/api/api/ccr.forget_follower.js +0 -82
- package/api/api/ccr.get_auto_follow_pattern.js +0 -77
- package/api/api/ccr.pause_auto_follow_pattern.js +0 -78
- package/api/api/ccr.pause_follow.js +0 -78
- package/api/api/ccr.put_auto_follow_pattern.js +0 -82
- package/api/api/ccr.resume_auto_follow_pattern.js +0 -78
- package/api/api/ccr.resume_follow.js +0 -78
- package/api/api/ccr.stats.js +0 -72
- package/api/api/ccr.unfollow.js +0 -78
- package/api/api/cluster.allocation_explain.js +0 -81
- package/api/api/cluster.delete_component_template.js +0 -86
- package/api/api/cluster.delete_voting_config_exclusions.js +0 -79
- package/api/api/cluster.exists_component_template.js +0 -86
- package/api/api/cluster.get_component_template.js +0 -85
- package/api/api/cluster.get_settings.js +0 -84
- package/api/api/cluster.health.js +0 -101
- package/api/api/cluster.pending_tasks.js +0 -81
- package/api/api/cluster.post_voting_config_exclusions.js +0 -82
- package/api/api/cluster.put_component_template.js +0 -91
- package/api/api/cluster.put_settings.js +0 -88
- package/api/api/cluster.remote_info.js +0 -77
- package/api/api/cluster.reroute.js +0 -86
- package/api/api/cluster.state.js +0 -106
- package/api/api/cluster.stats.js +0 -85
- package/api/api/dangling_indices.delete_dangling_index.js +0 -88
- package/api/api/dangling_indices.import_dangling_index.js +0 -88
- package/api/api/dangling_indices.list_dangling_indices.js +0 -77
- package/api/api/enrich.delete_policy.js +0 -78
- package/api/api/enrich.execute_policy.js +0 -78
- package/api/api/enrich.get_policy.js +0 -77
- package/api/api/enrich.put_policy.js +0 -82
- package/api/api/enrich.stats.js +0 -72
- package/api/api/eql.delete.js +0 -78
- package/api/api/eql.get.js +0 -80
- package/api/api/eql.search.js +0 -86
- package/api/api/graph.explore.js +0 -90
- package/api/api/ilm.delete_lifecycle.js +0 -78
- package/api/api/ilm.explain_lifecycle.js +0 -80
- package/api/api/ilm.get_lifecycle.js +0 -77
- package/api/api/ilm.get_status.js +0 -72
- package/api/api/ilm.move_to_step.js +0 -78
- package/api/api/ilm.put_lifecycle.js +0 -78
- package/api/api/ilm.remove_policy.js +0 -78
- package/api/api/ilm.retry.js +0 -78
- package/api/api/ilm.start.js +0 -72
- package/api/api/ilm.stop.js +0 -72
- package/api/api/indices.add_block.js +0 -102
- package/api/api/indices.analyze.js +0 -83
- package/api/api/indices.clear_cache.js +0 -93
- package/api/api/indices.clone.js +0 -98
- package/api/api/indices.close.js +0 -94
- package/api/api/indices.create.js +0 -90
- package/api/api/indices.create_data_stream.js +0 -78
- package/api/api/indices.data_streams_stats.js +0 -77
- package/api/api/indices.delete.js +0 -92
- package/api/api/indices.delete_alias.js +0 -101
- package/api/api/indices.delete_data_stream.js +0 -78
- package/api/api/indices.delete_index_template.js +0 -86
- package/api/api/indices.delete_template.js +0 -86
- package/api/api/indices.exists.js +0 -94
- package/api/api/indices.exists_alias.js +0 -95
- package/api/api/indices.exists_index_template.js +0 -88
- package/api/api/indices.exists_template.js +0 -88
- package/api/api/indices.exists_type.js +0 -100
- package/api/api/indices.flush.js +0 -91
- package/api/api/indices.flush_synced.js +0 -88
- package/api/api/indices.forcemerge.js +0 -93
- package/api/api/indices.freeze.js +0 -87
- package/api/api/indices.get.js +0 -98
- package/api/api/indices.get_alias.js +0 -95
- package/api/api/indices.get_data_stream.js +0 -77
- package/api/api/indices.get_field_mapping.js +0 -105
- package/api/api/indices.get_index_template.js +0 -87
- package/api/api/indices.get_mapping.js +0 -99
- package/api/api/indices.get_settings.js +0 -101
- package/api/api/indices.get_template.js +0 -89
- package/api/api/indices.get_upgrade.js +0 -88
- package/api/api/indices.open.js +0 -94
- package/api/api/indices.put_alias.js +0 -101
- package/api/api/indices.put_index_template.js +0 -91
- package/api/api/indices.put_mapping.js +0 -119
- package/api/api/indices.put_settings.js +0 -101
- package/api/api/indices.put_template.js +0 -93
- package/api/api/indices.recovery.js +0 -85
- package/api/api/indices.refresh.js +0 -88
- package/api/api/indices.reload_search_analyzers.js +0 -82
- package/api/api/indices.resolve_index.js +0 -85
- package/api/api/indices.rollover.js +0 -104
- package/api/api/indices.segments.js +0 -89
- package/api/api/indices.shard_stores.js +0 -89
- package/api/api/indices.shrink.js +0 -100
- package/api/api/indices.simulate_index_template.js +0 -87
- package/api/api/indices.simulate_template.js +0 -86
- package/api/api/indices.split.js +0 -100
- package/api/api/indices.stats.js +0 -104
- package/api/api/indices.unfreeze.js +0 -87
- package/api/api/indices.update_aliases.js +0 -86
- package/api/api/indices.upgrade.js +0 -92
- package/api/api/indices.validate_query.js +0 -109
- package/api/api/ingest.delete_pipeline.js +0 -86
- package/api/api/ingest.get_pipeline.js +0 -84
- package/api/api/ingest.processor_grok.js +0 -77
- package/api/api/ingest.put_pipeline.js +0 -90
- package/api/api/ingest.simulate.js +0 -89
- package/api/api/license.delete.js +0 -72
- package/api/api/license.get.js +0 -73
- package/api/api/license.get_basic_status.js +0 -72
- package/api/api/license.get_trial_status.js +0 -72
- package/api/api/license.post.js +0 -72
- package/api/api/license.post_start_basic.js +0 -72
- package/api/api/license.post_start_trial.js +0 -73
- package/api/api/migration.deprecations.js +0 -77
- package/api/api/ml.close_job.js +0 -81
- package/api/api/ml.delete_calendar.js +0 -78
- package/api/api/ml.delete_calendar_event.js +0 -88
- package/api/api/ml.delete_calendar_job.js +0 -88
- package/api/api/ml.delete_data_frame_analytics.js +0 -79
- package/api/api/ml.delete_datafeed.js +0 -78
- package/api/api/ml.delete_expired_data.js +0 -79
- package/api/api/ml.delete_filter.js +0 -78
- package/api/api/ml.delete_forecast.js +0 -91
- package/api/api/ml.delete_job.js +0 -79
- package/api/api/ml.delete_model_snapshot.js +0 -88
- package/api/api/ml.delete_trained_model.js +0 -78
- package/api/api/ml.estimate_model_memory.js +0 -78
- package/api/api/ml.evaluate_data_frame.js +0 -78
- package/api/api/ml.explain_data_frame_analytics.js +0 -77
- package/api/api/ml.find_file_structure.js +0 -99
- package/api/api/ml.flush_job.js +0 -84
- package/api/api/ml.forecast.js +0 -81
- package/api/api/ml.get_buckets.js +0 -99
- package/api/api/ml.get_calendar_events.js +0 -83
- package/api/api/ml.get_calendars.js +0 -78
- package/api/api/ml.get_categories.js +0 -91
- package/api/api/ml.get_data_frame_analytics.js +0 -80
- package/api/api/ml.get_data_frame_analytics_stats.js +0 -80
- package/api/api/ml.get_datafeed_stats.js +0 -77
- package/api/api/ml.get_datafeeds.js +0 -77
- package/api/api/ml.get_filters.js +0 -78
- package/api/api/ml.get_influencers.js +0 -87
- package/api/api/ml.get_job_stats.js +0 -77
- package/api/api/ml.get_jobs.js +0 -77
- package/api/api/ml.get_model_snapshots.js +0 -94
- package/api/api/ml.get_overall_buckets.js +0 -88
- package/api/api/ml.get_records.js +0 -87
- package/api/api/ml.get_trained_models.js +0 -86
- package/api/api/ml.get_trained_models_stats.js +0 -80
- package/api/api/ml.info.js +0 -72
- package/api/api/ml.open_job.js +0 -78
- package/api/api/ml.post_calendar_events.js +0 -82
- package/api/api/ml.post_data.js +0 -84
- package/api/api/ml.preview_datafeed.js +0 -78
- package/api/api/ml.put_calendar.js +0 -78
- package/api/api/ml.put_calendar_job.js +0 -88
- package/api/api/ml.put_data_frame_analytics.js +0 -82
- package/api/api/ml.put_datafeed.js +0 -88
- package/api/api/ml.put_filter.js +0 -82
- package/api/api/ml.put_job.js +0 -82
- package/api/api/ml.put_trained_model.js +0 -82
- package/api/api/ml.revert_model_snapshot.js +0 -88
- package/api/api/ml.set_upgrade_mode.js +0 -73
- package/api/api/ml.start_data_frame_analytics.js +0 -78
- package/api/api/ml.start_datafeed.js +0 -80
- package/api/api/ml.stop_data_frame_analytics.js +0 -81
- package/api/api/ml.stop_datafeed.js +0 -81
- package/api/api/ml.update_data_frame_analytics.js +0 -82
- package/api/api/ml.update_datafeed.js +0 -88
- package/api/api/ml.update_filter.js +0 -82
- package/api/api/ml.update_job.js +0 -82
- package/api/api/ml.update_model_snapshot.js +0 -92
- package/api/api/ml.validate.js +0 -78
- package/api/api/ml.validate_detector.js +0 -78
- package/api/api/monitoring.bulk.js +0 -87
- package/api/api/nodes.hot_threads.js +0 -98
- package/api/api/nodes.info.js +0 -91
- package/api/api/nodes.reload_secure_settings.js +0 -83
- package/api/api/nodes.stats.js +0 -105
- package/api/api/nodes.usage.js +0 -89
- package/api/api/rollup.delete_job.js +0 -78
- package/api/api/rollup.get_jobs.js +0 -77
- package/api/api/rollup.get_rollup_caps.js +0 -77
- package/api/api/rollup.get_rollup_index_caps.js +0 -78
- package/api/api/rollup.put_job.js +0 -82
- package/api/api/rollup.rollup_search.js +0 -95
- package/api/api/rollup.start_job.js +0 -78
- package/api/api/rollup.stop_job.js +0 -80
- package/api/api/searchable_snapshots.clear_cache.js +0 -83
- package/api/api/searchable_snapshots.mount.js +0 -94
- package/api/api/searchable_snapshots.repository_stats.js +0 -78
- package/api/api/searchable_snapshots.stats.js +0 -77
- package/api/api/security.authenticate.js +0 -72
- package/api/api/security.change_password.js +0 -83
- package/api/api/security.clear_cached_privileges.js +0 -78
- package/api/api/security.clear_cached_realms.js +0 -78
- package/api/api/security.clear_cached_roles.js +0 -78
- package/api/api/security.create_api_key.js +0 -78
- package/api/api/security.delete_privileges.js +0 -88
- package/api/api/security.delete_role.js +0 -78
- package/api/api/security.delete_role_mapping.js +0 -78
- package/api/api/security.delete_user.js +0 -78
- package/api/api/security.disable_user.js +0 -78
- package/api/api/security.enable_user.js +0 -78
- package/api/api/security.get_api_key.js +0 -77
- package/api/api/security.get_builtin_privileges.js +0 -72
- package/api/api/security.get_privileges.js +0 -86
- package/api/api/security.get_role.js +0 -77
- package/api/api/security.get_role_mapping.js +0 -77
- package/api/api/security.get_token.js +0 -78
- package/api/api/security.get_user.js +0 -77
- package/api/api/security.get_user_privileges.js +0 -72
- package/api/api/security.has_privileges.js +0 -83
- package/api/api/security.invalidate_api_key.js +0 -78
- package/api/api/security.invalidate_token.js +0 -78
- package/api/api/security.put_privileges.js +0 -78
- package/api/api/security.put_role.js +0 -82
- package/api/api/security.put_role_mapping.js +0 -82
- package/api/api/security.put_user.js +0 -82
- package/api/api/slm.delete_lifecycle.js +0 -78
- package/api/api/slm.execute_lifecycle.js +0 -78
- package/api/api/slm.execute_retention.js +0 -72
- package/api/api/slm.get_lifecycle.js +0 -77
- package/api/api/slm.get_stats.js +0 -72
- package/api/api/slm.get_status.js +0 -72
- package/api/api/slm.put_lifecycle.js +0 -78
- package/api/api/slm.start.js +0 -72
- package/api/api/slm.stop.js +0 -72
- package/api/api/snapshot.cleanup_repository.js +0 -86
- package/api/api/snapshot.create.js +0 -97
- package/api/api/snapshot.create_repository.js +0 -91
- package/api/api/snapshot.delete.js +0 -95
- package/api/api/snapshot.delete_repository.js +0 -86
- package/api/api/snapshot.get.js +0 -98
- package/api/api/snapshot.get_repository.js +0 -85
- package/api/api/snapshot.restore.js +0 -97
- package/api/api/snapshot.status.js +0 -95
- package/api/api/snapshot.verify_repository.js +0 -86
- package/api/api/sql.clear_cursor.js +0 -78
- package/api/api/sql.query.js +0 -78
- package/api/api/sql.translate.js +0 -78
- package/api/api/ssl.certificates.js +0 -72
- package/api/api/tasks.cancel.js +0 -88
- package/api/api/tasks.get.js +0 -86
- package/api/api/tasks.list.js +0 -87
- package/api/api/transform.delete_transform.js +0 -78
- package/api/api/transform.get_transform.js +0 -79
- package/api/api/transform.get_transform_stats.js +0 -80
- package/api/api/transform.preview_transform.js +0 -78
- package/api/api/transform.put_transform.js +0 -82
- package/api/api/transform.start_transform.js +0 -78
- package/api/api/transform.stop_transform.js +0 -84
- package/api/api/transform.update_transform.js +0 -82
- package/api/api/watcher.ack_watch.js +0 -89
- package/api/api/watcher.activate_watch.js +0 -78
- package/api/api/watcher.deactivate_watch.js +0 -78
- package/api/api/watcher.delete_watch.js +0 -78
- package/api/api/watcher.execute_watch.js +0 -77
- package/api/api/watcher.get_watch.js +0 -78
- package/api/api/watcher.put_watch.js +0 -82
- package/api/api/watcher.start.js +0 -72
- package/api/api/watcher.stats.js +0 -78
- package/api/api/watcher.stop.js +0 -72
- package/api/api/xpack.info.js +0 -73
- package/api/api/xpack.usage.js +0 -72
package/api/api/ml.js
ADDED
|
@@ -0,0 +1,1842 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Licensed to Elasticsearch B.V. under one or more contributor
|
|
3
|
+
* license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright
|
|
5
|
+
* ownership. Elasticsearch B.V. licenses this file to you under
|
|
6
|
+
* the Apache License, Version 2.0 (the "License"); you may
|
|
7
|
+
* not use this file except in compliance with the License.
|
|
8
|
+
* You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
'use strict'
|
|
21
|
+
|
|
22
|
+
/* eslint camelcase: 0 */
|
|
23
|
+
/* eslint no-unused-vars: 0 */
|
|
24
|
+
|
|
25
|
+
const { handleError, snakeCaseKeys, normalizeArguments, kConfigurationError } = require('../utils')
|
|
26
|
+
const acceptedQuerystring = ['allow_no_jobs', 'force', 'timeout', 'pretty', 'human', 'error_trace', 'source', 'filter_path', 'requests_per_second', 'allow_no_forecasts', 'wait_for_completion', 'lines_to_sample', 'line_merge_size_limit', 'charset', 'format', 'has_header_row', 'column_names', 'delimiter', 'quote', 'should_trim_fields', 'grok_pattern', 'timestamp_field', 'timestamp_format', 'explain', 'calc_interim', 'start', 'end', 'advance_time', 'skip_time', 'duration', 'expires_in', 'max_model_memory', 'expand', 'exclude_interim', 'from', 'size', 'anomaly_score', 'sort', 'desc', 'job_id', 'partition_field_value', 'allow_no_match', 'allow_no_datafeeds', 'influencer_score', 'top_n', 'bucket_span', 'overall_score', 'record_score', 'include_model_definition', 'decompress_definition', 'tags', 'for_export', 'reset_start', 'reset_end', 'ignore_unavailable', 'allow_no_indices', 'ignore_throttled', 'expand_wildcards', 'delete_intervening_results', 'enabled']
|
|
27
|
+
const snakeCase = { allowNoJobs: 'allow_no_jobs', errorTrace: 'error_trace', filterPath: 'filter_path', requestsPerSecond: 'requests_per_second', allowNoForecasts: 'allow_no_forecasts', waitForCompletion: 'wait_for_completion', linesToSample: 'lines_to_sample', lineMergeSizeLimit: 'line_merge_size_limit', hasHeaderRow: 'has_header_row', columnNames: 'column_names', shouldTrimFields: 'should_trim_fields', grokPattern: 'grok_pattern', timestampField: 'timestamp_field', timestampFormat: 'timestamp_format', calcInterim: 'calc_interim', advanceTime: 'advance_time', skipTime: 'skip_time', expiresIn: 'expires_in', maxModelMemory: 'max_model_memory', excludeInterim: 'exclude_interim', anomalyScore: 'anomaly_score', jobId: 'job_id', partitionFieldValue: 'partition_field_value', allowNoMatch: 'allow_no_match', allowNoDatafeeds: 'allow_no_datafeeds', influencerScore: 'influencer_score', topN: 'top_n', bucketSpan: 'bucket_span', overallScore: 'overall_score', recordScore: 'record_score', includeModelDefinition: 'include_model_definition', decompressDefinition: 'decompress_definition', forExport: 'for_export', resetStart: 'reset_start', resetEnd: 'reset_end', ignoreUnavailable: 'ignore_unavailable', allowNoIndices: 'allow_no_indices', ignoreThrottled: 'ignore_throttled', expandWildcards: 'expand_wildcards', deleteInterveningResults: 'delete_intervening_results' }
|
|
28
|
+
|
|
29
|
+
function MlApi (transport, ConfigurationError) {
|
|
30
|
+
this.transport = transport
|
|
31
|
+
this[kConfigurationError] = ConfigurationError
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
MlApi.prototype.closeJob = function mlCloseJobApi (params, options, callback) {
|
|
35
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
36
|
+
|
|
37
|
+
// check required parameters
|
|
38
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
39
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
40
|
+
return handleError(err, callback)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
44
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
45
|
+
|
|
46
|
+
var path = ''
|
|
47
|
+
if (method == null) method = 'POST'
|
|
48
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_close'
|
|
49
|
+
|
|
50
|
+
// build request object
|
|
51
|
+
const request = {
|
|
52
|
+
method,
|
|
53
|
+
path,
|
|
54
|
+
body: body || '',
|
|
55
|
+
querystring
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return this.transport.request(request, options, callback)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
MlApi.prototype.deleteCalendar = function mlDeleteCalendarApi (params, options, callback) {
|
|
62
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
63
|
+
|
|
64
|
+
// check required parameters
|
|
65
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
66
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
67
|
+
return handleError(err, callback)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
var { method, body, calendarId, calendar_id, ...querystring } = params
|
|
71
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
72
|
+
|
|
73
|
+
var path = ''
|
|
74
|
+
if (method == null) method = 'DELETE'
|
|
75
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId)
|
|
76
|
+
|
|
77
|
+
// build request object
|
|
78
|
+
const request = {
|
|
79
|
+
method,
|
|
80
|
+
path,
|
|
81
|
+
body: body || '',
|
|
82
|
+
querystring
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return this.transport.request(request, options, callback)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
MlApi.prototype.deleteCalendarEvent = function mlDeleteCalendarEventApi (params, options, callback) {
|
|
89
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
90
|
+
|
|
91
|
+
// check required parameters
|
|
92
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
93
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
94
|
+
return handleError(err, callback)
|
|
95
|
+
}
|
|
96
|
+
if (params['event_id'] == null && params['eventId'] == null) {
|
|
97
|
+
const err = new this[kConfigurationError]('Missing required parameter: event_id or eventId')
|
|
98
|
+
return handleError(err, callback)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// check required url components
|
|
102
|
+
if ((params['event_id'] != null || params['eventId'] != null) && ((params['calendar_id'] == null && params['calendarId'] == null))) {
|
|
103
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: calendar_id')
|
|
104
|
+
return handleError(err, callback)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
var { method, body, calendarId, calendar_id, eventId, event_id, ...querystring } = params
|
|
108
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
109
|
+
|
|
110
|
+
var path = ''
|
|
111
|
+
if (method == null) method = 'DELETE'
|
|
112
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'events' + '/' + encodeURIComponent(event_id || eventId)
|
|
113
|
+
|
|
114
|
+
// build request object
|
|
115
|
+
const request = {
|
|
116
|
+
method,
|
|
117
|
+
path,
|
|
118
|
+
body: body || '',
|
|
119
|
+
querystring
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return this.transport.request(request, options, callback)
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
MlApi.prototype.deleteCalendarJob = function mlDeleteCalendarJobApi (params, options, callback) {
|
|
126
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
127
|
+
|
|
128
|
+
// check required parameters
|
|
129
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
130
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
131
|
+
return handleError(err, callback)
|
|
132
|
+
}
|
|
133
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
134
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
135
|
+
return handleError(err, callback)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// check required url components
|
|
139
|
+
if ((params['job_id'] != null || params['jobId'] != null) && ((params['calendar_id'] == null && params['calendarId'] == null))) {
|
|
140
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: calendar_id')
|
|
141
|
+
return handleError(err, callback)
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
var { method, body, calendarId, calendar_id, jobId, job_id, ...querystring } = params
|
|
145
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
146
|
+
|
|
147
|
+
var path = ''
|
|
148
|
+
if (method == null) method = 'DELETE'
|
|
149
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'jobs' + '/' + encodeURIComponent(job_id || jobId)
|
|
150
|
+
|
|
151
|
+
// build request object
|
|
152
|
+
const request = {
|
|
153
|
+
method,
|
|
154
|
+
path,
|
|
155
|
+
body: body || '',
|
|
156
|
+
querystring
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return this.transport.request(request, options, callback)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
MlApi.prototype.deleteDataFrameAnalytics = function mlDeleteDataFrameAnalyticsApi (params, options, callback) {
|
|
163
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
164
|
+
|
|
165
|
+
// check required parameters
|
|
166
|
+
if (params['id'] == null) {
|
|
167
|
+
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
168
|
+
return handleError(err, callback)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var { method, body, id, ...querystring } = params
|
|
172
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
173
|
+
|
|
174
|
+
var path = ''
|
|
175
|
+
if (method == null) method = 'DELETE'
|
|
176
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
|
177
|
+
|
|
178
|
+
// build request object
|
|
179
|
+
const request = {
|
|
180
|
+
method,
|
|
181
|
+
path,
|
|
182
|
+
body: body || '',
|
|
183
|
+
querystring
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return this.transport.request(request, options, callback)
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
MlApi.prototype.deleteDatafeed = function mlDeleteDatafeedApi (params, options, callback) {
|
|
190
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
191
|
+
|
|
192
|
+
// check required parameters
|
|
193
|
+
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
|
194
|
+
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
195
|
+
return handleError(err, callback)
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
199
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
200
|
+
|
|
201
|
+
var path = ''
|
|
202
|
+
if (method == null) method = 'DELETE'
|
|
203
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
|
204
|
+
|
|
205
|
+
// build request object
|
|
206
|
+
const request = {
|
|
207
|
+
method,
|
|
208
|
+
path,
|
|
209
|
+
body: body || '',
|
|
210
|
+
querystring
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return this.transport.request(request, options, callback)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
MlApi.prototype.deleteExpiredData = function mlDeleteExpiredDataApi (params, options, callback) {
|
|
217
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
218
|
+
|
|
219
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
220
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
221
|
+
|
|
222
|
+
var path = ''
|
|
223
|
+
if ((job_id || jobId) != null) {
|
|
224
|
+
if (method == null) method = 'DELETE'
|
|
225
|
+
path = '/' + '_ml' + '/' + '_delete_expired_data' + '/' + encodeURIComponent(job_id || jobId)
|
|
226
|
+
} else {
|
|
227
|
+
if (method == null) method = 'DELETE'
|
|
228
|
+
path = '/' + '_ml' + '/' + '_delete_expired_data'
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// build request object
|
|
232
|
+
const request = {
|
|
233
|
+
method,
|
|
234
|
+
path,
|
|
235
|
+
body: body || '',
|
|
236
|
+
querystring
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return this.transport.request(request, options, callback)
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
MlApi.prototype.deleteFilter = function mlDeleteFilterApi (params, options, callback) {
|
|
243
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
244
|
+
|
|
245
|
+
// check required parameters
|
|
246
|
+
if (params['filter_id'] == null && params['filterId'] == null) {
|
|
247
|
+
const err = new this[kConfigurationError]('Missing required parameter: filter_id or filterId')
|
|
248
|
+
return handleError(err, callback)
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
var { method, body, filterId, filter_id, ...querystring } = params
|
|
252
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
253
|
+
|
|
254
|
+
var path = ''
|
|
255
|
+
if (method == null) method = 'DELETE'
|
|
256
|
+
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId)
|
|
257
|
+
|
|
258
|
+
// build request object
|
|
259
|
+
const request = {
|
|
260
|
+
method,
|
|
261
|
+
path,
|
|
262
|
+
body: body || '',
|
|
263
|
+
querystring
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return this.transport.request(request, options, callback)
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
MlApi.prototype.deleteForecast = function mlDeleteForecastApi (params, options, callback) {
|
|
270
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
271
|
+
|
|
272
|
+
// check required parameters
|
|
273
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
274
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
275
|
+
return handleError(err, callback)
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
// check required url components
|
|
279
|
+
if ((params['forecast_id'] != null || params['forecastId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
280
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
281
|
+
return handleError(err, callback)
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
var { method, body, jobId, job_id, forecastId, forecast_id, ...querystring } = params
|
|
285
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
286
|
+
|
|
287
|
+
var path = ''
|
|
288
|
+
if ((job_id || jobId) != null && (forecast_id || forecastId) != null) {
|
|
289
|
+
if (method == null) method = 'DELETE'
|
|
290
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_forecast' + '/' + encodeURIComponent(forecast_id || forecastId)
|
|
291
|
+
} else {
|
|
292
|
+
if (method == null) method = 'DELETE'
|
|
293
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_forecast'
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
// build request object
|
|
297
|
+
const request = {
|
|
298
|
+
method,
|
|
299
|
+
path,
|
|
300
|
+
body: body || '',
|
|
301
|
+
querystring
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return this.transport.request(request, options, callback)
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
MlApi.prototype.deleteJob = function mlDeleteJobApi (params, options, callback) {
|
|
308
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
309
|
+
|
|
310
|
+
// check required parameters
|
|
311
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
312
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
313
|
+
return handleError(err, callback)
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
317
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
318
|
+
|
|
319
|
+
var path = ''
|
|
320
|
+
if (method == null) method = 'DELETE'
|
|
321
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
|
322
|
+
|
|
323
|
+
// build request object
|
|
324
|
+
const request = {
|
|
325
|
+
method,
|
|
326
|
+
path,
|
|
327
|
+
body: body || '',
|
|
328
|
+
querystring
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
return this.transport.request(request, options, callback)
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
MlApi.prototype.deleteModelSnapshot = function mlDeleteModelSnapshotApi (params, options, callback) {
|
|
335
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
336
|
+
|
|
337
|
+
// check required parameters
|
|
338
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
339
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
340
|
+
return handleError(err, callback)
|
|
341
|
+
}
|
|
342
|
+
if (params['snapshot_id'] == null && params['snapshotId'] == null) {
|
|
343
|
+
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
344
|
+
return handleError(err, callback)
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// check required url components
|
|
348
|
+
if ((params['snapshot_id'] != null || params['snapshotId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
349
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
350
|
+
return handleError(err, callback)
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
var { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
354
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
355
|
+
|
|
356
|
+
var path = ''
|
|
357
|
+
if (method == null) method = 'DELETE'
|
|
358
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId)
|
|
359
|
+
|
|
360
|
+
// build request object
|
|
361
|
+
const request = {
|
|
362
|
+
method,
|
|
363
|
+
path,
|
|
364
|
+
body: body || '',
|
|
365
|
+
querystring
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
return this.transport.request(request, options, callback)
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
MlApi.prototype.deleteTrainedModel = function mlDeleteTrainedModelApi (params, options, callback) {
|
|
372
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
373
|
+
|
|
374
|
+
// check required parameters
|
|
375
|
+
if (params['model_id'] == null && params['modelId'] == null) {
|
|
376
|
+
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
|
377
|
+
return handleError(err, callback)
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
var { method, body, modelId, model_id, ...querystring } = params
|
|
381
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
382
|
+
|
|
383
|
+
var path = ''
|
|
384
|
+
if (method == null) method = 'DELETE'
|
|
385
|
+
path = '/' + '_ml' + '/' + 'inference' + '/' + encodeURIComponent(model_id || modelId)
|
|
386
|
+
|
|
387
|
+
// build request object
|
|
388
|
+
const request = {
|
|
389
|
+
method,
|
|
390
|
+
path,
|
|
391
|
+
body: body || '',
|
|
392
|
+
querystring
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return this.transport.request(request, options, callback)
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
MlApi.prototype.estimateModelMemory = function mlEstimateModelMemoryApi (params, options, callback) {
|
|
399
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
400
|
+
|
|
401
|
+
// check required parameters
|
|
402
|
+
if (params['body'] == null) {
|
|
403
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
404
|
+
return handleError(err, callback)
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
var { method, body, ...querystring } = params
|
|
408
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
409
|
+
|
|
410
|
+
var path = ''
|
|
411
|
+
if (method == null) method = 'POST'
|
|
412
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_estimate_model_memory'
|
|
413
|
+
|
|
414
|
+
// build request object
|
|
415
|
+
const request = {
|
|
416
|
+
method,
|
|
417
|
+
path,
|
|
418
|
+
body: body || '',
|
|
419
|
+
querystring
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
return this.transport.request(request, options, callback)
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
MlApi.prototype.evaluateDataFrame = function mlEvaluateDataFrameApi (params, options, callback) {
|
|
426
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
427
|
+
|
|
428
|
+
// check required parameters
|
|
429
|
+
if (params['body'] == null) {
|
|
430
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
431
|
+
return handleError(err, callback)
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
var { method, body, ...querystring } = params
|
|
435
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
436
|
+
|
|
437
|
+
var path = ''
|
|
438
|
+
if (method == null) method = 'POST'
|
|
439
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + '_evaluate'
|
|
440
|
+
|
|
441
|
+
// build request object
|
|
442
|
+
const request = {
|
|
443
|
+
method,
|
|
444
|
+
path,
|
|
445
|
+
body: body || '',
|
|
446
|
+
querystring
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
return this.transport.request(request, options, callback)
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
MlApi.prototype.explainDataFrameAnalytics = function mlExplainDataFrameAnalyticsApi (params, options, callback) {
|
|
453
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
454
|
+
|
|
455
|
+
var { method, body, id, ...querystring } = params
|
|
456
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
457
|
+
|
|
458
|
+
var path = ''
|
|
459
|
+
if ((id) != null) {
|
|
460
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
461
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_explain'
|
|
462
|
+
} else {
|
|
463
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
464
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + '_explain'
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
// build request object
|
|
468
|
+
const request = {
|
|
469
|
+
method,
|
|
470
|
+
path,
|
|
471
|
+
body: body || '',
|
|
472
|
+
querystring
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
return this.transport.request(request, options, callback)
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
MlApi.prototype.findFileStructure = function mlFindFileStructureApi (params, options, callback) {
|
|
479
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
480
|
+
|
|
481
|
+
// check required parameters
|
|
482
|
+
if (params['body'] == null) {
|
|
483
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
484
|
+
return handleError(err, callback)
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
var { method, body, ...querystring } = params
|
|
488
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
489
|
+
|
|
490
|
+
var path = ''
|
|
491
|
+
if (method == null) method = 'POST'
|
|
492
|
+
path = '/' + '_ml' + '/' + 'find_file_structure'
|
|
493
|
+
|
|
494
|
+
// build request object
|
|
495
|
+
const request = {
|
|
496
|
+
method,
|
|
497
|
+
path,
|
|
498
|
+
bulkBody: body,
|
|
499
|
+
querystring
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
return this.transport.request(request, options, callback)
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
MlApi.prototype.flushJob = function mlFlushJobApi (params, options, callback) {
|
|
506
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
507
|
+
|
|
508
|
+
// check required parameters
|
|
509
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
510
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
511
|
+
return handleError(err, callback)
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
515
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
516
|
+
|
|
517
|
+
var path = ''
|
|
518
|
+
if (method == null) method = 'POST'
|
|
519
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_flush'
|
|
520
|
+
|
|
521
|
+
// build request object
|
|
522
|
+
const request = {
|
|
523
|
+
method,
|
|
524
|
+
path,
|
|
525
|
+
body: body || '',
|
|
526
|
+
querystring
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
return this.transport.request(request, options, callback)
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
MlApi.prototype.forecast = function mlForecastApi (params, options, callback) {
|
|
533
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
534
|
+
|
|
535
|
+
// check required parameters
|
|
536
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
537
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
538
|
+
return handleError(err, callback)
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
542
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
543
|
+
|
|
544
|
+
var path = ''
|
|
545
|
+
if (method == null) method = 'POST'
|
|
546
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_forecast'
|
|
547
|
+
|
|
548
|
+
// build request object
|
|
549
|
+
const request = {
|
|
550
|
+
method,
|
|
551
|
+
path,
|
|
552
|
+
body: body || '',
|
|
553
|
+
querystring
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
return this.transport.request(request, options, callback)
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
MlApi.prototype.getBuckets = function mlGetBucketsApi (params, options, callback) {
|
|
560
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
561
|
+
|
|
562
|
+
// check required parameters
|
|
563
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
564
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
565
|
+
return handleError(err, callback)
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// check required url components
|
|
569
|
+
if (params['timestamp'] != null && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
570
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
571
|
+
return handleError(err, callback)
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
var { method, body, jobId, job_id, timestamp, ...querystring } = params
|
|
575
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
576
|
+
|
|
577
|
+
var path = ''
|
|
578
|
+
if ((job_id || jobId) != null && (timestamp) != null) {
|
|
579
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
580
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'buckets' + '/' + encodeURIComponent(timestamp)
|
|
581
|
+
} else {
|
|
582
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
583
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'buckets'
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
// build request object
|
|
587
|
+
const request = {
|
|
588
|
+
method,
|
|
589
|
+
path,
|
|
590
|
+
body: body || '',
|
|
591
|
+
querystring
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
return this.transport.request(request, options, callback)
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
MlApi.prototype.getCalendarEvents = function mlGetCalendarEventsApi (params, options, callback) {
|
|
598
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
599
|
+
|
|
600
|
+
// check required parameters
|
|
601
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
602
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
603
|
+
return handleError(err, callback)
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
var { method, body, calendarId, calendar_id, ...querystring } = params
|
|
607
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
608
|
+
|
|
609
|
+
var path = ''
|
|
610
|
+
if (method == null) method = 'GET'
|
|
611
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'events'
|
|
612
|
+
|
|
613
|
+
// build request object
|
|
614
|
+
const request = {
|
|
615
|
+
method,
|
|
616
|
+
path,
|
|
617
|
+
body: null,
|
|
618
|
+
querystring
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
return this.transport.request(request, options, callback)
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
MlApi.prototype.getCalendars = function mlGetCalendarsApi (params, options, callback) {
|
|
625
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
626
|
+
|
|
627
|
+
var { method, body, calendarId, calendar_id, ...querystring } = params
|
|
628
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
629
|
+
|
|
630
|
+
var path = ''
|
|
631
|
+
if ((calendar_id || calendarId) != null) {
|
|
632
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
633
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId)
|
|
634
|
+
} else {
|
|
635
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
636
|
+
path = '/' + '_ml' + '/' + 'calendars'
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
// build request object
|
|
640
|
+
const request = {
|
|
641
|
+
method,
|
|
642
|
+
path,
|
|
643
|
+
body: body || '',
|
|
644
|
+
querystring
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
return this.transport.request(request, options, callback)
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
MlApi.prototype.getCategories = function mlGetCategoriesApi (params, options, callback) {
|
|
651
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
652
|
+
|
|
653
|
+
// check required parameters
|
|
654
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
655
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
656
|
+
return handleError(err, callback)
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
// check required url components
|
|
660
|
+
if ((params['category_id'] != null || params['categoryId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
661
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
662
|
+
return handleError(err, callback)
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
var { method, body, jobId, job_id, categoryId, category_id, ...querystring } = params
|
|
666
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
667
|
+
|
|
668
|
+
var path = ''
|
|
669
|
+
if ((job_id || jobId) != null && (category_id || categoryId) != null) {
|
|
670
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
671
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'categories' + '/' + encodeURIComponent(category_id || categoryId)
|
|
672
|
+
} else {
|
|
673
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
674
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'categories'
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
// build request object
|
|
678
|
+
const request = {
|
|
679
|
+
method,
|
|
680
|
+
path,
|
|
681
|
+
body: body || '',
|
|
682
|
+
querystring
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
return this.transport.request(request, options, callback)
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
MlApi.prototype.getDataFrameAnalytics = function mlGetDataFrameAnalyticsApi (params, options, callback) {
|
|
689
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
690
|
+
|
|
691
|
+
var { method, body, id, ...querystring } = params
|
|
692
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
693
|
+
|
|
694
|
+
var path = ''
|
|
695
|
+
if ((id) != null) {
|
|
696
|
+
if (method == null) method = 'GET'
|
|
697
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
|
698
|
+
} else {
|
|
699
|
+
if (method == null) method = 'GET'
|
|
700
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics'
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
// build request object
|
|
704
|
+
const request = {
|
|
705
|
+
method,
|
|
706
|
+
path,
|
|
707
|
+
body: null,
|
|
708
|
+
querystring
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
return this.transport.request(request, options, callback)
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
MlApi.prototype.getDataFrameAnalyticsStats = function mlGetDataFrameAnalyticsStatsApi (params, options, callback) {
|
|
715
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
716
|
+
|
|
717
|
+
var { method, body, id, ...querystring } = params
|
|
718
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
719
|
+
|
|
720
|
+
var path = ''
|
|
721
|
+
if ((id) != null) {
|
|
722
|
+
if (method == null) method = 'GET'
|
|
723
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_stats'
|
|
724
|
+
} else {
|
|
725
|
+
if (method == null) method = 'GET'
|
|
726
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + '_stats'
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
// build request object
|
|
730
|
+
const request = {
|
|
731
|
+
method,
|
|
732
|
+
path,
|
|
733
|
+
body: null,
|
|
734
|
+
querystring
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
return this.transport.request(request, options, callback)
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
MlApi.prototype.getDatafeedStats = function mlGetDatafeedStatsApi (params, options, callback) {
|
|
741
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
742
|
+
|
|
743
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
744
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
745
|
+
|
|
746
|
+
var path = ''
|
|
747
|
+
if ((datafeed_id || datafeedId) != null) {
|
|
748
|
+
if (method == null) method = 'GET'
|
|
749
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_stats'
|
|
750
|
+
} else {
|
|
751
|
+
if (method == null) method = 'GET'
|
|
752
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + '_stats'
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// build request object
|
|
756
|
+
const request = {
|
|
757
|
+
method,
|
|
758
|
+
path,
|
|
759
|
+
body: null,
|
|
760
|
+
querystring
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
return this.transport.request(request, options, callback)
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
MlApi.prototype.getDatafeeds = function mlGetDatafeedsApi (params, options, callback) {
|
|
767
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
768
|
+
|
|
769
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
770
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
771
|
+
|
|
772
|
+
var path = ''
|
|
773
|
+
if ((datafeed_id || datafeedId) != null) {
|
|
774
|
+
if (method == null) method = 'GET'
|
|
775
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
|
776
|
+
} else {
|
|
777
|
+
if (method == null) method = 'GET'
|
|
778
|
+
path = '/' + '_ml' + '/' + 'datafeeds'
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
// build request object
|
|
782
|
+
const request = {
|
|
783
|
+
method,
|
|
784
|
+
path,
|
|
785
|
+
body: null,
|
|
786
|
+
querystring
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
return this.transport.request(request, options, callback)
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
MlApi.prototype.getFilters = function mlGetFiltersApi (params, options, callback) {
|
|
793
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
794
|
+
|
|
795
|
+
var { method, body, filterId, filter_id, ...querystring } = params
|
|
796
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
797
|
+
|
|
798
|
+
var path = ''
|
|
799
|
+
if ((filter_id || filterId) != null) {
|
|
800
|
+
if (method == null) method = 'GET'
|
|
801
|
+
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId)
|
|
802
|
+
} else {
|
|
803
|
+
if (method == null) method = 'GET'
|
|
804
|
+
path = '/' + '_ml' + '/' + 'filters'
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
// build request object
|
|
808
|
+
const request = {
|
|
809
|
+
method,
|
|
810
|
+
path,
|
|
811
|
+
body: null,
|
|
812
|
+
querystring
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
return this.transport.request(request, options, callback)
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
MlApi.prototype.getInfluencers = function mlGetInfluencersApi (params, options, callback) {
|
|
819
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
820
|
+
|
|
821
|
+
// check required parameters
|
|
822
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
823
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
824
|
+
return handleError(err, callback)
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
828
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
829
|
+
|
|
830
|
+
var path = ''
|
|
831
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
832
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'influencers'
|
|
833
|
+
|
|
834
|
+
// build request object
|
|
835
|
+
const request = {
|
|
836
|
+
method,
|
|
837
|
+
path,
|
|
838
|
+
body: body || '',
|
|
839
|
+
querystring
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
return this.transport.request(request, options, callback)
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
MlApi.prototype.getJobStats = function mlGetJobStatsApi (params, options, callback) {
|
|
846
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
847
|
+
|
|
848
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
849
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
850
|
+
|
|
851
|
+
var path = ''
|
|
852
|
+
if ((job_id || jobId) != null) {
|
|
853
|
+
if (method == null) method = 'GET'
|
|
854
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_stats'
|
|
855
|
+
} else {
|
|
856
|
+
if (method == null) method = 'GET'
|
|
857
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_stats'
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
// build request object
|
|
861
|
+
const request = {
|
|
862
|
+
method,
|
|
863
|
+
path,
|
|
864
|
+
body: null,
|
|
865
|
+
querystring
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
return this.transport.request(request, options, callback)
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
MlApi.prototype.getJobs = function mlGetJobsApi (params, options, callback) {
|
|
872
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
873
|
+
|
|
874
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
875
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
876
|
+
|
|
877
|
+
var path = ''
|
|
878
|
+
if ((job_id || jobId) != null) {
|
|
879
|
+
if (method == null) method = 'GET'
|
|
880
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
|
881
|
+
} else {
|
|
882
|
+
if (method == null) method = 'GET'
|
|
883
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors'
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
// build request object
|
|
887
|
+
const request = {
|
|
888
|
+
method,
|
|
889
|
+
path,
|
|
890
|
+
body: null,
|
|
891
|
+
querystring
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
return this.transport.request(request, options, callback)
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
MlApi.prototype.getModelSnapshots = function mlGetModelSnapshotsApi (params, options, callback) {
|
|
898
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
899
|
+
|
|
900
|
+
// check required parameters
|
|
901
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
902
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
903
|
+
return handleError(err, callback)
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
// check required url components
|
|
907
|
+
if ((params['snapshot_id'] != null || params['snapshotId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
908
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
909
|
+
return handleError(err, callback)
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
var { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
913
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
914
|
+
|
|
915
|
+
var path = ''
|
|
916
|
+
if ((job_id || jobId) != null && (snapshot_id || snapshotId) != null) {
|
|
917
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
918
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId)
|
|
919
|
+
} else {
|
|
920
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
921
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots'
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
// build request object
|
|
925
|
+
const request = {
|
|
926
|
+
method,
|
|
927
|
+
path,
|
|
928
|
+
body: body || '',
|
|
929
|
+
querystring
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
return this.transport.request(request, options, callback)
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
MlApi.prototype.getOverallBuckets = function mlGetOverallBucketsApi (params, options, callback) {
|
|
936
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
937
|
+
|
|
938
|
+
// check required parameters
|
|
939
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
940
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
941
|
+
return handleError(err, callback)
|
|
942
|
+
}
|
|
943
|
+
|
|
944
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
945
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
946
|
+
|
|
947
|
+
var path = ''
|
|
948
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
949
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'overall_buckets'
|
|
950
|
+
|
|
951
|
+
// build request object
|
|
952
|
+
const request = {
|
|
953
|
+
method,
|
|
954
|
+
path,
|
|
955
|
+
body: body || '',
|
|
956
|
+
querystring
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
return this.transport.request(request, options, callback)
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
MlApi.prototype.getRecords = function mlGetRecordsApi (params, options, callback) {
|
|
963
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
964
|
+
|
|
965
|
+
// check required parameters
|
|
966
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
967
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
968
|
+
return handleError(err, callback)
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
972
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
973
|
+
|
|
974
|
+
var path = ''
|
|
975
|
+
if (method == null) method = body == null ? 'GET' : 'POST'
|
|
976
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'results' + '/' + 'records'
|
|
977
|
+
|
|
978
|
+
// build request object
|
|
979
|
+
const request = {
|
|
980
|
+
method,
|
|
981
|
+
path,
|
|
982
|
+
body: body || '',
|
|
983
|
+
querystring
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
return this.transport.request(request, options, callback)
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
MlApi.prototype.getTrainedModels = function mlGetTrainedModelsApi (params, options, callback) {
|
|
990
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
991
|
+
|
|
992
|
+
var { method, body, modelId, model_id, ...querystring } = params
|
|
993
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
994
|
+
|
|
995
|
+
var path = ''
|
|
996
|
+
if ((model_id || modelId) != null) {
|
|
997
|
+
if (method == null) method = 'GET'
|
|
998
|
+
path = '/' + '_ml' + '/' + 'inference' + '/' + encodeURIComponent(model_id || modelId)
|
|
999
|
+
} else {
|
|
1000
|
+
if (method == null) method = 'GET'
|
|
1001
|
+
path = '/' + '_ml' + '/' + 'inference'
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
// build request object
|
|
1005
|
+
const request = {
|
|
1006
|
+
method,
|
|
1007
|
+
path,
|
|
1008
|
+
body: null,
|
|
1009
|
+
querystring
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
return this.transport.request(request, options, callback)
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
MlApi.prototype.getTrainedModelsStats = function mlGetTrainedModelsStatsApi (params, options, callback) {
|
|
1016
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1017
|
+
|
|
1018
|
+
var { method, body, modelId, model_id, ...querystring } = params
|
|
1019
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1020
|
+
|
|
1021
|
+
var path = ''
|
|
1022
|
+
if ((model_id || modelId) != null) {
|
|
1023
|
+
if (method == null) method = 'GET'
|
|
1024
|
+
path = '/' + '_ml' + '/' + 'inference' + '/' + encodeURIComponent(model_id || modelId) + '/' + '_stats'
|
|
1025
|
+
} else {
|
|
1026
|
+
if (method == null) method = 'GET'
|
|
1027
|
+
path = '/' + '_ml' + '/' + 'inference' + '/' + '_stats'
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
// build request object
|
|
1031
|
+
const request = {
|
|
1032
|
+
method,
|
|
1033
|
+
path,
|
|
1034
|
+
body: null,
|
|
1035
|
+
querystring
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
return this.transport.request(request, options, callback)
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
MlApi.prototype.info = function mlInfoApi (params, options, callback) {
|
|
1042
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1043
|
+
|
|
1044
|
+
var { method, body, ...querystring } = params
|
|
1045
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1046
|
+
|
|
1047
|
+
var path = ''
|
|
1048
|
+
if (method == null) method = 'GET'
|
|
1049
|
+
path = '/' + '_ml' + '/' + 'info'
|
|
1050
|
+
|
|
1051
|
+
// build request object
|
|
1052
|
+
const request = {
|
|
1053
|
+
method,
|
|
1054
|
+
path,
|
|
1055
|
+
body: null,
|
|
1056
|
+
querystring
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
return this.transport.request(request, options, callback)
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
MlApi.prototype.openJob = function mlOpenJobApi (params, options, callback) {
|
|
1063
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1064
|
+
|
|
1065
|
+
// check required parameters
|
|
1066
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1067
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1068
|
+
return handleError(err, callback)
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
1072
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1073
|
+
|
|
1074
|
+
var path = ''
|
|
1075
|
+
if (method == null) method = 'POST'
|
|
1076
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_open'
|
|
1077
|
+
|
|
1078
|
+
// build request object
|
|
1079
|
+
const request = {
|
|
1080
|
+
method,
|
|
1081
|
+
path,
|
|
1082
|
+
body: body || '',
|
|
1083
|
+
querystring
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
return this.transport.request(request, options, callback)
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
MlApi.prototype.postCalendarEvents = function mlPostCalendarEventsApi (params, options, callback) {
|
|
1090
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1091
|
+
|
|
1092
|
+
// check required parameters
|
|
1093
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
1094
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
1095
|
+
return handleError(err, callback)
|
|
1096
|
+
}
|
|
1097
|
+
if (params['body'] == null) {
|
|
1098
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1099
|
+
return handleError(err, callback)
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
var { method, body, calendarId, calendar_id, ...querystring } = params
|
|
1103
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1104
|
+
|
|
1105
|
+
var path = ''
|
|
1106
|
+
if (method == null) method = 'POST'
|
|
1107
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'events'
|
|
1108
|
+
|
|
1109
|
+
// build request object
|
|
1110
|
+
const request = {
|
|
1111
|
+
method,
|
|
1112
|
+
path,
|
|
1113
|
+
body: body || '',
|
|
1114
|
+
querystring
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
return this.transport.request(request, options, callback)
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
MlApi.prototype.postData = function mlPostDataApi (params, options, callback) {
|
|
1121
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1122
|
+
|
|
1123
|
+
// check required parameters
|
|
1124
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1125
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1126
|
+
return handleError(err, callback)
|
|
1127
|
+
}
|
|
1128
|
+
if (params['body'] == null) {
|
|
1129
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1130
|
+
return handleError(err, callback)
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
1134
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1135
|
+
|
|
1136
|
+
var path = ''
|
|
1137
|
+
if (method == null) method = 'POST'
|
|
1138
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_data'
|
|
1139
|
+
|
|
1140
|
+
// build request object
|
|
1141
|
+
const request = {
|
|
1142
|
+
method,
|
|
1143
|
+
path,
|
|
1144
|
+
body: body || '',
|
|
1145
|
+
querystring
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
return this.transport.request(request, options, callback)
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
MlApi.prototype.previewDatafeed = function mlPreviewDatafeedApi (params, options, callback) {
|
|
1152
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1153
|
+
|
|
1154
|
+
// check required parameters
|
|
1155
|
+
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
|
1156
|
+
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1157
|
+
return handleError(err, callback)
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1161
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1162
|
+
|
|
1163
|
+
var path = ''
|
|
1164
|
+
if (method == null) method = 'GET'
|
|
1165
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_preview'
|
|
1166
|
+
|
|
1167
|
+
// build request object
|
|
1168
|
+
const request = {
|
|
1169
|
+
method,
|
|
1170
|
+
path,
|
|
1171
|
+
body: null,
|
|
1172
|
+
querystring
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
return this.transport.request(request, options, callback)
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
MlApi.prototype.putCalendar = function mlPutCalendarApi (params, options, callback) {
|
|
1179
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1180
|
+
|
|
1181
|
+
// check required parameters
|
|
1182
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
1183
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
1184
|
+
return handleError(err, callback)
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
var { method, body, calendarId, calendar_id, ...querystring } = params
|
|
1188
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1189
|
+
|
|
1190
|
+
var path = ''
|
|
1191
|
+
if (method == null) method = 'PUT'
|
|
1192
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId)
|
|
1193
|
+
|
|
1194
|
+
// build request object
|
|
1195
|
+
const request = {
|
|
1196
|
+
method,
|
|
1197
|
+
path,
|
|
1198
|
+
body: body || '',
|
|
1199
|
+
querystring
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
return this.transport.request(request, options, callback)
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
MlApi.prototype.putCalendarJob = function mlPutCalendarJobApi (params, options, callback) {
|
|
1206
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1207
|
+
|
|
1208
|
+
// check required parameters
|
|
1209
|
+
if (params['calendar_id'] == null && params['calendarId'] == null) {
|
|
1210
|
+
const err = new this[kConfigurationError]('Missing required parameter: calendar_id or calendarId')
|
|
1211
|
+
return handleError(err, callback)
|
|
1212
|
+
}
|
|
1213
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1214
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1215
|
+
return handleError(err, callback)
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
// check required url components
|
|
1219
|
+
if ((params['job_id'] != null || params['jobId'] != null) && ((params['calendar_id'] == null && params['calendarId'] == null))) {
|
|
1220
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: calendar_id')
|
|
1221
|
+
return handleError(err, callback)
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
var { method, body, calendarId, calendar_id, jobId, job_id, ...querystring } = params
|
|
1225
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1226
|
+
|
|
1227
|
+
var path = ''
|
|
1228
|
+
if (method == null) method = 'PUT'
|
|
1229
|
+
path = '/' + '_ml' + '/' + 'calendars' + '/' + encodeURIComponent(calendar_id || calendarId) + '/' + 'jobs' + '/' + encodeURIComponent(job_id || jobId)
|
|
1230
|
+
|
|
1231
|
+
// build request object
|
|
1232
|
+
const request = {
|
|
1233
|
+
method,
|
|
1234
|
+
path,
|
|
1235
|
+
body: body || '',
|
|
1236
|
+
querystring
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
return this.transport.request(request, options, callback)
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
MlApi.prototype.putDataFrameAnalytics = function mlPutDataFrameAnalyticsApi (params, options, callback) {
|
|
1243
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1244
|
+
|
|
1245
|
+
// check required parameters
|
|
1246
|
+
if (params['id'] == null) {
|
|
1247
|
+
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1248
|
+
return handleError(err, callback)
|
|
1249
|
+
}
|
|
1250
|
+
if (params['body'] == null) {
|
|
1251
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1252
|
+
return handleError(err, callback)
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
var { method, body, id, ...querystring } = params
|
|
1256
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1257
|
+
|
|
1258
|
+
var path = ''
|
|
1259
|
+
if (method == null) method = 'PUT'
|
|
1260
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id)
|
|
1261
|
+
|
|
1262
|
+
// build request object
|
|
1263
|
+
const request = {
|
|
1264
|
+
method,
|
|
1265
|
+
path,
|
|
1266
|
+
body: body || '',
|
|
1267
|
+
querystring
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
return this.transport.request(request, options, callback)
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
MlApi.prototype.putDatafeed = function mlPutDatafeedApi (params, options, callback) {
|
|
1274
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1275
|
+
|
|
1276
|
+
// check required parameters
|
|
1277
|
+
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
|
1278
|
+
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1279
|
+
return handleError(err, callback)
|
|
1280
|
+
}
|
|
1281
|
+
if (params['body'] == null) {
|
|
1282
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1283
|
+
return handleError(err, callback)
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1287
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1288
|
+
|
|
1289
|
+
var path = ''
|
|
1290
|
+
if (method == null) method = 'PUT'
|
|
1291
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId)
|
|
1292
|
+
|
|
1293
|
+
// build request object
|
|
1294
|
+
const request = {
|
|
1295
|
+
method,
|
|
1296
|
+
path,
|
|
1297
|
+
body: body || '',
|
|
1298
|
+
querystring
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
return this.transport.request(request, options, callback)
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
MlApi.prototype.putFilter = function mlPutFilterApi (params, options, callback) {
|
|
1305
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1306
|
+
|
|
1307
|
+
// check required parameters
|
|
1308
|
+
if (params['filter_id'] == null && params['filterId'] == null) {
|
|
1309
|
+
const err = new this[kConfigurationError]('Missing required parameter: filter_id or filterId')
|
|
1310
|
+
return handleError(err, callback)
|
|
1311
|
+
}
|
|
1312
|
+
if (params['body'] == null) {
|
|
1313
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1314
|
+
return handleError(err, callback)
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
var { method, body, filterId, filter_id, ...querystring } = params
|
|
1318
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1319
|
+
|
|
1320
|
+
var path = ''
|
|
1321
|
+
if (method == null) method = 'PUT'
|
|
1322
|
+
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId)
|
|
1323
|
+
|
|
1324
|
+
// build request object
|
|
1325
|
+
const request = {
|
|
1326
|
+
method,
|
|
1327
|
+
path,
|
|
1328
|
+
body: body || '',
|
|
1329
|
+
querystring
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
return this.transport.request(request, options, callback)
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
MlApi.prototype.putJob = function mlPutJobApi (params, options, callback) {
|
|
1336
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1337
|
+
|
|
1338
|
+
// check required parameters
|
|
1339
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1340
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1341
|
+
return handleError(err, callback)
|
|
1342
|
+
}
|
|
1343
|
+
if (params['body'] == null) {
|
|
1344
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1345
|
+
return handleError(err, callback)
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
1349
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1350
|
+
|
|
1351
|
+
var path = ''
|
|
1352
|
+
if (method == null) method = 'PUT'
|
|
1353
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId)
|
|
1354
|
+
|
|
1355
|
+
// build request object
|
|
1356
|
+
const request = {
|
|
1357
|
+
method,
|
|
1358
|
+
path,
|
|
1359
|
+
body: body || '',
|
|
1360
|
+
querystring
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
return this.transport.request(request, options, callback)
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
MlApi.prototype.putTrainedModel = function mlPutTrainedModelApi (params, options, callback) {
|
|
1367
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1368
|
+
|
|
1369
|
+
// check required parameters
|
|
1370
|
+
if (params['model_id'] == null && params['modelId'] == null) {
|
|
1371
|
+
const err = new this[kConfigurationError]('Missing required parameter: model_id or modelId')
|
|
1372
|
+
return handleError(err, callback)
|
|
1373
|
+
}
|
|
1374
|
+
if (params['body'] == null) {
|
|
1375
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1376
|
+
return handleError(err, callback)
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
var { method, body, modelId, model_id, ...querystring } = params
|
|
1380
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1381
|
+
|
|
1382
|
+
var path = ''
|
|
1383
|
+
if (method == null) method = 'PUT'
|
|
1384
|
+
path = '/' + '_ml' + '/' + 'inference' + '/' + encodeURIComponent(model_id || modelId)
|
|
1385
|
+
|
|
1386
|
+
// build request object
|
|
1387
|
+
const request = {
|
|
1388
|
+
method,
|
|
1389
|
+
path,
|
|
1390
|
+
body: body || '',
|
|
1391
|
+
querystring
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
return this.transport.request(request, options, callback)
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
MlApi.prototype.revertModelSnapshot = function mlRevertModelSnapshotApi (params, options, callback) {
|
|
1398
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1399
|
+
|
|
1400
|
+
// check required parameters
|
|
1401
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1402
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1403
|
+
return handleError(err, callback)
|
|
1404
|
+
}
|
|
1405
|
+
if (params['snapshot_id'] == null && params['snapshotId'] == null) {
|
|
1406
|
+
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
1407
|
+
return handleError(err, callback)
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1410
|
+
// check required url components
|
|
1411
|
+
if ((params['snapshot_id'] != null || params['snapshotId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
1412
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
1413
|
+
return handleError(err, callback)
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
var { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
1417
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1418
|
+
|
|
1419
|
+
var path = ''
|
|
1420
|
+
if (method == null) method = 'POST'
|
|
1421
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId) + '/' + '_revert'
|
|
1422
|
+
|
|
1423
|
+
// build request object
|
|
1424
|
+
const request = {
|
|
1425
|
+
method,
|
|
1426
|
+
path,
|
|
1427
|
+
body: body || '',
|
|
1428
|
+
querystring
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
return this.transport.request(request, options, callback)
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
MlApi.prototype.setUpgradeMode = function mlSetUpgradeModeApi (params, options, callback) {
|
|
1435
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1436
|
+
|
|
1437
|
+
var { method, body, ...querystring } = params
|
|
1438
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1439
|
+
|
|
1440
|
+
var path = ''
|
|
1441
|
+
if (method == null) method = 'POST'
|
|
1442
|
+
path = '/' + '_ml' + '/' + 'set_upgrade_mode'
|
|
1443
|
+
|
|
1444
|
+
// build request object
|
|
1445
|
+
const request = {
|
|
1446
|
+
method,
|
|
1447
|
+
path,
|
|
1448
|
+
body: body || '',
|
|
1449
|
+
querystring
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
return this.transport.request(request, options, callback)
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
MlApi.prototype.startDataFrameAnalytics = function mlStartDataFrameAnalyticsApi (params, options, callback) {
|
|
1456
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1457
|
+
|
|
1458
|
+
// check required parameters
|
|
1459
|
+
if (params['id'] == null) {
|
|
1460
|
+
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1461
|
+
return handleError(err, callback)
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
var { method, body, id, ...querystring } = params
|
|
1465
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1466
|
+
|
|
1467
|
+
var path = ''
|
|
1468
|
+
if (method == null) method = 'POST'
|
|
1469
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_start'
|
|
1470
|
+
|
|
1471
|
+
// build request object
|
|
1472
|
+
const request = {
|
|
1473
|
+
method,
|
|
1474
|
+
path,
|
|
1475
|
+
body: body || '',
|
|
1476
|
+
querystring
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
return this.transport.request(request, options, callback)
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
MlApi.prototype.startDatafeed = function mlStartDatafeedApi (params, options, callback) {
|
|
1483
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1484
|
+
|
|
1485
|
+
// check required parameters
|
|
1486
|
+
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
|
1487
|
+
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1488
|
+
return handleError(err, callback)
|
|
1489
|
+
}
|
|
1490
|
+
|
|
1491
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1492
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1493
|
+
|
|
1494
|
+
var path = ''
|
|
1495
|
+
if (method == null) method = 'POST'
|
|
1496
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_start'
|
|
1497
|
+
|
|
1498
|
+
// build request object
|
|
1499
|
+
const request = {
|
|
1500
|
+
method,
|
|
1501
|
+
path,
|
|
1502
|
+
body: body || '',
|
|
1503
|
+
querystring
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
return this.transport.request(request, options, callback)
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
MlApi.prototype.stopDataFrameAnalytics = function mlStopDataFrameAnalyticsApi (params, options, callback) {
|
|
1510
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1511
|
+
|
|
1512
|
+
// check required parameters
|
|
1513
|
+
if (params['id'] == null) {
|
|
1514
|
+
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1515
|
+
return handleError(err, callback)
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
var { method, body, id, ...querystring } = params
|
|
1519
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1520
|
+
|
|
1521
|
+
var path = ''
|
|
1522
|
+
if (method == null) method = 'POST'
|
|
1523
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_stop'
|
|
1524
|
+
|
|
1525
|
+
// build request object
|
|
1526
|
+
const request = {
|
|
1527
|
+
method,
|
|
1528
|
+
path,
|
|
1529
|
+
body: body || '',
|
|
1530
|
+
querystring
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
return this.transport.request(request, options, callback)
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
MlApi.prototype.stopDatafeed = function mlStopDatafeedApi (params, options, callback) {
|
|
1537
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1538
|
+
|
|
1539
|
+
// check required parameters
|
|
1540
|
+
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
|
1541
|
+
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1542
|
+
return handleError(err, callback)
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1546
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1547
|
+
|
|
1548
|
+
var path = ''
|
|
1549
|
+
if (method == null) method = 'POST'
|
|
1550
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_stop'
|
|
1551
|
+
|
|
1552
|
+
// build request object
|
|
1553
|
+
const request = {
|
|
1554
|
+
method,
|
|
1555
|
+
path,
|
|
1556
|
+
body: body || '',
|
|
1557
|
+
querystring
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
return this.transport.request(request, options, callback)
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
MlApi.prototype.updateDataFrameAnalytics = function mlUpdateDataFrameAnalyticsApi (params, options, callback) {
|
|
1564
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1565
|
+
|
|
1566
|
+
// check required parameters
|
|
1567
|
+
if (params['id'] == null) {
|
|
1568
|
+
const err = new this[kConfigurationError]('Missing required parameter: id')
|
|
1569
|
+
return handleError(err, callback)
|
|
1570
|
+
}
|
|
1571
|
+
if (params['body'] == null) {
|
|
1572
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1573
|
+
return handleError(err, callback)
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
var { method, body, id, ...querystring } = params
|
|
1577
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1578
|
+
|
|
1579
|
+
var path = ''
|
|
1580
|
+
if (method == null) method = 'POST'
|
|
1581
|
+
path = '/' + '_ml' + '/' + 'data_frame' + '/' + 'analytics' + '/' + encodeURIComponent(id) + '/' + '_update'
|
|
1582
|
+
|
|
1583
|
+
// build request object
|
|
1584
|
+
const request = {
|
|
1585
|
+
method,
|
|
1586
|
+
path,
|
|
1587
|
+
body: body || '',
|
|
1588
|
+
querystring
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
return this.transport.request(request, options, callback)
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
MlApi.prototype.updateDatafeed = function mlUpdateDatafeedApi (params, options, callback) {
|
|
1595
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1596
|
+
|
|
1597
|
+
// check required parameters
|
|
1598
|
+
if (params['datafeed_id'] == null && params['datafeedId'] == null) {
|
|
1599
|
+
const err = new this[kConfigurationError]('Missing required parameter: datafeed_id or datafeedId')
|
|
1600
|
+
return handleError(err, callback)
|
|
1601
|
+
}
|
|
1602
|
+
if (params['body'] == null) {
|
|
1603
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1604
|
+
return handleError(err, callback)
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
var { method, body, datafeedId, datafeed_id, ...querystring } = params
|
|
1608
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1609
|
+
|
|
1610
|
+
var path = ''
|
|
1611
|
+
if (method == null) method = 'POST'
|
|
1612
|
+
path = '/' + '_ml' + '/' + 'datafeeds' + '/' + encodeURIComponent(datafeed_id || datafeedId) + '/' + '_update'
|
|
1613
|
+
|
|
1614
|
+
// build request object
|
|
1615
|
+
const request = {
|
|
1616
|
+
method,
|
|
1617
|
+
path,
|
|
1618
|
+
body: body || '',
|
|
1619
|
+
querystring
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
return this.transport.request(request, options, callback)
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
MlApi.prototype.updateFilter = function mlUpdateFilterApi (params, options, callback) {
|
|
1626
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1627
|
+
|
|
1628
|
+
// check required parameters
|
|
1629
|
+
if (params['filter_id'] == null && params['filterId'] == null) {
|
|
1630
|
+
const err = new this[kConfigurationError]('Missing required parameter: filter_id or filterId')
|
|
1631
|
+
return handleError(err, callback)
|
|
1632
|
+
}
|
|
1633
|
+
if (params['body'] == null) {
|
|
1634
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1635
|
+
return handleError(err, callback)
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
var { method, body, filterId, filter_id, ...querystring } = params
|
|
1639
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1640
|
+
|
|
1641
|
+
var path = ''
|
|
1642
|
+
if (method == null) method = 'POST'
|
|
1643
|
+
path = '/' + '_ml' + '/' + 'filters' + '/' + encodeURIComponent(filter_id || filterId) + '/' + '_update'
|
|
1644
|
+
|
|
1645
|
+
// build request object
|
|
1646
|
+
const request = {
|
|
1647
|
+
method,
|
|
1648
|
+
path,
|
|
1649
|
+
body: body || '',
|
|
1650
|
+
querystring
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
return this.transport.request(request, options, callback)
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
MlApi.prototype.updateJob = function mlUpdateJobApi (params, options, callback) {
|
|
1657
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1658
|
+
|
|
1659
|
+
// check required parameters
|
|
1660
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1661
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1662
|
+
return handleError(err, callback)
|
|
1663
|
+
}
|
|
1664
|
+
if (params['body'] == null) {
|
|
1665
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1666
|
+
return handleError(err, callback)
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
var { method, body, jobId, job_id, ...querystring } = params
|
|
1670
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1671
|
+
|
|
1672
|
+
var path = ''
|
|
1673
|
+
if (method == null) method = 'POST'
|
|
1674
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + '_update'
|
|
1675
|
+
|
|
1676
|
+
// build request object
|
|
1677
|
+
const request = {
|
|
1678
|
+
method,
|
|
1679
|
+
path,
|
|
1680
|
+
body: body || '',
|
|
1681
|
+
querystring
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
return this.transport.request(request, options, callback)
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
MlApi.prototype.updateModelSnapshot = function mlUpdateModelSnapshotApi (params, options, callback) {
|
|
1688
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1689
|
+
|
|
1690
|
+
// check required parameters
|
|
1691
|
+
if (params['job_id'] == null && params['jobId'] == null) {
|
|
1692
|
+
const err = new this[kConfigurationError]('Missing required parameter: job_id or jobId')
|
|
1693
|
+
return handleError(err, callback)
|
|
1694
|
+
}
|
|
1695
|
+
if (params['snapshot_id'] == null && params['snapshotId'] == null) {
|
|
1696
|
+
const err = new this[kConfigurationError]('Missing required parameter: snapshot_id or snapshotId')
|
|
1697
|
+
return handleError(err, callback)
|
|
1698
|
+
}
|
|
1699
|
+
if (params['body'] == null) {
|
|
1700
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1701
|
+
return handleError(err, callback)
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
// check required url components
|
|
1705
|
+
if ((params['snapshot_id'] != null || params['snapshotId'] != null) && ((params['job_id'] == null && params['jobId'] == null))) {
|
|
1706
|
+
const err = new this[kConfigurationError]('Missing required parameter of the url: job_id')
|
|
1707
|
+
return handleError(err, callback)
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
var { method, body, jobId, job_id, snapshotId, snapshot_id, ...querystring } = params
|
|
1711
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1712
|
+
|
|
1713
|
+
var path = ''
|
|
1714
|
+
if (method == null) method = 'POST'
|
|
1715
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + encodeURIComponent(job_id || jobId) + '/' + 'model_snapshots' + '/' + encodeURIComponent(snapshot_id || snapshotId) + '/' + '_update'
|
|
1716
|
+
|
|
1717
|
+
// build request object
|
|
1718
|
+
const request = {
|
|
1719
|
+
method,
|
|
1720
|
+
path,
|
|
1721
|
+
body: body || '',
|
|
1722
|
+
querystring
|
|
1723
|
+
}
|
|
1724
|
+
|
|
1725
|
+
return this.transport.request(request, options, callback)
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
MlApi.prototype.validate = function mlValidateApi (params, options, callback) {
|
|
1729
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1730
|
+
|
|
1731
|
+
// check required parameters
|
|
1732
|
+
if (params['body'] == null) {
|
|
1733
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1734
|
+
return handleError(err, callback)
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
var { method, body, ...querystring } = params
|
|
1738
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1739
|
+
|
|
1740
|
+
var path = ''
|
|
1741
|
+
if (method == null) method = 'POST'
|
|
1742
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_validate'
|
|
1743
|
+
|
|
1744
|
+
// build request object
|
|
1745
|
+
const request = {
|
|
1746
|
+
method,
|
|
1747
|
+
path,
|
|
1748
|
+
body: body || '',
|
|
1749
|
+
querystring
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
return this.transport.request(request, options, callback)
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
MlApi.prototype.validateDetector = function mlValidateDetectorApi (params, options, callback) {
|
|
1756
|
+
;[params, options, callback] = normalizeArguments(params, options, callback)
|
|
1757
|
+
|
|
1758
|
+
// check required parameters
|
|
1759
|
+
if (params['body'] == null) {
|
|
1760
|
+
const err = new this[kConfigurationError]('Missing required parameter: body')
|
|
1761
|
+
return handleError(err, callback)
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
var { method, body, ...querystring } = params
|
|
1765
|
+
querystring = snakeCaseKeys(acceptedQuerystring, snakeCase, querystring)
|
|
1766
|
+
|
|
1767
|
+
var path = ''
|
|
1768
|
+
if (method == null) method = 'POST'
|
|
1769
|
+
path = '/' + '_ml' + '/' + 'anomaly_detectors' + '/' + '_validate' + '/' + 'detector'
|
|
1770
|
+
|
|
1771
|
+
// build request object
|
|
1772
|
+
const request = {
|
|
1773
|
+
method,
|
|
1774
|
+
path,
|
|
1775
|
+
body: body || '',
|
|
1776
|
+
querystring
|
|
1777
|
+
}
|
|
1778
|
+
|
|
1779
|
+
return this.transport.request(request, options, callback)
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
Object.defineProperties(MlApi.prototype, {
|
|
1783
|
+
close_job: { get () { return this.closeJob } },
|
|
1784
|
+
delete_calendar: { get () { return this.deleteCalendar } },
|
|
1785
|
+
delete_calendar_event: { get () { return this.deleteCalendarEvent } },
|
|
1786
|
+
delete_calendar_job: { get () { return this.deleteCalendarJob } },
|
|
1787
|
+
delete_data_frame_analytics: { get () { return this.deleteDataFrameAnalytics } },
|
|
1788
|
+
delete_datafeed: { get () { return this.deleteDatafeed } },
|
|
1789
|
+
delete_expired_data: { get () { return this.deleteExpiredData } },
|
|
1790
|
+
delete_filter: { get () { return this.deleteFilter } },
|
|
1791
|
+
delete_forecast: { get () { return this.deleteForecast } },
|
|
1792
|
+
delete_job: { get () { return this.deleteJob } },
|
|
1793
|
+
delete_model_snapshot: { get () { return this.deleteModelSnapshot } },
|
|
1794
|
+
delete_trained_model: { get () { return this.deleteTrainedModel } },
|
|
1795
|
+
estimate_model_memory: { get () { return this.estimateModelMemory } },
|
|
1796
|
+
evaluate_data_frame: { get () { return this.evaluateDataFrame } },
|
|
1797
|
+
explain_data_frame_analytics: { get () { return this.explainDataFrameAnalytics } },
|
|
1798
|
+
find_file_structure: { get () { return this.findFileStructure } },
|
|
1799
|
+
flush_job: { get () { return this.flushJob } },
|
|
1800
|
+
get_buckets: { get () { return this.getBuckets } },
|
|
1801
|
+
get_calendar_events: { get () { return this.getCalendarEvents } },
|
|
1802
|
+
get_calendars: { get () { return this.getCalendars } },
|
|
1803
|
+
get_categories: { get () { return this.getCategories } },
|
|
1804
|
+
get_data_frame_analytics: { get () { return this.getDataFrameAnalytics } },
|
|
1805
|
+
get_data_frame_analytics_stats: { get () { return this.getDataFrameAnalyticsStats } },
|
|
1806
|
+
get_datafeed_stats: { get () { return this.getDatafeedStats } },
|
|
1807
|
+
get_datafeeds: { get () { return this.getDatafeeds } },
|
|
1808
|
+
get_filters: { get () { return this.getFilters } },
|
|
1809
|
+
get_influencers: { get () { return this.getInfluencers } },
|
|
1810
|
+
get_job_stats: { get () { return this.getJobStats } },
|
|
1811
|
+
get_jobs: { get () { return this.getJobs } },
|
|
1812
|
+
get_model_snapshots: { get () { return this.getModelSnapshots } },
|
|
1813
|
+
get_overall_buckets: { get () { return this.getOverallBuckets } },
|
|
1814
|
+
get_records: { get () { return this.getRecords } },
|
|
1815
|
+
get_trained_models: { get () { return this.getTrainedModels } },
|
|
1816
|
+
get_trained_models_stats: { get () { return this.getTrainedModelsStats } },
|
|
1817
|
+
open_job: { get () { return this.openJob } },
|
|
1818
|
+
post_calendar_events: { get () { return this.postCalendarEvents } },
|
|
1819
|
+
post_data: { get () { return this.postData } },
|
|
1820
|
+
preview_datafeed: { get () { return this.previewDatafeed } },
|
|
1821
|
+
put_calendar: { get () { return this.putCalendar } },
|
|
1822
|
+
put_calendar_job: { get () { return this.putCalendarJob } },
|
|
1823
|
+
put_data_frame_analytics: { get () { return this.putDataFrameAnalytics } },
|
|
1824
|
+
put_datafeed: { get () { return this.putDatafeed } },
|
|
1825
|
+
put_filter: { get () { return this.putFilter } },
|
|
1826
|
+
put_job: { get () { return this.putJob } },
|
|
1827
|
+
put_trained_model: { get () { return this.putTrainedModel } },
|
|
1828
|
+
revert_model_snapshot: { get () { return this.revertModelSnapshot } },
|
|
1829
|
+
set_upgrade_mode: { get () { return this.setUpgradeMode } },
|
|
1830
|
+
start_data_frame_analytics: { get () { return this.startDataFrameAnalytics } },
|
|
1831
|
+
start_datafeed: { get () { return this.startDatafeed } },
|
|
1832
|
+
stop_data_frame_analytics: { get () { return this.stopDataFrameAnalytics } },
|
|
1833
|
+
stop_datafeed: { get () { return this.stopDatafeed } },
|
|
1834
|
+
update_data_frame_analytics: { get () { return this.updateDataFrameAnalytics } },
|
|
1835
|
+
update_datafeed: { get () { return this.updateDatafeed } },
|
|
1836
|
+
update_filter: { get () { return this.updateFilter } },
|
|
1837
|
+
update_job: { get () { return this.updateJob } },
|
|
1838
|
+
update_model_snapshot: { get () { return this.updateModelSnapshot } },
|
|
1839
|
+
validate_detector: { get () { return this.validateDetector } }
|
|
1840
|
+
})
|
|
1841
|
+
|
|
1842
|
+
module.exports = MlApi
|