@elastic/elasticsearch 8.14.0 → 8.15.0
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/catalog-info.yaml +9 -9
- package/lib/api/api/async_search.d.ts +8 -8
- package/lib/api/api/async_search.js +28 -4
- package/lib/api/api/async_search.js.map +1 -1
- package/lib/api/api/autoscaling.d.ts +4 -4
- package/lib/api/api/autoscaling.js +25 -4
- package/lib/api/api/autoscaling.js.map +1 -1
- package/lib/api/api/bulk.d.ts +2 -2
- package/lib/api/api/bulk.js +7 -1
- package/lib/api/api/bulk.js.map +1 -1
- package/lib/api/api/capabilities.d.ts +14 -0
- package/lib/api/api/capabilities.js +42 -0
- package/lib/api/api/capabilities.js.map +1 -0
- package/lib/api/api/cat.d.ts +51 -51
- package/lib/api/api/cat.js +155 -26
- package/lib/api/api/cat.js.map +1 -1
- package/lib/api/api/ccr.d.ts +13 -13
- package/lib/api/api/ccr.js +88 -13
- package/lib/api/api/ccr.js.map +1 -1
- package/lib/api/api/clear_scroll.d.ts +2 -2
- package/lib/api/api/clear_scroll.js +7 -1
- package/lib/api/api/clear_scroll.js.map +1 -1
- package/lib/api/api/close_point_in_time.d.ts +2 -2
- package/lib/api/api/close_point_in_time.js +4 -1
- package/lib/api/api/close_point_in_time.js.map +1 -1
- package/lib/api/api/cluster.d.ts +24 -24
- package/lib/api/api/cluster.js +89 -16
- package/lib/api/api/cluster.js.map +1 -1
- package/lib/api/api/connector.d.ts +245 -0
- package/lib/api/api/connector.js +1036 -0
- package/lib/api/api/connector.js.map +1 -0
- package/lib/api/api/count.d.ts +1 -1
- package/lib/api/api/count.js +7 -1
- package/lib/api/api/count.js.map +1 -1
- package/lib/api/api/create.d.ts +2 -2
- package/lib/api/api/create.js +8 -1
- package/lib/api/api/create.js.map +1 -1
- package/lib/api/api/dangling_indices.d.ts +3 -3
- package/lib/api/api/dangling_indices.js +18 -3
- package/lib/api/api/dangling_indices.js.map +1 -1
- package/lib/api/api/delete.d.ts +2 -2
- package/lib/api/api/delete.js +8 -1
- package/lib/api/api/delete.js.map +1 -1
- package/lib/api/api/delete_by_query.d.ts +2 -2
- package/lib/api/api/delete_by_query.js +7 -1
- package/lib/api/api/delete_by_query.js.map +1 -1
- package/lib/api/api/delete_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/delete_by_query_rethrottle.js +7 -1
- package/lib/api/api/delete_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/delete_script.d.ts +2 -2
- package/lib/api/api/delete_script.js +7 -1
- package/lib/api/api/delete_script.js.map +1 -1
- package/lib/api/api/enrich.d.ts +8 -8
- package/lib/api/api/enrich.js +32 -5
- package/lib/api/api/enrich.js.map +1 -1
- package/lib/api/api/eql.d.ts +7 -7
- package/lib/api/api/eql.js +28 -4
- package/lib/api/api/eql.js.map +1 -1
- package/lib/api/api/esql.d.ts +16 -2
- package/lib/api/api/esql.js +47 -1
- package/lib/api/api/esql.js.map +1 -1
- package/lib/api/api/exists.d.ts +2 -2
- package/lib/api/api/exists.js +8 -1
- package/lib/api/api/exists.js.map +1 -1
- package/lib/api/api/exists_source.d.ts +2 -2
- package/lib/api/api/exists_source.js +8 -1
- package/lib/api/api/exists_source.js.map +1 -1
- package/lib/api/api/explain.d.ts +2 -2
- package/lib/api/api/explain.js +8 -1
- package/lib/api/api/explain.js.map +1 -1
- package/lib/api/api/features.d.ts +2 -2
- package/lib/api/api/features.js +8 -2
- package/lib/api/api/features.js.map +1 -1
- package/lib/api/api/field_caps.d.ts +2 -2
- package/lib/api/api/field_caps.js +7 -1
- package/lib/api/api/field_caps.js.map +1 -1
- package/lib/api/api/fleet.d.ts +3 -3
- package/lib/api/api/fleet.js +39 -6
- package/lib/api/api/fleet.js.map +1 -1
- package/lib/api/api/get.d.ts +1 -1
- package/lib/api/api/get.js +8 -1
- package/lib/api/api/get.js.map +1 -1
- package/lib/api/api/get_script.d.ts +2 -2
- package/lib/api/api/get_script.js +7 -1
- package/lib/api/api/get_script.js.map +1 -1
- package/lib/api/api/get_script_context.d.ts +1 -1
- package/lib/api/api/get_script_context.js +4 -1
- package/lib/api/api/get_script_context.js.map +1 -1
- package/lib/api/api/get_script_languages.d.ts +1 -1
- package/lib/api/api/get_script_languages.js +4 -1
- package/lib/api/api/get_script_languages.js.map +1 -1
- package/lib/api/api/get_source.d.ts +1 -1
- package/lib/api/api/get_source.js +8 -1
- package/lib/api/api/get_source.js.map +1 -1
- package/lib/api/api/graph.d.ts +2 -2
- package/lib/api/api/graph.js +7 -1
- package/lib/api/api/graph.js.map +1 -1
- package/lib/api/api/health_report.d.ts +1 -1
- package/lib/api/api/health_report.js +7 -1
- package/lib/api/api/health_report.js.map +1 -1
- package/lib/api/api/ilm.d.ts +16 -16
- package/lib/api/api/ilm.js +65 -11
- package/lib/api/api/ilm.js.map +1 -1
- package/lib/api/api/index.d.ts +2 -2
- package/lib/api/api/index.js +8 -1
- package/lib/api/api/index.js.map +1 -1
- package/lib/api/api/indices.d.ts +111 -111
- package/lib/api/api/indices.js +420 -59
- package/lib/api/api/indices.js.map +1 -1
- package/lib/api/api/inference.d.ts +17 -17
- package/lib/api/api/inference.js +42 -9
- package/lib/api/api/inference.js.map +1 -1
- package/lib/api/api/info.d.ts +1 -1
- package/lib/api/api/info.js +4 -1
- package/lib/api/api/info.js.map +1 -1
- package/lib/api/api/ingest.d.ts +33 -12
- package/lib/api/api/ingest.js +113 -6
- package/lib/api/api/ingest.js.map +1 -1
- package/lib/api/api/knn_search.d.ts +1 -1
- package/lib/api/api/knn_search.js +7 -1
- package/lib/api/api/knn_search.js.map +1 -1
- package/lib/api/api/license.d.ts +10 -10
- package/lib/api/api/license.js +28 -7
- package/lib/api/api/license.js.map +1 -1
- package/lib/api/api/logstash.d.ts +6 -6
- package/lib/api/api/logstash.js +21 -3
- package/lib/api/api/logstash.js.map +1 -1
- package/lib/api/api/mget.d.ts +1 -1
- package/lib/api/api/mget.js +7 -1
- package/lib/api/api/mget.js.map +1 -1
- package/lib/api/api/migration.d.ts +3 -3
- package/lib/api/api/migration.js +15 -3
- package/lib/api/api/migration.js.map +1 -1
- package/lib/api/api/ml.d.ts +131 -131
- package/lib/api/api/ml.js +508 -73
- package/lib/api/api/ml.js.map +1 -1
- package/lib/api/api/monitoring.d.ts +1 -1
- package/lib/api/api/monitoring.js +7 -1
- package/lib/api/api/monitoring.js.map +1 -1
- package/lib/api/api/msearch.d.ts +1 -1
- package/lib/api/api/msearch.js +7 -1
- package/lib/api/api/msearch.js.map +1 -1
- package/lib/api/api/msearch_template.d.ts +2 -2
- package/lib/api/api/msearch_template.js +7 -1
- package/lib/api/api/msearch_template.js.map +1 -1
- package/lib/api/api/mtermvectors.d.ts +1 -1
- package/lib/api/api/mtermvectors.js +7 -1
- package/lib/api/api/mtermvectors.js.map +1 -1
- package/lib/api/api/nodes.d.ts +14 -14
- package/lib/api/api/nodes.js +54 -7
- package/lib/api/api/nodes.js.map +1 -1
- package/lib/api/api/open_point_in_time.d.ts +2 -2
- package/lib/api/api/open_point_in_time.js +7 -1
- package/lib/api/api/open_point_in_time.js.map +1 -1
- package/lib/api/api/ping.d.ts +1 -1
- package/lib/api/api/ping.js +4 -1
- package/lib/api/api/ping.js.map +1 -1
- package/lib/api/api/profiling.d.ts +39 -0
- package/lib/api/api/{query_ruleset.js → profiling.js} +38 -41
- package/lib/api/api/profiling.js.map +1 -0
- package/lib/api/api/put_script.d.ts +2 -2
- package/lib/api/api/put_script.js +8 -1
- package/lib/api/api/put_script.js.map +1 -1
- package/lib/api/api/query_rules.d.ts +60 -0
- package/lib/api/api/query_rules.js +223 -0
- package/lib/api/api/query_rules.js.map +1 -0
- package/lib/api/api/rank_eval.d.ts +2 -2
- package/lib/api/api/rank_eval.js +7 -1
- package/lib/api/api/rank_eval.js.map +1 -1
- package/lib/api/api/reindex.d.ts +1 -1
- package/lib/api/api/reindex.js +4 -1
- package/lib/api/api/reindex.js.map +1 -1
- package/lib/api/api/reindex_rethrottle.d.ts +2 -2
- package/lib/api/api/reindex_rethrottle.js +7 -1
- package/lib/api/api/reindex_rethrottle.js.map +1 -1
- package/lib/api/api/render_search_template.d.ts +2 -2
- package/lib/api/api/render_search_template.js +7 -1
- package/lib/api/api/render_search_template.js.map +1 -1
- package/lib/api/api/rollup.d.ts +10 -10
- package/lib/api/api/rollup.js +56 -8
- package/lib/api/api/rollup.js.map +1 -1
- package/lib/api/api/scripts_painless_execute.d.ts +2 -2
- package/lib/api/api/scripts_painless_execute.js +4 -1
- package/lib/api/api/scripts_painless_execute.js.map +1 -1
- package/lib/api/api/scroll.d.ts +1 -1
- package/lib/api/api/scroll.js +7 -1
- package/lib/api/api/scroll.js.map +1 -1
- package/lib/api/api/search.d.ts +2 -2
- package/lib/api/api/search.js +7 -1
- package/lib/api/api/search.js.map +1 -1
- package/lib/api/api/search_application.d.ts +11 -11
- package/lib/api/api/search_application.js +68 -10
- package/lib/api/api/search_application.js.map +1 -1
- package/lib/api/api/search_mvt.d.ts +1 -1
- package/lib/api/api/search_mvt.js +11 -1
- package/lib/api/api/search_mvt.js.map +1 -1
- package/lib/api/api/search_shards.d.ts +1 -1
- package/lib/api/api/search_shards.js +7 -1
- package/lib/api/api/search_shards.js.map +1 -1
- package/lib/api/api/search_template.d.ts +2 -2
- package/lib/api/api/search_template.js +7 -1
- package/lib/api/api/search_template.js.map +1 -1
- package/lib/api/api/searchable_snapshots.d.ts +4 -4
- package/lib/api/api/searchable_snapshots.js +29 -4
- package/lib/api/api/searchable_snapshots.js.map +1 -1
- package/lib/api/api/security.d.ts +110 -82
- package/lib/api/api/security.js +478 -60
- package/lib/api/api/security.js.map +1 -1
- package/lib/api/api/shutdown.js +21 -3
- package/lib/api/api/shutdown.js.map +1 -1
- package/lib/api/api/simulate.d.ts +18 -0
- package/lib/api/api/simulate.js +64 -0
- package/lib/api/api/simulate.js.map +1 -0
- package/lib/api/api/slm.d.ts +9 -9
- package/lib/api/api/slm.js +48 -9
- package/lib/api/api/slm.js.map +1 -1
- package/lib/api/api/snapshot.d.ts +13 -13
- package/lib/api/api/snapshot.js +91 -12
- package/lib/api/api/snapshot.js.map +1 -1
- package/lib/api/api/sql.d.ts +6 -6
- package/lib/api/api/sql.js +33 -6
- package/lib/api/api/sql.js.map +1 -1
- package/lib/api/api/ssl.d.ts +1 -1
- package/lib/api/api/ssl.js +4 -1
- package/lib/api/api/ssl.js.map +1 -1
- package/lib/api/api/synonyms.d.ts +8 -8
- package/lib/api/api/synonyms.js +49 -7
- package/lib/api/api/synonyms.js.map +1 -1
- package/lib/api/api/tasks.d.ts +4 -4
- package/lib/api/api/tasks.js +18 -3
- package/lib/api/api/tasks.js.map +1 -1
- package/lib/api/api/terms_enum.d.ts +1 -1
- package/lib/api/api/terms_enum.js +7 -1
- package/lib/api/api/terms_enum.js.map +1 -1
- package/lib/api/api/termvectors.d.ts +1 -1
- package/lib/api/api/termvectors.js +8 -1
- package/lib/api/api/termvectors.js.map +1 -1
- package/lib/api/api/text_structure.d.ts +16 -2
- package/lib/api/api/text_structure.js +48 -2
- package/lib/api/api/text_structure.js.map +1 -1
- package/lib/api/api/transform.d.ts +26 -19
- package/lib/api/api/transform.js +94 -11
- package/lib/api/api/transform.js.map +1 -1
- package/lib/api/api/update.d.ts +1 -1
- package/lib/api/api/update.js +8 -1
- package/lib/api/api/update.js.map +1 -1
- package/lib/api/api/update_by_query.d.ts +2 -2
- package/lib/api/api/update_by_query.js +7 -1
- package/lib/api/api/update_by_query.js.map +1 -1
- package/lib/api/api/update_by_query_rethrottle.d.ts +1 -1
- package/lib/api/api/update_by_query_rethrottle.js +7 -1
- package/lib/api/api/update_by_query_rethrottle.js.map +1 -1
- package/lib/api/api/watcher.d.ts +14 -14
- package/lib/api/api/watcher.js +77 -13
- package/lib/api/api/watcher.js.map +1 -1
- package/lib/api/api/xpack.d.ts +4 -4
- package/lib/api/api/xpack.js +8 -2
- package/lib/api/api/xpack.js.map +1 -1
- package/lib/api/index.d.ts +18 -4
- package/lib/api/index.js +45 -7
- package/lib/api/index.js.map +1 -1
- package/lib/api/types.d.ts +428 -220
- package/lib/api/typesWithBodyKey.d.ts +444 -221
- package/package.json +3 -3
- package/lib/api/api/query_ruleset.d.ts +0 -39
- package/lib/api/api/query_ruleset.js.map +0 -1
package/lib/api/api/ml.js
CHANGED
|
@@ -43,7 +43,13 @@ class Ml {
|
|
|
43
43
|
}
|
|
44
44
|
const method = 'POST';
|
|
45
45
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/deployment/cache/_clear`;
|
|
46
|
-
|
|
46
|
+
const meta = {
|
|
47
|
+
name: 'ml.clear_trained_model_deployment_cache',
|
|
48
|
+
pathParts: {
|
|
49
|
+
model_id: params.model_id
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
47
53
|
}
|
|
48
54
|
async closeJob(params, options) {
|
|
49
55
|
const acceptedPath = ['job_id'];
|
|
@@ -74,7 +80,13 @@ class Ml {
|
|
|
74
80
|
}
|
|
75
81
|
const method = 'POST';
|
|
76
82
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_close`;
|
|
77
|
-
|
|
83
|
+
const meta = {
|
|
84
|
+
name: 'ml.close_job',
|
|
85
|
+
pathParts: {
|
|
86
|
+
job_id: params.job_id
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
78
90
|
}
|
|
79
91
|
async deleteCalendar(params, options) {
|
|
80
92
|
const acceptedPath = ['calendar_id'];
|
|
@@ -91,7 +103,13 @@ class Ml {
|
|
|
91
103
|
}
|
|
92
104
|
const method = 'DELETE';
|
|
93
105
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}`;
|
|
94
|
-
|
|
106
|
+
const meta = {
|
|
107
|
+
name: 'ml.delete_calendar',
|
|
108
|
+
pathParts: {
|
|
109
|
+
calendar_id: params.calendar_id
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
95
113
|
}
|
|
96
114
|
async deleteCalendarEvent(params, options) {
|
|
97
115
|
const acceptedPath = ['calendar_id', 'event_id'];
|
|
@@ -108,7 +126,14 @@ class Ml {
|
|
|
108
126
|
}
|
|
109
127
|
const method = 'DELETE';
|
|
110
128
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}/events/${encodeURIComponent(params.event_id.toString())}`;
|
|
111
|
-
|
|
129
|
+
const meta = {
|
|
130
|
+
name: 'ml.delete_calendar_event',
|
|
131
|
+
pathParts: {
|
|
132
|
+
calendar_id: params.calendar_id,
|
|
133
|
+
event_id: params.event_id
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
112
137
|
}
|
|
113
138
|
async deleteCalendarJob(params, options) {
|
|
114
139
|
const acceptedPath = ['calendar_id', 'job_id'];
|
|
@@ -125,7 +150,14 @@ class Ml {
|
|
|
125
150
|
}
|
|
126
151
|
const method = 'DELETE';
|
|
127
152
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}/jobs/${encodeURIComponent(params.job_id.toString())}`;
|
|
128
|
-
|
|
153
|
+
const meta = {
|
|
154
|
+
name: 'ml.delete_calendar_job',
|
|
155
|
+
pathParts: {
|
|
156
|
+
calendar_id: params.calendar_id,
|
|
157
|
+
job_id: params.job_id
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
129
161
|
}
|
|
130
162
|
async deleteDataFrameAnalytics(params, options) {
|
|
131
163
|
const acceptedPath = ['id'];
|
|
@@ -142,7 +174,13 @@ class Ml {
|
|
|
142
174
|
}
|
|
143
175
|
const method = 'DELETE';
|
|
144
176
|
const path = `/_ml/data_frame/analytics/${encodeURIComponent(params.id.toString())}`;
|
|
145
|
-
|
|
177
|
+
const meta = {
|
|
178
|
+
name: 'ml.delete_data_frame_analytics',
|
|
179
|
+
pathParts: {
|
|
180
|
+
id: params.id
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
146
184
|
}
|
|
147
185
|
async deleteDatafeed(params, options) {
|
|
148
186
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -159,7 +197,13 @@ class Ml {
|
|
|
159
197
|
}
|
|
160
198
|
const method = 'DELETE';
|
|
161
199
|
const path = `/_ml/datafeeds/${encodeURIComponent(params.datafeed_id.toString())}`;
|
|
162
|
-
|
|
200
|
+
const meta = {
|
|
201
|
+
name: 'ml.delete_datafeed',
|
|
202
|
+
pathParts: {
|
|
203
|
+
datafeed_id: params.datafeed_id
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
163
207
|
}
|
|
164
208
|
async deleteExpiredData(params, options) {
|
|
165
209
|
const acceptedPath = ['job_id'];
|
|
@@ -199,7 +243,13 @@ class Ml {
|
|
|
199
243
|
method = 'DELETE';
|
|
200
244
|
path = '/_ml/_delete_expired_data';
|
|
201
245
|
}
|
|
202
|
-
|
|
246
|
+
const meta = {
|
|
247
|
+
name: 'ml.delete_expired_data',
|
|
248
|
+
pathParts: {
|
|
249
|
+
job_id: params.job_id
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
203
253
|
}
|
|
204
254
|
async deleteFilter(params, options) {
|
|
205
255
|
const acceptedPath = ['filter_id'];
|
|
@@ -216,7 +266,13 @@ class Ml {
|
|
|
216
266
|
}
|
|
217
267
|
const method = 'DELETE';
|
|
218
268
|
const path = `/_ml/filters/${encodeURIComponent(params.filter_id.toString())}`;
|
|
219
|
-
|
|
269
|
+
const meta = {
|
|
270
|
+
name: 'ml.delete_filter',
|
|
271
|
+
pathParts: {
|
|
272
|
+
filter_id: params.filter_id
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
220
276
|
}
|
|
221
277
|
async deleteForecast(params, options) {
|
|
222
278
|
const acceptedPath = ['job_id', 'forecast_id'];
|
|
@@ -241,7 +297,14 @@ class Ml {
|
|
|
241
297
|
method = 'DELETE';
|
|
242
298
|
path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_forecast`;
|
|
243
299
|
}
|
|
244
|
-
|
|
300
|
+
const meta = {
|
|
301
|
+
name: 'ml.delete_forecast',
|
|
302
|
+
pathParts: {
|
|
303
|
+
job_id: params.job_id,
|
|
304
|
+
forecast_id: params.forecast_id
|
|
305
|
+
}
|
|
306
|
+
};
|
|
307
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
245
308
|
}
|
|
246
309
|
async deleteJob(params, options) {
|
|
247
310
|
const acceptedPath = ['job_id'];
|
|
@@ -258,7 +321,13 @@ class Ml {
|
|
|
258
321
|
}
|
|
259
322
|
const method = 'DELETE';
|
|
260
323
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}`;
|
|
261
|
-
|
|
324
|
+
const meta = {
|
|
325
|
+
name: 'ml.delete_job',
|
|
326
|
+
pathParts: {
|
|
327
|
+
job_id: params.job_id
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
262
331
|
}
|
|
263
332
|
async deleteModelSnapshot(params, options) {
|
|
264
333
|
const acceptedPath = ['job_id', 'snapshot_id'];
|
|
@@ -275,7 +344,14 @@ class Ml {
|
|
|
275
344
|
}
|
|
276
345
|
const method = 'DELETE';
|
|
277
346
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/model_snapshots/${encodeURIComponent(params.snapshot_id.toString())}`;
|
|
278
|
-
|
|
347
|
+
const meta = {
|
|
348
|
+
name: 'ml.delete_model_snapshot',
|
|
349
|
+
pathParts: {
|
|
350
|
+
job_id: params.job_id,
|
|
351
|
+
snapshot_id: params.snapshot_id
|
|
352
|
+
}
|
|
353
|
+
};
|
|
354
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
279
355
|
}
|
|
280
356
|
async deleteTrainedModel(params, options) {
|
|
281
357
|
const acceptedPath = ['model_id'];
|
|
@@ -292,7 +368,13 @@ class Ml {
|
|
|
292
368
|
}
|
|
293
369
|
const method = 'DELETE';
|
|
294
370
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}`;
|
|
295
|
-
|
|
371
|
+
const meta = {
|
|
372
|
+
name: 'ml.delete_trained_model',
|
|
373
|
+
pathParts: {
|
|
374
|
+
model_id: params.model_id
|
|
375
|
+
}
|
|
376
|
+
};
|
|
377
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
296
378
|
}
|
|
297
379
|
async deleteTrainedModelAlias(params, options) {
|
|
298
380
|
const acceptedPath = ['model_alias', 'model_id'];
|
|
@@ -309,7 +391,14 @@ class Ml {
|
|
|
309
391
|
}
|
|
310
392
|
const method = 'DELETE';
|
|
311
393
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/model_aliases/${encodeURIComponent(params.model_alias.toString())}`;
|
|
312
|
-
|
|
394
|
+
const meta = {
|
|
395
|
+
name: 'ml.delete_trained_model_alias',
|
|
396
|
+
pathParts: {
|
|
397
|
+
model_alias: params.model_alias,
|
|
398
|
+
model_id: params.model_id
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
313
402
|
}
|
|
314
403
|
async estimateModelMemory(params, options) {
|
|
315
404
|
const acceptedPath = [];
|
|
@@ -341,7 +430,10 @@ class Ml {
|
|
|
341
430
|
}
|
|
342
431
|
const method = 'POST';
|
|
343
432
|
const path = '/_ml/anomaly_detectors/_estimate_model_memory';
|
|
344
|
-
|
|
433
|
+
const meta = {
|
|
434
|
+
name: 'ml.estimate_model_memory'
|
|
435
|
+
};
|
|
436
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
345
437
|
}
|
|
346
438
|
async evaluateDataFrame(params, options) {
|
|
347
439
|
const acceptedPath = [];
|
|
@@ -372,7 +464,10 @@ class Ml {
|
|
|
372
464
|
}
|
|
373
465
|
const method = 'POST';
|
|
374
466
|
const path = '/_ml/data_frame/_evaluate';
|
|
375
|
-
|
|
467
|
+
const meta = {
|
|
468
|
+
name: 'ml.evaluate_data_frame'
|
|
469
|
+
};
|
|
470
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
376
471
|
}
|
|
377
472
|
async explainDataFrameAnalytics(params, options) {
|
|
378
473
|
const acceptedPath = ['id'];
|
|
@@ -412,7 +507,13 @@ class Ml {
|
|
|
412
507
|
method = body != null ? 'POST' : 'GET';
|
|
413
508
|
path = '/_ml/data_frame/analytics/_explain';
|
|
414
509
|
}
|
|
415
|
-
|
|
510
|
+
const meta = {
|
|
511
|
+
name: 'ml.explain_data_frame_analytics',
|
|
512
|
+
pathParts: {
|
|
513
|
+
id: params.id
|
|
514
|
+
}
|
|
515
|
+
};
|
|
516
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
416
517
|
}
|
|
417
518
|
async flushJob(params, options) {
|
|
418
519
|
const acceptedPath = ['job_id'];
|
|
@@ -443,7 +544,13 @@ class Ml {
|
|
|
443
544
|
}
|
|
444
545
|
const method = 'POST';
|
|
445
546
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_flush`;
|
|
446
|
-
|
|
547
|
+
const meta = {
|
|
548
|
+
name: 'ml.flush_job',
|
|
549
|
+
pathParts: {
|
|
550
|
+
job_id: params.job_id
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
447
554
|
}
|
|
448
555
|
async forecast(params, options) {
|
|
449
556
|
const acceptedPath = ['job_id'];
|
|
@@ -474,7 +581,13 @@ class Ml {
|
|
|
474
581
|
}
|
|
475
582
|
const method = 'POST';
|
|
476
583
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_forecast`;
|
|
477
|
-
|
|
584
|
+
const meta = {
|
|
585
|
+
name: 'ml.forecast',
|
|
586
|
+
pathParts: {
|
|
587
|
+
job_id: params.job_id
|
|
588
|
+
}
|
|
589
|
+
};
|
|
590
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
478
591
|
}
|
|
479
592
|
async getBuckets(params, options) {
|
|
480
593
|
const acceptedPath = ['job_id', 'timestamp'];
|
|
@@ -513,7 +626,14 @@ class Ml {
|
|
|
513
626
|
method = body != null ? 'POST' : 'GET';
|
|
514
627
|
path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/results/buckets`;
|
|
515
628
|
}
|
|
516
|
-
|
|
629
|
+
const meta = {
|
|
630
|
+
name: 'ml.get_buckets',
|
|
631
|
+
pathParts: {
|
|
632
|
+
job_id: params.job_id,
|
|
633
|
+
timestamp: params.timestamp
|
|
634
|
+
}
|
|
635
|
+
};
|
|
636
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
517
637
|
}
|
|
518
638
|
async getCalendarEvents(params, options) {
|
|
519
639
|
const acceptedPath = ['calendar_id'];
|
|
@@ -530,7 +650,13 @@ class Ml {
|
|
|
530
650
|
}
|
|
531
651
|
const method = 'GET';
|
|
532
652
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}/events`;
|
|
533
|
-
|
|
653
|
+
const meta = {
|
|
654
|
+
name: 'ml.get_calendar_events',
|
|
655
|
+
pathParts: {
|
|
656
|
+
calendar_id: params.calendar_id
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
534
660
|
}
|
|
535
661
|
async getCalendars(params, options) {
|
|
536
662
|
const acceptedPath = ['calendar_id'];
|
|
@@ -570,7 +696,13 @@ class Ml {
|
|
|
570
696
|
method = body != null ? 'POST' : 'GET';
|
|
571
697
|
path = '/_ml/calendars';
|
|
572
698
|
}
|
|
573
|
-
|
|
699
|
+
const meta = {
|
|
700
|
+
name: 'ml.get_calendars',
|
|
701
|
+
pathParts: {
|
|
702
|
+
calendar_id: params.calendar_id
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
574
706
|
}
|
|
575
707
|
async getCategories(params, options) {
|
|
576
708
|
const acceptedPath = ['job_id', 'category_id'];
|
|
@@ -609,7 +741,14 @@ class Ml {
|
|
|
609
741
|
method = body != null ? 'POST' : 'GET';
|
|
610
742
|
path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/results/categories`;
|
|
611
743
|
}
|
|
612
|
-
|
|
744
|
+
const meta = {
|
|
745
|
+
name: 'ml.get_categories',
|
|
746
|
+
pathParts: {
|
|
747
|
+
job_id: params.job_id,
|
|
748
|
+
category_id: params.category_id
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
613
752
|
}
|
|
614
753
|
async getDataFrameAnalytics(params, options) {
|
|
615
754
|
const acceptedPath = ['id'];
|
|
@@ -635,7 +774,13 @@ class Ml {
|
|
|
635
774
|
method = 'GET';
|
|
636
775
|
path = '/_ml/data_frame/analytics';
|
|
637
776
|
}
|
|
638
|
-
|
|
777
|
+
const meta = {
|
|
778
|
+
name: 'ml.get_data_frame_analytics',
|
|
779
|
+
pathParts: {
|
|
780
|
+
id: params.id
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
639
784
|
}
|
|
640
785
|
async getDataFrameAnalyticsStats(params, options) {
|
|
641
786
|
const acceptedPath = ['id'];
|
|
@@ -661,7 +806,13 @@ class Ml {
|
|
|
661
806
|
method = 'GET';
|
|
662
807
|
path = '/_ml/data_frame/analytics/_stats';
|
|
663
808
|
}
|
|
664
|
-
|
|
809
|
+
const meta = {
|
|
810
|
+
name: 'ml.get_data_frame_analytics_stats',
|
|
811
|
+
pathParts: {
|
|
812
|
+
id: params.id
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
665
816
|
}
|
|
666
817
|
async getDatafeedStats(params, options) {
|
|
667
818
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -687,7 +838,13 @@ class Ml {
|
|
|
687
838
|
method = 'GET';
|
|
688
839
|
path = '/_ml/datafeeds/_stats';
|
|
689
840
|
}
|
|
690
|
-
|
|
841
|
+
const meta = {
|
|
842
|
+
name: 'ml.get_datafeed_stats',
|
|
843
|
+
pathParts: {
|
|
844
|
+
datafeed_id: params.datafeed_id
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
691
848
|
}
|
|
692
849
|
async getDatafeeds(params, options) {
|
|
693
850
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -713,7 +870,13 @@ class Ml {
|
|
|
713
870
|
method = 'GET';
|
|
714
871
|
path = '/_ml/datafeeds';
|
|
715
872
|
}
|
|
716
|
-
|
|
873
|
+
const meta = {
|
|
874
|
+
name: 'ml.get_datafeeds',
|
|
875
|
+
pathParts: {
|
|
876
|
+
datafeed_id: params.datafeed_id
|
|
877
|
+
}
|
|
878
|
+
};
|
|
879
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
717
880
|
}
|
|
718
881
|
async getFilters(params, options) {
|
|
719
882
|
const acceptedPath = ['filter_id'];
|
|
@@ -739,7 +902,13 @@ class Ml {
|
|
|
739
902
|
method = 'GET';
|
|
740
903
|
path = '/_ml/filters';
|
|
741
904
|
}
|
|
742
|
-
|
|
905
|
+
const meta = {
|
|
906
|
+
name: 'ml.get_filters',
|
|
907
|
+
pathParts: {
|
|
908
|
+
filter_id: params.filter_id
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
743
912
|
}
|
|
744
913
|
async getInfluencers(params, options) {
|
|
745
914
|
const acceptedPath = ['job_id'];
|
|
@@ -770,7 +939,13 @@ class Ml {
|
|
|
770
939
|
}
|
|
771
940
|
const method = body != null ? 'POST' : 'GET';
|
|
772
941
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/results/influencers`;
|
|
773
|
-
|
|
942
|
+
const meta = {
|
|
943
|
+
name: 'ml.get_influencers',
|
|
944
|
+
pathParts: {
|
|
945
|
+
job_id: params.job_id
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
774
949
|
}
|
|
775
950
|
async getJobStats(params, options) {
|
|
776
951
|
const acceptedPath = ['job_id'];
|
|
@@ -796,7 +971,13 @@ class Ml {
|
|
|
796
971
|
method = 'GET';
|
|
797
972
|
path = '/_ml/anomaly_detectors/_stats';
|
|
798
973
|
}
|
|
799
|
-
|
|
974
|
+
const meta = {
|
|
975
|
+
name: 'ml.get_job_stats',
|
|
976
|
+
pathParts: {
|
|
977
|
+
job_id: params.job_id
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
800
981
|
}
|
|
801
982
|
async getJobs(params, options) {
|
|
802
983
|
const acceptedPath = ['job_id'];
|
|
@@ -822,7 +1003,13 @@ class Ml {
|
|
|
822
1003
|
method = 'GET';
|
|
823
1004
|
path = '/_ml/anomaly_detectors';
|
|
824
1005
|
}
|
|
825
|
-
|
|
1006
|
+
const meta = {
|
|
1007
|
+
name: 'ml.get_jobs',
|
|
1008
|
+
pathParts: {
|
|
1009
|
+
job_id: params.job_id
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
826
1013
|
}
|
|
827
1014
|
async getMemoryStats(params, options) {
|
|
828
1015
|
const acceptedPath = ['node_id'];
|
|
@@ -848,7 +1035,13 @@ class Ml {
|
|
|
848
1035
|
method = 'GET';
|
|
849
1036
|
path = '/_ml/memory/_stats';
|
|
850
1037
|
}
|
|
851
|
-
|
|
1038
|
+
const meta = {
|
|
1039
|
+
name: 'ml.get_memory_stats',
|
|
1040
|
+
pathParts: {
|
|
1041
|
+
node_id: params.node_id
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
852
1045
|
}
|
|
853
1046
|
async getModelSnapshotUpgradeStats(params, options) {
|
|
854
1047
|
const acceptedPath = ['job_id', 'snapshot_id'];
|
|
@@ -865,7 +1058,14 @@ class Ml {
|
|
|
865
1058
|
}
|
|
866
1059
|
const method = 'GET';
|
|
867
1060
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/model_snapshots/${encodeURIComponent(params.snapshot_id.toString())}/_upgrade/_stats`;
|
|
868
|
-
|
|
1061
|
+
const meta = {
|
|
1062
|
+
name: 'ml.get_model_snapshot_upgrade_stats',
|
|
1063
|
+
pathParts: {
|
|
1064
|
+
job_id: params.job_id,
|
|
1065
|
+
snapshot_id: params.snapshot_id
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
869
1069
|
}
|
|
870
1070
|
async getModelSnapshots(params, options) {
|
|
871
1071
|
const acceptedPath = ['job_id', 'snapshot_id'];
|
|
@@ -904,7 +1104,14 @@ class Ml {
|
|
|
904
1104
|
method = body != null ? 'POST' : 'GET';
|
|
905
1105
|
path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/model_snapshots`;
|
|
906
1106
|
}
|
|
907
|
-
|
|
1107
|
+
const meta = {
|
|
1108
|
+
name: 'ml.get_model_snapshots',
|
|
1109
|
+
pathParts: {
|
|
1110
|
+
job_id: params.job_id,
|
|
1111
|
+
snapshot_id: params.snapshot_id
|
|
1112
|
+
}
|
|
1113
|
+
};
|
|
1114
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
908
1115
|
}
|
|
909
1116
|
async getOverallBuckets(params, options) {
|
|
910
1117
|
const acceptedPath = ['job_id'];
|
|
@@ -935,7 +1142,13 @@ class Ml {
|
|
|
935
1142
|
}
|
|
936
1143
|
const method = body != null ? 'POST' : 'GET';
|
|
937
1144
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/results/overall_buckets`;
|
|
938
|
-
|
|
1145
|
+
const meta = {
|
|
1146
|
+
name: 'ml.get_overall_buckets',
|
|
1147
|
+
pathParts: {
|
|
1148
|
+
job_id: params.job_id
|
|
1149
|
+
}
|
|
1150
|
+
};
|
|
1151
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
939
1152
|
}
|
|
940
1153
|
async getRecords(params, options) {
|
|
941
1154
|
const acceptedPath = ['job_id'];
|
|
@@ -966,7 +1179,13 @@ class Ml {
|
|
|
966
1179
|
}
|
|
967
1180
|
const method = body != null ? 'POST' : 'GET';
|
|
968
1181
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/results/records`;
|
|
969
|
-
|
|
1182
|
+
const meta = {
|
|
1183
|
+
name: 'ml.get_records',
|
|
1184
|
+
pathParts: {
|
|
1185
|
+
job_id: params.job_id
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1188
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
970
1189
|
}
|
|
971
1190
|
async getTrainedModels(params, options) {
|
|
972
1191
|
const acceptedPath = ['model_id'];
|
|
@@ -992,7 +1211,13 @@ class Ml {
|
|
|
992
1211
|
method = 'GET';
|
|
993
1212
|
path = '/_ml/trained_models';
|
|
994
1213
|
}
|
|
995
|
-
|
|
1214
|
+
const meta = {
|
|
1215
|
+
name: 'ml.get_trained_models',
|
|
1216
|
+
pathParts: {
|
|
1217
|
+
model_id: params.model_id
|
|
1218
|
+
}
|
|
1219
|
+
};
|
|
1220
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
996
1221
|
}
|
|
997
1222
|
async getTrainedModelsStats(params, options) {
|
|
998
1223
|
const acceptedPath = ['model_id'];
|
|
@@ -1018,7 +1243,13 @@ class Ml {
|
|
|
1018
1243
|
method = 'GET';
|
|
1019
1244
|
path = '/_ml/trained_models/_stats';
|
|
1020
1245
|
}
|
|
1021
|
-
|
|
1246
|
+
const meta = {
|
|
1247
|
+
name: 'ml.get_trained_models_stats',
|
|
1248
|
+
pathParts: {
|
|
1249
|
+
model_id: params.model_id
|
|
1250
|
+
}
|
|
1251
|
+
};
|
|
1252
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1022
1253
|
}
|
|
1023
1254
|
async inferTrainedModel(params, options) {
|
|
1024
1255
|
const acceptedPath = ['model_id'];
|
|
@@ -1049,7 +1280,13 @@ class Ml {
|
|
|
1049
1280
|
}
|
|
1050
1281
|
const method = 'POST';
|
|
1051
1282
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/_infer`;
|
|
1052
|
-
|
|
1283
|
+
const meta = {
|
|
1284
|
+
name: 'ml.infer_trained_model',
|
|
1285
|
+
pathParts: {
|
|
1286
|
+
model_id: params.model_id
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1053
1290
|
}
|
|
1054
1291
|
async info(params, options) {
|
|
1055
1292
|
const acceptedPath = [];
|
|
@@ -1067,7 +1304,10 @@ class Ml {
|
|
|
1067
1304
|
}
|
|
1068
1305
|
const method = 'GET';
|
|
1069
1306
|
const path = '/_ml/info';
|
|
1070
|
-
|
|
1307
|
+
const meta = {
|
|
1308
|
+
name: 'ml.info'
|
|
1309
|
+
};
|
|
1310
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1071
1311
|
}
|
|
1072
1312
|
async openJob(params, options) {
|
|
1073
1313
|
const acceptedPath = ['job_id'];
|
|
@@ -1098,7 +1338,13 @@ class Ml {
|
|
|
1098
1338
|
}
|
|
1099
1339
|
const method = 'POST';
|
|
1100
1340
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_open`;
|
|
1101
|
-
|
|
1341
|
+
const meta = {
|
|
1342
|
+
name: 'ml.open_job',
|
|
1343
|
+
pathParts: {
|
|
1344
|
+
job_id: params.job_id
|
|
1345
|
+
}
|
|
1346
|
+
};
|
|
1347
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1102
1348
|
}
|
|
1103
1349
|
async postCalendarEvents(params, options) {
|
|
1104
1350
|
const acceptedPath = ['calendar_id'];
|
|
@@ -1129,7 +1375,13 @@ class Ml {
|
|
|
1129
1375
|
}
|
|
1130
1376
|
const method = 'POST';
|
|
1131
1377
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}/events`;
|
|
1132
|
-
|
|
1378
|
+
const meta = {
|
|
1379
|
+
name: 'ml.post_calendar_events',
|
|
1380
|
+
pathParts: {
|
|
1381
|
+
calendar_id: params.calendar_id
|
|
1382
|
+
}
|
|
1383
|
+
};
|
|
1384
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1133
1385
|
}
|
|
1134
1386
|
async postData(params, options) {
|
|
1135
1387
|
var _a;
|
|
@@ -1153,7 +1405,13 @@ class Ml {
|
|
|
1153
1405
|
}
|
|
1154
1406
|
const method = 'POST';
|
|
1155
1407
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_data`;
|
|
1156
|
-
|
|
1408
|
+
const meta = {
|
|
1409
|
+
name: 'ml.post_data',
|
|
1410
|
+
pathParts: {
|
|
1411
|
+
job_id: params.job_id
|
|
1412
|
+
}
|
|
1413
|
+
};
|
|
1414
|
+
return await this.transport.request({ path, method, querystring, bulkBody: body, meta }, options);
|
|
1157
1415
|
}
|
|
1158
1416
|
async previewDataFrameAnalytics(params, options) {
|
|
1159
1417
|
const acceptedPath = ['id'];
|
|
@@ -1193,7 +1451,13 @@ class Ml {
|
|
|
1193
1451
|
method = body != null ? 'POST' : 'GET';
|
|
1194
1452
|
path = '/_ml/data_frame/analytics/_preview';
|
|
1195
1453
|
}
|
|
1196
|
-
|
|
1454
|
+
const meta = {
|
|
1455
|
+
name: 'ml.preview_data_frame_analytics',
|
|
1456
|
+
pathParts: {
|
|
1457
|
+
id: params.id
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1197
1461
|
}
|
|
1198
1462
|
async previewDatafeed(params, options) {
|
|
1199
1463
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -1233,7 +1497,13 @@ class Ml {
|
|
|
1233
1497
|
method = body != null ? 'POST' : 'GET';
|
|
1234
1498
|
path = '/_ml/datafeeds/_preview';
|
|
1235
1499
|
}
|
|
1236
|
-
|
|
1500
|
+
const meta = {
|
|
1501
|
+
name: 'ml.preview_datafeed',
|
|
1502
|
+
pathParts: {
|
|
1503
|
+
datafeed_id: params.datafeed_id
|
|
1504
|
+
}
|
|
1505
|
+
};
|
|
1506
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1237
1507
|
}
|
|
1238
1508
|
async putCalendar(params, options) {
|
|
1239
1509
|
const acceptedPath = ['calendar_id'];
|
|
@@ -1264,7 +1534,13 @@ class Ml {
|
|
|
1264
1534
|
}
|
|
1265
1535
|
const method = 'PUT';
|
|
1266
1536
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}`;
|
|
1267
|
-
|
|
1537
|
+
const meta = {
|
|
1538
|
+
name: 'ml.put_calendar',
|
|
1539
|
+
pathParts: {
|
|
1540
|
+
calendar_id: params.calendar_id
|
|
1541
|
+
}
|
|
1542
|
+
};
|
|
1543
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1268
1544
|
}
|
|
1269
1545
|
async putCalendarJob(params, options) {
|
|
1270
1546
|
const acceptedPath = ['calendar_id', 'job_id'];
|
|
@@ -1281,7 +1557,14 @@ class Ml {
|
|
|
1281
1557
|
}
|
|
1282
1558
|
const method = 'PUT';
|
|
1283
1559
|
const path = `/_ml/calendars/${encodeURIComponent(params.calendar_id.toString())}/jobs/${encodeURIComponent(params.job_id.toString())}`;
|
|
1284
|
-
|
|
1560
|
+
const meta = {
|
|
1561
|
+
name: 'ml.put_calendar_job',
|
|
1562
|
+
pathParts: {
|
|
1563
|
+
calendar_id: params.calendar_id,
|
|
1564
|
+
job_id: params.job_id
|
|
1565
|
+
}
|
|
1566
|
+
};
|
|
1567
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1285
1568
|
}
|
|
1286
1569
|
async putDataFrameAnalytics(params, options) {
|
|
1287
1570
|
const acceptedPath = ['id'];
|
|
@@ -1312,7 +1595,13 @@ class Ml {
|
|
|
1312
1595
|
}
|
|
1313
1596
|
const method = 'PUT';
|
|
1314
1597
|
const path = `/_ml/data_frame/analytics/${encodeURIComponent(params.id.toString())}`;
|
|
1315
|
-
|
|
1598
|
+
const meta = {
|
|
1599
|
+
name: 'ml.put_data_frame_analytics',
|
|
1600
|
+
pathParts: {
|
|
1601
|
+
id: params.id
|
|
1602
|
+
}
|
|
1603
|
+
};
|
|
1604
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1316
1605
|
}
|
|
1317
1606
|
async putDatafeed(params, options) {
|
|
1318
1607
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -1343,7 +1632,13 @@ class Ml {
|
|
|
1343
1632
|
}
|
|
1344
1633
|
const method = 'PUT';
|
|
1345
1634
|
const path = `/_ml/datafeeds/${encodeURIComponent(params.datafeed_id.toString())}`;
|
|
1346
|
-
|
|
1635
|
+
const meta = {
|
|
1636
|
+
name: 'ml.put_datafeed',
|
|
1637
|
+
pathParts: {
|
|
1638
|
+
datafeed_id: params.datafeed_id
|
|
1639
|
+
}
|
|
1640
|
+
};
|
|
1641
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1347
1642
|
}
|
|
1348
1643
|
async putFilter(params, options) {
|
|
1349
1644
|
const acceptedPath = ['filter_id'];
|
|
@@ -1374,7 +1669,13 @@ class Ml {
|
|
|
1374
1669
|
}
|
|
1375
1670
|
const method = 'PUT';
|
|
1376
1671
|
const path = `/_ml/filters/${encodeURIComponent(params.filter_id.toString())}`;
|
|
1377
|
-
|
|
1672
|
+
const meta = {
|
|
1673
|
+
name: 'ml.put_filter',
|
|
1674
|
+
pathParts: {
|
|
1675
|
+
filter_id: params.filter_id
|
|
1676
|
+
}
|
|
1677
|
+
};
|
|
1678
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1378
1679
|
}
|
|
1379
1680
|
async putJob(params, options) {
|
|
1380
1681
|
const acceptedPath = ['job_id'];
|
|
@@ -1405,7 +1706,13 @@ class Ml {
|
|
|
1405
1706
|
}
|
|
1406
1707
|
const method = 'PUT';
|
|
1407
1708
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}`;
|
|
1408
|
-
|
|
1709
|
+
const meta = {
|
|
1710
|
+
name: 'ml.put_job',
|
|
1711
|
+
pathParts: {
|
|
1712
|
+
job_id: params.job_id
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1409
1716
|
}
|
|
1410
1717
|
async putTrainedModel(params, options) {
|
|
1411
1718
|
const acceptedPath = ['model_id'];
|
|
@@ -1436,7 +1743,13 @@ class Ml {
|
|
|
1436
1743
|
}
|
|
1437
1744
|
const method = 'PUT';
|
|
1438
1745
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}`;
|
|
1439
|
-
|
|
1746
|
+
const meta = {
|
|
1747
|
+
name: 'ml.put_trained_model',
|
|
1748
|
+
pathParts: {
|
|
1749
|
+
model_id: params.model_id
|
|
1750
|
+
}
|
|
1751
|
+
};
|
|
1752
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1440
1753
|
}
|
|
1441
1754
|
async putTrainedModelAlias(params, options) {
|
|
1442
1755
|
const acceptedPath = ['model_alias', 'model_id'];
|
|
@@ -1453,7 +1766,14 @@ class Ml {
|
|
|
1453
1766
|
}
|
|
1454
1767
|
const method = 'PUT';
|
|
1455
1768
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/model_aliases/${encodeURIComponent(params.model_alias.toString())}`;
|
|
1456
|
-
|
|
1769
|
+
const meta = {
|
|
1770
|
+
name: 'ml.put_trained_model_alias',
|
|
1771
|
+
pathParts: {
|
|
1772
|
+
model_alias: params.model_alias,
|
|
1773
|
+
model_id: params.model_id
|
|
1774
|
+
}
|
|
1775
|
+
};
|
|
1776
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1457
1777
|
}
|
|
1458
1778
|
async putTrainedModelDefinitionPart(params, options) {
|
|
1459
1779
|
const acceptedPath = ['model_id', 'part'];
|
|
@@ -1484,7 +1804,14 @@ class Ml {
|
|
|
1484
1804
|
}
|
|
1485
1805
|
const method = 'PUT';
|
|
1486
1806
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/definition/${encodeURIComponent(params.part.toString())}`;
|
|
1487
|
-
|
|
1807
|
+
const meta = {
|
|
1808
|
+
name: 'ml.put_trained_model_definition_part',
|
|
1809
|
+
pathParts: {
|
|
1810
|
+
model_id: params.model_id,
|
|
1811
|
+
part: params.part
|
|
1812
|
+
}
|
|
1813
|
+
};
|
|
1814
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1488
1815
|
}
|
|
1489
1816
|
async putTrainedModelVocabulary(params, options) {
|
|
1490
1817
|
const acceptedPath = ['model_id'];
|
|
@@ -1515,7 +1842,13 @@ class Ml {
|
|
|
1515
1842
|
}
|
|
1516
1843
|
const method = 'PUT';
|
|
1517
1844
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/vocabulary`;
|
|
1518
|
-
|
|
1845
|
+
const meta = {
|
|
1846
|
+
name: 'ml.put_trained_model_vocabulary',
|
|
1847
|
+
pathParts: {
|
|
1848
|
+
model_id: params.model_id
|
|
1849
|
+
}
|
|
1850
|
+
};
|
|
1851
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1519
1852
|
}
|
|
1520
1853
|
async resetJob(params, options) {
|
|
1521
1854
|
const acceptedPath = ['job_id'];
|
|
@@ -1532,7 +1865,13 @@ class Ml {
|
|
|
1532
1865
|
}
|
|
1533
1866
|
const method = 'POST';
|
|
1534
1867
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_reset`;
|
|
1535
|
-
|
|
1868
|
+
const meta = {
|
|
1869
|
+
name: 'ml.reset_job',
|
|
1870
|
+
pathParts: {
|
|
1871
|
+
job_id: params.job_id
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1536
1875
|
}
|
|
1537
1876
|
async revertModelSnapshot(params, options) {
|
|
1538
1877
|
const acceptedPath = ['job_id', 'snapshot_id'];
|
|
@@ -1563,7 +1902,14 @@ class Ml {
|
|
|
1563
1902
|
}
|
|
1564
1903
|
const method = 'POST';
|
|
1565
1904
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/model_snapshots/${encodeURIComponent(params.snapshot_id.toString())}/_revert`;
|
|
1566
|
-
|
|
1905
|
+
const meta = {
|
|
1906
|
+
name: 'ml.revert_model_snapshot',
|
|
1907
|
+
pathParts: {
|
|
1908
|
+
job_id: params.job_id,
|
|
1909
|
+
snapshot_id: params.snapshot_id
|
|
1910
|
+
}
|
|
1911
|
+
};
|
|
1912
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1567
1913
|
}
|
|
1568
1914
|
async setUpgradeMode(params, options) {
|
|
1569
1915
|
const acceptedPath = [];
|
|
@@ -1581,7 +1927,10 @@ class Ml {
|
|
|
1581
1927
|
}
|
|
1582
1928
|
const method = 'POST';
|
|
1583
1929
|
const path = '/_ml/set_upgrade_mode';
|
|
1584
|
-
|
|
1930
|
+
const meta = {
|
|
1931
|
+
name: 'ml.set_upgrade_mode'
|
|
1932
|
+
};
|
|
1933
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1585
1934
|
}
|
|
1586
1935
|
async startDataFrameAnalytics(params, options) {
|
|
1587
1936
|
const acceptedPath = ['id'];
|
|
@@ -1598,7 +1947,13 @@ class Ml {
|
|
|
1598
1947
|
}
|
|
1599
1948
|
const method = 'POST';
|
|
1600
1949
|
const path = `/_ml/data_frame/analytics/${encodeURIComponent(params.id.toString())}/_start`;
|
|
1601
|
-
|
|
1950
|
+
const meta = {
|
|
1951
|
+
name: 'ml.start_data_frame_analytics',
|
|
1952
|
+
pathParts: {
|
|
1953
|
+
id: params.id
|
|
1954
|
+
}
|
|
1955
|
+
};
|
|
1956
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1602
1957
|
}
|
|
1603
1958
|
async startDatafeed(params, options) {
|
|
1604
1959
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -1629,7 +1984,13 @@ class Ml {
|
|
|
1629
1984
|
}
|
|
1630
1985
|
const method = 'POST';
|
|
1631
1986
|
const path = `/_ml/datafeeds/${encodeURIComponent(params.datafeed_id.toString())}/_start`;
|
|
1632
|
-
|
|
1987
|
+
const meta = {
|
|
1988
|
+
name: 'ml.start_datafeed',
|
|
1989
|
+
pathParts: {
|
|
1990
|
+
datafeed_id: params.datafeed_id
|
|
1991
|
+
}
|
|
1992
|
+
};
|
|
1993
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1633
1994
|
}
|
|
1634
1995
|
async startTrainedModelDeployment(params, options) {
|
|
1635
1996
|
const acceptedPath = ['model_id'];
|
|
@@ -1646,7 +2007,13 @@ class Ml {
|
|
|
1646
2007
|
}
|
|
1647
2008
|
const method = 'POST';
|
|
1648
2009
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/deployment/_start`;
|
|
1649
|
-
|
|
2010
|
+
const meta = {
|
|
2011
|
+
name: 'ml.start_trained_model_deployment',
|
|
2012
|
+
pathParts: {
|
|
2013
|
+
model_id: params.model_id
|
|
2014
|
+
}
|
|
2015
|
+
};
|
|
2016
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1650
2017
|
}
|
|
1651
2018
|
async stopDataFrameAnalytics(params, options) {
|
|
1652
2019
|
const acceptedPath = ['id'];
|
|
@@ -1663,7 +2030,13 @@ class Ml {
|
|
|
1663
2030
|
}
|
|
1664
2031
|
const method = 'POST';
|
|
1665
2032
|
const path = `/_ml/data_frame/analytics/${encodeURIComponent(params.id.toString())}/_stop`;
|
|
1666
|
-
|
|
2033
|
+
const meta = {
|
|
2034
|
+
name: 'ml.stop_data_frame_analytics',
|
|
2035
|
+
pathParts: {
|
|
2036
|
+
id: params.id
|
|
2037
|
+
}
|
|
2038
|
+
};
|
|
2039
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1667
2040
|
}
|
|
1668
2041
|
async stopDatafeed(params, options) {
|
|
1669
2042
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -1694,7 +2067,13 @@ class Ml {
|
|
|
1694
2067
|
}
|
|
1695
2068
|
const method = 'POST';
|
|
1696
2069
|
const path = `/_ml/datafeeds/${encodeURIComponent(params.datafeed_id.toString())}/_stop`;
|
|
1697
|
-
|
|
2070
|
+
const meta = {
|
|
2071
|
+
name: 'ml.stop_datafeed',
|
|
2072
|
+
pathParts: {
|
|
2073
|
+
datafeed_id: params.datafeed_id
|
|
2074
|
+
}
|
|
2075
|
+
};
|
|
2076
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1698
2077
|
}
|
|
1699
2078
|
async stopTrainedModelDeployment(params, options) {
|
|
1700
2079
|
const acceptedPath = ['model_id'];
|
|
@@ -1711,7 +2090,13 @@ class Ml {
|
|
|
1711
2090
|
}
|
|
1712
2091
|
const method = 'POST';
|
|
1713
2092
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/deployment/_stop`;
|
|
1714
|
-
|
|
2093
|
+
const meta = {
|
|
2094
|
+
name: 'ml.stop_trained_model_deployment',
|
|
2095
|
+
pathParts: {
|
|
2096
|
+
model_id: params.model_id
|
|
2097
|
+
}
|
|
2098
|
+
};
|
|
2099
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1715
2100
|
}
|
|
1716
2101
|
async updateDataFrameAnalytics(params, options) {
|
|
1717
2102
|
const acceptedPath = ['id'];
|
|
@@ -1742,7 +2127,13 @@ class Ml {
|
|
|
1742
2127
|
}
|
|
1743
2128
|
const method = 'POST';
|
|
1744
2129
|
const path = `/_ml/data_frame/analytics/${encodeURIComponent(params.id.toString())}/_update`;
|
|
1745
|
-
|
|
2130
|
+
const meta = {
|
|
2131
|
+
name: 'ml.update_data_frame_analytics',
|
|
2132
|
+
pathParts: {
|
|
2133
|
+
id: params.id
|
|
2134
|
+
}
|
|
2135
|
+
};
|
|
2136
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1746
2137
|
}
|
|
1747
2138
|
async updateDatafeed(params, options) {
|
|
1748
2139
|
const acceptedPath = ['datafeed_id'];
|
|
@@ -1773,7 +2164,13 @@ class Ml {
|
|
|
1773
2164
|
}
|
|
1774
2165
|
const method = 'POST';
|
|
1775
2166
|
const path = `/_ml/datafeeds/${encodeURIComponent(params.datafeed_id.toString())}/_update`;
|
|
1776
|
-
|
|
2167
|
+
const meta = {
|
|
2168
|
+
name: 'ml.update_datafeed',
|
|
2169
|
+
pathParts: {
|
|
2170
|
+
datafeed_id: params.datafeed_id
|
|
2171
|
+
}
|
|
2172
|
+
};
|
|
2173
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1777
2174
|
}
|
|
1778
2175
|
async updateFilter(params, options) {
|
|
1779
2176
|
const acceptedPath = ['filter_id'];
|
|
@@ -1804,7 +2201,13 @@ class Ml {
|
|
|
1804
2201
|
}
|
|
1805
2202
|
const method = 'POST';
|
|
1806
2203
|
const path = `/_ml/filters/${encodeURIComponent(params.filter_id.toString())}/_update`;
|
|
1807
|
-
|
|
2204
|
+
const meta = {
|
|
2205
|
+
name: 'ml.update_filter',
|
|
2206
|
+
pathParts: {
|
|
2207
|
+
filter_id: params.filter_id
|
|
2208
|
+
}
|
|
2209
|
+
};
|
|
2210
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1808
2211
|
}
|
|
1809
2212
|
async updateJob(params, options) {
|
|
1810
2213
|
const acceptedPath = ['job_id'];
|
|
@@ -1835,7 +2238,13 @@ class Ml {
|
|
|
1835
2238
|
}
|
|
1836
2239
|
const method = 'POST';
|
|
1837
2240
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/_update`;
|
|
1838
|
-
|
|
2241
|
+
const meta = {
|
|
2242
|
+
name: 'ml.update_job',
|
|
2243
|
+
pathParts: {
|
|
2244
|
+
job_id: params.job_id
|
|
2245
|
+
}
|
|
2246
|
+
};
|
|
2247
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1839
2248
|
}
|
|
1840
2249
|
async updateModelSnapshot(params, options) {
|
|
1841
2250
|
const acceptedPath = ['job_id', 'snapshot_id'];
|
|
@@ -1866,7 +2275,14 @@ class Ml {
|
|
|
1866
2275
|
}
|
|
1867
2276
|
const method = 'POST';
|
|
1868
2277
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/model_snapshots/${encodeURIComponent(params.snapshot_id.toString())}/_update`;
|
|
1869
|
-
|
|
2278
|
+
const meta = {
|
|
2279
|
+
name: 'ml.update_model_snapshot',
|
|
2280
|
+
pathParts: {
|
|
2281
|
+
job_id: params.job_id,
|
|
2282
|
+
snapshot_id: params.snapshot_id
|
|
2283
|
+
}
|
|
2284
|
+
};
|
|
2285
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1870
2286
|
}
|
|
1871
2287
|
async updateTrainedModelDeployment(params, options) {
|
|
1872
2288
|
const acceptedPath = ['model_id'];
|
|
@@ -1897,7 +2313,13 @@ class Ml {
|
|
|
1897
2313
|
}
|
|
1898
2314
|
const method = 'POST';
|
|
1899
2315
|
const path = `/_ml/trained_models/${encodeURIComponent(params.model_id.toString())}/deployment/_update`;
|
|
1900
|
-
|
|
2316
|
+
const meta = {
|
|
2317
|
+
name: 'ml.update_trained_model_deployment',
|
|
2318
|
+
pathParts: {
|
|
2319
|
+
model_id: params.model_id
|
|
2320
|
+
}
|
|
2321
|
+
};
|
|
2322
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1901
2323
|
}
|
|
1902
2324
|
async upgradeJobSnapshot(params, options) {
|
|
1903
2325
|
const acceptedPath = ['job_id', 'snapshot_id'];
|
|
@@ -1914,7 +2336,14 @@ class Ml {
|
|
|
1914
2336
|
}
|
|
1915
2337
|
const method = 'POST';
|
|
1916
2338
|
const path = `/_ml/anomaly_detectors/${encodeURIComponent(params.job_id.toString())}/model_snapshots/${encodeURIComponent(params.snapshot_id.toString())}/_upgrade`;
|
|
1917
|
-
|
|
2339
|
+
const meta = {
|
|
2340
|
+
name: 'ml.upgrade_job_snapshot',
|
|
2341
|
+
pathParts: {
|
|
2342
|
+
job_id: params.job_id,
|
|
2343
|
+
snapshot_id: params.snapshot_id
|
|
2344
|
+
}
|
|
2345
|
+
};
|
|
2346
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1918
2347
|
}
|
|
1919
2348
|
async validate(params, options) {
|
|
1920
2349
|
const acceptedPath = [];
|
|
@@ -1946,7 +2375,10 @@ class Ml {
|
|
|
1946
2375
|
}
|
|
1947
2376
|
const method = 'POST';
|
|
1948
2377
|
const path = '/_ml/anomaly_detectors/_validate';
|
|
1949
|
-
|
|
2378
|
+
const meta = {
|
|
2379
|
+
name: 'ml.validate'
|
|
2380
|
+
};
|
|
2381
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1950
2382
|
}
|
|
1951
2383
|
async validateDetector(params, options) {
|
|
1952
2384
|
var _a;
|
|
@@ -1970,7 +2402,10 @@ class Ml {
|
|
|
1970
2402
|
}
|
|
1971
2403
|
const method = 'POST';
|
|
1972
2404
|
const path = '/_ml/anomaly_detectors/_validate/detector';
|
|
1973
|
-
|
|
2405
|
+
const meta = {
|
|
2406
|
+
name: 'ml.validate_detector'
|
|
2407
|
+
};
|
|
2408
|
+
return await this.transport.request({ path, method, querystring, body, meta }, options);
|
|
1974
2409
|
}
|
|
1975
2410
|
}
|
|
1976
2411
|
exports.default = Ml;
|