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

changes to add support for remote monitors in alerting #661

Merged
merged 2 commits into from
May 22, 2024

Conversation

sbcd90
Copy link
Collaborator

@sbcd90 sbcd90 commented May 22, 2024

Description

changes to add support for remote monitors in alerting

Issues Resolved

#1546

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

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.

@@ -55,7 +56,7 @@ data class Monitor(

require(triggerIds.add(trigger.id)) { "Duplicate trigger id: ${trigger.id}. Trigger ids must be unique." }
// Verify Trigger type based on Monitor type
when (monitorType) {
when (MonitorType.valueOf(monitorType.uppercase(Locale.ROOT))) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try-catch. remote monitor's type will throw Exception right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not convert enum to strings and do contains check on list of enum strings

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed this.

eirsep
eirsep previously approved these changes May 22, 2024
@sbcd90 sbcd90 merged commit 3a69aab into opensearch-project:main May 22, 2024
9 checks passed
AWSHurneyt pushed a commit to AWSHurneyt/common-utils that referenced this pull request Jun 25, 2024
jowg-amazon pushed a commit that referenced this pull request Jul 2, 2024
jowg-amazon pushed a commit to jowg-amazon/common-utils that referenced this pull request Jul 2, 2024
jowg-amazon added a commit that referenced this pull request Jul 2, 2024
* changes to add support for remote monitors in alerting (#661)

Signed-off-by: Subhobrata Dey <[email protected]>

* changes to add support for remote monitors in alerting (#662)

* changes to add support for remote monitors in alerting

Signed-off-by: Subhobrata Dey <[email protected]>

* add tests for moved classes

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>

* changes to support generic inputs and triggers in remote monitors (#664)

Signed-off-by: Subhobrata Dey <[email protected]>

* add remote doc level monitor input (#665)

Signed-off-by: Subhobrata Dey <[email protected]>

* fix serde of RemoteDocLevelMonitorInput (#666)

Signed-off-by: Subhobrata Dey <[email protected]>

* fix serde for monitor (#692)

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>
Co-authored-by: Subhobrata Dey <[email protected]>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 2, 2024
* changes to add support for remote monitors in alerting (#661)

Signed-off-by: Subhobrata Dey <[email protected]>

* changes to add support for remote monitors in alerting (#662)

* changes to add support for remote monitors in alerting

Signed-off-by: Subhobrata Dey <[email protected]>

* add tests for moved classes

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>

* changes to support generic inputs and triggers in remote monitors (#664)

Signed-off-by: Subhobrata Dey <[email protected]>

* add remote doc level monitor input (#665)

Signed-off-by: Subhobrata Dey <[email protected]>

* fix serde of RemoteDocLevelMonitorInput (#666)

Signed-off-by: Subhobrata Dey <[email protected]>

* fix serde for monitor (#692)

Signed-off-by: Subhobrata Dey <[email protected]>

---------

Signed-off-by: Subhobrata Dey <[email protected]>
Co-authored-by: Subhobrata Dey <[email protected]>
(cherry picked from commit fbb297b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
jowg-amazon pushed a commit that referenced this pull request Jul 2, 2024
* changes to add support for remote monitors in alerting (#661)



* changes to add support for remote monitors in alerting (#662)

* changes to add support for remote monitors in alerting



* add tests for moved classes



---------



* changes to support generic inputs and triggers in remote monitors (#664)



* add remote doc level monitor input (#665)



* fix serde of RemoteDocLevelMonitorInput (#666)



* fix serde for monitor (#692)



---------



(cherry picked from commit fbb297b)

Signed-off-by: Subhobrata Dey <[email protected]>
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>
Co-authored-by: Subhobrata Dey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants