Commit Graph

48 Commits

Author SHA1 Message Date
Arnav Das 2d03dc773b Alerting Plugins (#93)
* Alert Plugin

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* lint file header license

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Tests For Alerting[Monitors]

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Tests For Alerting[Destinations]

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* dynamic lookup 90#issuecomment-1003396742

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Alerting Async

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Lint Changes

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* alerting plugins integration tests

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Integ UnitTests Skip on OPENSEARCH_VERSION >= 2.0.0

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Unit Test Skip Complete

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* License Headers fixed

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* test_urllib3_connection timeout

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* lint

Signed-off-by: Arnav Das <arnav.das88@gmail.com>

* Fix licenses in all files

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>

* Remove elastic search licenses on new files

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>

* Fix formatting

Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>

Signed-off-by: Arnav Das <arnav.das88@gmail.com>
Signed-off-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
Co-authored-by: Harsha Vamsi Kalluri <harshavamsi096@gmail.com>
2022-10-03 14:45:18 -04:00
Vacha Shah b1eaba0064 Type removal breaking changes (#151)
* Breaking changes for type removal

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Adding support to test against unreleased OpenSearch

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Formatting

Signed-off-by: Vacha Shah <vachshah@amazon.com>

* Addressing comments to refactor run-opensearch.sh

Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-04-13 10:47:48 -07:00
Philip May 4056fa0176 fix black formatting for new version
Signed-off-by: Philip May <philip@may.la>
2022-02-05 00:13:37 -08:00
Rushi Agrawal eaa0cd8765 Update setup.py to correctly pick up Python files
And also re-update package name in utils/build-dists.py so that it is
uninstalled successfully

Signed-off-by: Rushi Agrawal <rushi.agr@gmail.com>
2021-09-19 18:18:09 -07:00
Rushi Agrawal ef88f43a72 Update package name to opensearch-py (#72)
Since opensearch is already taken, update distribution name to opensearch-py.
Update build utils accordingly to fix package name change.

Signed-off-by: Rushi Agrawal <rushi.agr@gmail.com>
2021-09-16 13:51:57 -07:00
Rushi Agrawal ef0c23c0e4 Rename module to opensearchpy
To avoid conflict with an existing package by name 'opensearch' being
present

Signed-off-by: Rushi Agrawal <rushi.agr@gmail.com>
2021-09-16 21:23:38 +05:30
Rushi Agrawal f4891be3c3 Fix potential security issues with jinja2 and pyyaml dep
Added escaping to jinja templates. With PyYAML dependency, accidentally
added '<3.4.1' whereas the intent was to make it '==3.4.1', while fixing
as per dependabot alert. Fixed it now.

Signed-off-by: Rushi Agrawal <rushi.agr@gmail.com>
2021-09-09 19:05:18 +05:30
Rushi Agrawal c6cae11f97 Use opensearch1 instead of opensearch7 as example in tests
Signed-off-by: Rushi Agrawal <rushi.agr@gmail.com>
2021-08-19 07:58:20 +05:30
Rushi Agrawal 9e9269c8f3 Rename Elasticsearch -> OpenSearch
Signed-off-by: Rushi Agrawal <rushi.agr@gmail.com>
2021-08-19 07:58:20 +05:30
Shephali Mittal 924d71729a Add SPDX and OpenSearch Modification license header
Signed-off-by: Shephali Mittal <shephalm@amazon.com>
2021-08-10 19:36:47 +05:30
Pierre Grimaud 305f894c1f [7.x] Fix typos in documentation
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
2021-05-25 07:48:43 -05:00
Seth Michael Larson 794a97578f [7.x] Start using the Elastic Artifacts API for YAML REST tests 2021-04-22 12:08:05 -05:00
Seth Michael Larson e4cdd4544d [7.x] Add per-request authentication for http_auth and api_key 2021-04-19 17:26:44 -05:00
Seth Michael Larson f8ffb2cd0a [7.x] Generate APIs using Elastic build artifacts API 2021-04-19 14:39:21 -05:00
Seth Michael Larson a728aaa491 [7.x] Sort imports with isort and regenerate APIs 2021-01-13 14:21:04 -06:00
Seth Michael Larson 3d14e4ff27 [7.x] Handle qualified version snapshots with make.sh
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
2020-11-23 17:33:00 -06:00
Seth Michael Larson 0ff76b1648 [7.x] Update build-dists to support all Elastic version specifiers 2020-11-17 12:06:14 -06:00
github-actions[bot] 21f25419eb [7.x] Change 'make.sh release' to 'make.sh assemble'
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
2020-11-10 13:45:05 -06:00
Seth Michael Larson 708e282eaf [7.x] Actually dockerize repo, update build-dists for release manager 2020-11-04 13:58:42 -06:00
Seth Michael Larson d08860a357 [7.x] Document all APIs, add stability warning 2020-10-28 13:49:05 -05:00
Seth Michael Larson 2ce9fd3914 [7.x] Test typing metadata in build-dist script 2020-10-20 15:22:43 -05:00
Seth Michael Larson 9b8cee0199 [7.x] Add .ci/make.sh script for building releases
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
2020-10-12 16:42:23 -05:00
Seth Michael Larson cde2a53468 [7.x] Switch to MutableMapping for headers/params 2020-09-28 15:49:14 -05:00
Seth Michael Larson c8d0a71a63 [7.x] Add type stub template to API generator 2020-09-28 15:49:14 -05:00
Seth Michael Larson 6daa14315a [7.x] Add typing metadata and manual types to package 2020-09-28 15:49:14 -05:00
github-actions[bot] 6250aacafe [7.x] Update build_dists.py to build namespaced packages
Co-authored-by: Seth Michael Larson <seth.larson@elastic.co>
2020-09-21 16:44:39 -05:00
Seth Michael Larson 680ab85275 [7.x] Add async helpers 2020-08-20 09:11:33 -05:00
Seth Michael Larson 6f66f7958b [7.x] Add 'write_only' option to Index APIs 2020-07-29 17:12:11 -05:00
Seth Michael Larson b13c7c6217 [7.x] Switch to long Apache-2.0 license header 2020-07-02 13:15:25 -05:00
Seth Michael Larson 4473f9a659 [7.x] Switch to Nox, add build_dist script 2020-06-24 14:44:04 -05:00
Seth Michael Larson 5db3482b5c Add typeless API for exists_source 2020-06-03 10:38:35 -05:00
Seth Michael Larson 1773bd17be [7.x] Backport overrides for typeless APIs 2020-05-26 08:23:21 -05:00
Seth Michael Larson bed5ffc740 [7.x] Update API generator for async 2020-05-21 11:36:21 -05:00
Seth Michael Larson 8e1798cf31 Apply license header changes and API gen 2020-04-23 14:10:49 -05:00
Seth Michael Larson 24c57840cb Update API and license tools 2020-04-23 14:10:49 -05:00
Seth Michael Larson 44571e0ae9 Release 7.7.0a2 2020-04-03 12:52:11 -05:00
Seth Michael Larson 9c39f37547 Release 7.7.0a1 2020-04-01 09:16:38 -05:00
Morten Hauberg acbbdd2d0a Remove duplicate arguments in docstrings 2020-03-20 08:21:11 -05:00
Seth Michael Larson 9b20a30b0f Restore and deprecate client.tasks.get() without task_id 2020-03-13 16:20:54 -05:00
Seth Michael Larson 883287551a Update supported ES API to 7.6 2020-03-13 13:44:46 -05:00
Seth Michael Larson 9219c92779 [7.x] Add support for X-Opaque-Id 2020-03-11 16:33:15 -05:00
Seth Michael Larson 8074ff294b [7.x] Restore default metric='_all' to cluster.state() 2020-03-10 12:08:03 -05:00
Seth Michael Larson 2c7ea70201 Migrate CI to Jenkins on 7.x branch (#1114) 2020-02-27 10:13:49 -06:00
Seth Michael Larson df8e556a1c Add _bulk_body() to base template, standardize docs spacing 2020-02-21 16:49:15 -06:00
Honza Král b4e6effc9c simpler arg parsing 2019-12-22 16:32:49 +01:00
Honza Král e44f5266d9 Moving func args generation into the template 2019-12-22 16:32:49 +01:00
Honza Král 77f084dc0d Move templates to files 2019-12-22 16:32:49 +01:00
Honza Král 219a8bb12f moved utils to a directory 2019-12-22 16:32:49 +01:00