elasticsearch-xpack 6.8.3 → 7.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +17 -0
- data/LICENSE.txt +202 -21
- data/Rakefile +20 -1
- data/elasticsearch-xpack.gemspec +46 -31
- data/examples/watcher/error_500.rb +18 -7
- data/lib/elasticsearch/xpack.rb +40 -3
- data/lib/elasticsearch/xpack/api/actions/graph/explore.rb +17 -4
- data/lib/elasticsearch/xpack/api/actions/info.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/delete.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/get.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/get_basic_status.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/get_trial_status.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/post.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/post_start_basic.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/license/post_start_trial.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/close_job.rb +17 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_event.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_calendar_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_datafeed.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_expired_data.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_filter.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_forecast.rb +1 -5
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/delete_model_snapshot.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/find_file_structure.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/flush_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/forecast.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_buckets.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendar_events.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_calendars.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_categories.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeed_stats.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_datafeeds.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_filters.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_influencers.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_job_stats.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_jobs.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_model_snapshots.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_overall_buckets.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/get_records.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/info.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/open_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_calendar_events.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/post_data.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/preview_datafeed.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_calendar_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_datafeed.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_filter.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/put_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/revert_model_snapshot.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/set_upgrade_mode.rb +5 -9
- data/lib/elasticsearch/xpack/api/actions/machine_learning/start_datafeed.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/stop_datafeed.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_datafeed.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_filter.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/machine_learning/update_model_snapshot.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/machine_learning/validate_detector.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/migration/deprecations.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/migration/get_assistance.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/migration/upgrade.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/monitoring/bulk.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/delete_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/get_jobs.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_caps.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/get_rollup_index_caps.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/rollup/put_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/rollup_search.rb +17 -4
- data/lib/elasticsearch/xpack/api/actions/rollup/start_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/rollup/stop_job.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/authenticate.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/change_password.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_realms.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/clear_cached_roles.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/create_api_key.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/delete_privileges.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/delete_role.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_role_mapping.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/delete_user.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/disable_user.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/enable_user.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_api_key.rb +6 -10
- data/lib/elasticsearch/xpack/api/actions/security/get_privileges.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/get_role.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_role_mapping.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_token.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_user.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/get_user_privileges.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/has_privileges.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_api_key.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/invalidate_token.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_privileges.rb +0 -4
- data/lib/elasticsearch/xpack/api/actions/security/put_role.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_role_mapping.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/security/put_user.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/sql/clear_cursor.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/sql/query.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/sql/translate.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/ssl/certificates.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/usage.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/activate_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/deactivate_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/delete_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/execute_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/get_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/put_watch.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/restart.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/start.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/stats.rb +16 -3
- data/lib/elasticsearch/xpack/api/actions/watcher/stop.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/graph.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/license.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/machine_learning.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/migration.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/monitoring.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/rollup.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/security.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/sql.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/ssl.rb +16 -3
- data/lib/elasticsearch/xpack/api/namespace/watcher.rb +16 -3
- data/lib/elasticsearch/xpack/version.rb +17 -4
- metadata +45 -54
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -30,7 +43,7 @@ module Elasticsearch
|
|
30
43
|
type = arguments.delete(:type)
|
31
44
|
|
32
45
|
method = Elasticsearch::API::HTTP_GET
|
33
|
-
path = Elasticsearch::API::Utils.__pathify Elasticsearch::API::Utils.__listify(index), Elasticsearch::API::Utils.__listify(type), '
|
46
|
+
path = Elasticsearch::API::Utils.__pathify Elasticsearch::API::Utils.__listify(index), Elasticsearch::API::Utils.__listify(type), '_graph/explore'
|
34
47
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
|
35
48
|
body = arguments[:body]
|
36
49
|
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -26,7 +39,7 @@ module Elasticsearch
|
|
26
39
|
method = Elasticsearch::API::HTTP_POST
|
27
40
|
path = "_xpack/ml/anomaly_detectors/#{arguments[:job_id]}/_close"
|
28
41
|
params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params
|
29
|
-
body =
|
42
|
+
body = nil
|
30
43
|
|
31
44
|
perform_request(method, path, params, body).body
|
32
45
|
end
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,7 +1,3 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more agreements.
|
2
|
-
# Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
|
3
|
-
# See the LICENSE file in the project root for more information
|
4
|
-
|
5
1
|
module Elasticsearch
|
6
2
|
module XPack
|
7
3
|
module API
|
@@ -18,7 +14,7 @@ module Elasticsearch
|
|
18
14
|
def delete_forecast(arguments={})
|
19
15
|
raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id]
|
20
16
|
method = Elasticsearch::API::HTTP_DELETE
|
21
|
-
path = "
|
17
|
+
path = "_ml/anomaly_detectors/#{arguments[:job_id]}/_forecast/#{arguments[:forecast_id]}"
|
22
18
|
|
23
19
|
valid_params = [
|
24
20
|
:forecast_id,
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|
@@ -1,6 +1,19 @@
|
|
1
|
-
# Licensed to Elasticsearch B.V under one or more
|
2
|
-
#
|
3
|
-
#
|
1
|
+
# Licensed to Elasticsearch B.V. under one or more contributor
|
2
|
+
# license agreements. See the NOTICE file distributed with
|
3
|
+
# this work for additional information regarding copyright
|
4
|
+
# ownership. Elasticsearch B.V. licenses this file to you under
|
5
|
+
# the Apache License, Version 2.0 (the "License"); you may
|
6
|
+
# not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing,
|
12
|
+
# software distributed under the License is distributed on an
|
13
|
+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
14
|
+
# KIND, either express or implied. See the License for the
|
15
|
+
# specific language governing permissions and limitations
|
16
|
+
# under the License.
|
4
17
|
|
5
18
|
module Elasticsearch
|
6
19
|
module XPack
|