-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(aci milestone 3): updates to dual writing data conditions (#83275)
When dual writing `AlertRuleTrigger`s to the ACI tables, we must create 2 data conditions: 1. The "detector trigger," which compares against the trigger threshold value and returns a `DetectorPriorityLevel` as its condition result 2. The "action filter," which checks the detector status and returns `True` as its condition result. Each of these "action filters" has its own `DataConditionGroup` as well, which is linked back to the legacy alert rule's associated workflow. Implement this paradigm. Also add logic to automatically set a resolve threshold if it's not set by the user on the legacy alert rule.
- Loading branch information
1 parent
993d7d4
commit f675818
Showing
2 changed files
with
226 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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