Commit Graph

14 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 cae0577fd2 Bump client version to 2.0.0 (#167)
* Bump client version to 2.0.0

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

* Adding test support for other unreleased branches

Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-05-26 11:07:47 -04:00
Vacha Shah 1569c05f08 Remove include_type_name parameter from APIs (#156)
* Remove include_type_name parameter from APIs

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

* Applying formatting

Signed-off-by: Vacha Shah <vachshah@amazon.com>
2022-04-20 13:58:13 -07: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
Shivam Dhar cd63637c28 updates version for 1.1 release
Signed-off-by: Shivam Dhar <dhshivam@amazon.com>
2022-03-21 13:18:17 -07:00
Shivam Dhar 6ab90be906 adds IAM auth support
Signed-off-by: Shivam Dhar <dhshivam@amazon.com>
2022-03-09 13:12:45 -08:00
Philip May 96bbbfa336 remove unused "type: ignore" comment
Signed-off-by: Philip May <philip@may.la>
2022-02-01 13:05:37 -08:00
Shivam Dhar 25ff092c8f removes cert usage from CI module
Signed-off-by: Shivam Dhar <dhshivam@amazon.com>
2022-01-08 15:15:15 +05:30
Shivam Dhar c3a4f32b6c delays importing numpy and pandas to reduce the startup time
Signed-off-by: Shivam Dhar <dhshivam@amazon.com>
2022-01-06 14:10:38 +05:30
Shivam Dhar cfe1190a22 removes elastic support from opensearch-py library
Signed-off-by: Shivam Dhar <dhshivam@amazon.com>
2022-01-05 22:22:43 +05:30
Vijayan Balasubramanian d1179968a8 Update method documentation (#102)
remove reference to 8.0.

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
2022-01-03 09:48:11 +02:00
Vijayan Balasubramanian c0b17289b0 Remove xpack api
Remove _cat/ml* api.

Signed-off-by: Vijayan Balasubramanian <balasvij@amazon.com>
2022-01-02 22:58:10 -08:00
Trevor McCulloch 1cd15b0845 Parse raw_data on error only if the Content-Type is application/json. (#91)
Some OpenSearch REST APIs will return a Content-Type of text/plain for certain
status codes which will trigger logging when the response is not parsable as
JSON. Checking the content-type first avoids this error.

This frequently happens with 401s, which occurs when we rotate user keys.
The input that triggers this behaviour can be triggered with `curl`:

```
$  curl -k -u"admin:wrong" -w"\n%{http_code}\n%{content_type}\n" https://localhost:9200/_cluster/health
Unauthorized
401
text/plain; charset=UTF-8
```

Signed-off-by: Trevor McCulloch <trevor.mcculloch@benchling.com>
2021-12-22 21:52:49 +02: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