Implemented cross-cluster monitor support#584
Implemented cross-cluster monitor support#584sbcd90 merged 4 commits intoopensearch-project:mainfrom
Conversation
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
| val aggregationResultBucket: AggregationResultBucket? = null, | ||
| val executionId: String? = null, | ||
| val associatedAlertIds: List<String>, | ||
| val clusters: List<String>? = null, |
There was a problem hiding this comment.
will this break security analytics constructor?? if yes, plz create PR for that too
There was a problem hiding this comment.
what is stored here? can you share an example list of opensource clusters?
There was a problem hiding this comment.
should this be called clusterNames or clusterIds
There was a problem hiding this comment.
Created this PR to update SAP opensearch-project/security-analytics#837
| val aggregationResultBucket: AggregationResultBucket? = null, | ||
| val executionId: String? = null, | ||
| val associatedAlertIds: List<String>, | ||
| val clusters: List<String>? = null, |
There was a problem hiding this comment.
plz udpate the alert parsing unit tests to account for this field
| val aggregationResultBucket: AggregationResultBucket? = null, | ||
| val executionId: String? = null, | ||
| val associatedAlertIds: List<String>, | ||
| val clusters: List<String>? = null, |
There was a problem hiding this comment.
should this be called clusterNames or clusterIds
| .field(PATH_FIELD, path) | ||
| .field(PATH_PARAMS_FIELD, pathParams) | ||
| .field(URL_FIELD, url) | ||
| .field(CLUSTERS_FIELD, clusters) |
There was a problem hiding this comment.
same.. update parsing tests for clusterMetricsInput model or plz add a test if non-existent
Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #584 +/- ##
============================================
- Coverage 74.25% 74.13% -0.13%
- Complexity 884 890 +6
============================================
Files 133 133
Lines 5791 5822 +31
Branches 708 714 +6
============================================
+ Hits 4300 4316 +16
- Misses 1181 1194 +13
- Partials 310 312 +2 ☔ View full report in Codecov by Sentry. |
|
The backport to To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/common-utils/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/common-utils/backport-2.x
# Create a new branch
git switch --create backport-584-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 0c23cc5b594be2d057d3e0e079596686ef703a80
# Push it to GitHub
git push --set-upstream origin backport-584-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/common-utils/backport-2.xThen, create a pull request where the |
* Added clusters field to support cross cluster cluster metrics monitors. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Fixed writeTo. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Updated tests. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Updated tests. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> --------- Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
…roject#584 (opensearch-project#586) * Added clusters field to support cross cluster cluster metrics monitors. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Fixed writeTo. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Updated tests. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> * Updated tests. Signed-off-by: AWSHurneyt <hurneyt@amazon.com> --------- Signed-off-by: AWSHurneyt <hurneyt@amazon.com>
Description
Added
clustersfield to support cross-cluster cluster metrics monitors.Documentation PR for reference opensearch-project/documentation-website#6350
Issues Resolved
opensearch-project/alerting-dashboards-plugin#796
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.