-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SLO] Fix SLO burn rate rule to call
alertWithLifecycle
before `get…
…AlertUuid` (#169004) ## Summary This PR fixes #168962 by calling `alertWithLifecycle` before `getAlertUuid`. When `getAlertUuid` is called first it will generate a UUID which is not associated with the actual alert. When you call `alertWithLifecycle`, it generates the Alert then stores the `alertUuid` that maps the `alertId` to the `alertUuid`; `getAlertUuid` tries to recall this association but falls back to generating a UUID. I had to change the way the test worked by modifying mock's behavior to match the implementation; once I had a test that failed similarly to what we see in the real world, I fixed the issue by changing the implementation to call `alertWithLifecycle` first Co-authored-by: Kibana Machine <[email protected]> (cherry picked from commit 48bb5ae)
- Loading branch information
1 parent
714189f
commit 5514b3f
Showing
2 changed files
with
23 additions
and
25 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