-
Notifications
You must be signed in to change notification settings - Fork 93
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
Enhance per bucket, and per document monitor notification message ctx. #605
Conversation
Signed-off-by: AWSHurneyt <[email protected]>
… level monitor notification messages. Added support for printing query/rule info in doc level monitor notification messages. Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #605 +/- ##
=========================================
Coverage 73.95% 73.95%
- Complexity 896 901 +5
=========================================
Files 133 134 +1
Lines 5890 5910 +20
Branches 716 717 +1
=========================================
+ Hits 4356 4371 +15
- Misses 1222 1226 +4
- Partials 312 313 +1 ☔ View full report in Codecov by Sentry. |
src/main/kotlin/org/opensearch/commons/alerting/model/AlertContext.kt
Outdated
Show resolved
Hide resolved
Signed-off-by: AWSHurneyt <[email protected]>
Signed-off-by: AWSHurneyt <[email protected]>
src/main/kotlin/org/opensearch/commons/alerting/model/AlertContext.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/org/opensearch/commons/alerting/model/AggregationResultBucket.kt
Show resolved
Hide resolved
…xtending it. Signed-off-by: AWSHurneyt <[email protected]>
src/test/kotlin/org/opensearch/commons/alerting/model/AlertContextTests.kt
Show resolved
Hide resolved
Closing this issue as I've moved these changes to the alerting plugin in PR opensearch-project/alerting#1450 based on this feedback #605 (comment) |
Description
Accomplished this by adding the
AlertContext
data model, which we can use to store data we only want to expose via the notification messagectx
. Storing sample documents, or query/rule lists in the alert document would bloat it; this data model allows us to separate the content of thectx
from the content of theAlert
documents.Issues Resolved
opensearch-project/alerting#1300
opensearch-project/alerting#1396
opensearch-project/alerting#1401
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.