Add Target object for external data source support on Monitor and Alert models.#916
Merged
riysaxen-amzn merged 1 commit intoopensearch-project:mainfrom Mar 25, 2026
Conversation
Closed
5 tasks
eirsep
reviewed
Mar 19, 2026
eirsep
reviewed
Mar 19, 2026
eirsep
requested changes
Mar 19, 2026
Member
|
let's plz add UT coverage |
f432ddc to
aa20a53
Compare
eirsep
requested changes
Mar 24, 2026
src/main/kotlin/org/opensearch/commons/alerting/model/Target.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/opensearch/commons/alerting/model/Target.kt
Outdated
Show resolved
Hide resolved
298c17a to
3d1745e
Compare
engechas
reviewed
Mar 24, 2026
Collaborator
engechas
left a comment
There was a problem hiding this comment.
There's some inconsistency between the changes in the ser/de of the Alert/Monitor models. Wanted to ensure that is intentional
src/main/kotlin/org/opensearch/commons/alerting/model/Monitor.kt
Outdated
Show resolved
Hide resolved
9276e02 to
8d09774
Compare
engechas
previously approved these changes
Mar 24, 2026
Add Target data class (type + endpoint) to support external data source targeting. Monitors can target LOCAL (default), AOSS_COLLECTION, or AOS_DOMAIN endpoints. Target is copied from Monitor to Alert at alert creation time to preserve data source context for dashboards. Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
8d09774 to
b195b1f
Compare
eirsep
approved these changes
Mar 25, 2026
engechas
approved these changes
Mar 25, 2026
5 tasks
manaswini1920
pushed a commit
to manaswini1920/common-utils
that referenced
this pull request
Mar 25, 2026
… and Alert (opensearch-project#916)" This reverts commit eba8e70.
2 tasks
manaswini1920
pushed a commit
to manaswini1920/common-utils
that referenced
this pull request
Mar 25, 2026
… and Alert (opensearch-project#916)" This reverts commit eba8e70. Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
manaswini1920
pushed a commit
to manaswini1920/common-utils
that referenced
this pull request
Mar 25, 2026
…r and Alert (opensearch-project#916)" (opensearch-project#917) This reverts commit a4d2442. Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
2 tasks
AWSHurneyt
pushed a commit
that referenced
this pull request
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add Target object for external data source support on Monitor and Alert models.
Related Issues
Resolves
Testing
Check List