-
Notifications
You must be signed in to change notification settings - Fork 94
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
Conversation
Signed-off-by: Subhobrata Dey <[email protected]>
@@ -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))) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed this.
Signed-off-by: Subhobrata Dey <[email protected]>
…oject#661) Signed-off-by: Subhobrata Dey <[email protected]>
Signed-off-by: Subhobrata Dey <[email protected]>
…oject#661) Signed-off-by: Subhobrata Dey <[email protected]>
* 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]>
* 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>
* 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]>
Description
changes to add support for remote monitors in alerting
Issues Resolved
#1546
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.