Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Migrate alerting tools #76

Merged
merged 1 commit into from
Dec 28, 2023
Merged

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 2f06f6f from #66.

* Add search alerts tool

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Add search monitors tool

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Add param tests and number parsing error handling

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Add for list-based params

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Add error logs

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Fix isNumeric var

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Minor test coverage increase & cleanup

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

* Cover few edge cases when param parsing

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>

---------

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
(cherry picked from commit 2f06f6f)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link

codecov bot commented Dec 28, 2023

Codecov Report

Attention: 27 lines in your changes are missing coverage. Please review.

Comparison is base (b0db422) 81.53% compared to head (6191f40) 82.04%.

Files Patch % Lines
...org/opensearch/agent/tools/SearchMonitorsTool.java 86.13% 10 Missing and 4 partials ⚠️
...a/org/opensearch/agent/tools/SearchAlertsTool.java 83.33% 7 Missing and 3 partials ⚠️
...search/agent/tools/SearchAnomalyDetectorsTool.java 40.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.x      #76      +/-   ##
============================================
+ Coverage     81.53%   82.04%   +0.50%     
- Complexity       85      118      +33     
============================================
  Files             8       10       +2     
  Lines           520      685     +165     
  Branches         70       94      +24     
============================================
+ Hits            424      562     +138     
- Misses           56       76      +20     
- Partials         40       47       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ohltyler ohltyler merged commit 0d0c1c1 into 2.x Dec 28, 2023
15 checks passed
@ohltyler ohltyler deleted the backport/backport-66-to-2.x branch December 28, 2023 20:50
yuye-aws pushed a commit to yuye-aws/skills that referenced this pull request Apr 26, 2024
(cherry picked from commit 2f06f6f)

Signed-off-by: Tyler Ohlsen <ohltyler@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: yuye-aws <yuyezhu@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant