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
Shivam Dhar and 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
Trevor McCulloch and GitHub
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