Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.8] Don't trigger summary actions when there are no alerts to report (
#156421) (#156617) # Backport This will backport the following commits from `main` to `8.8`: - [Don't trigger summary actions when there are no alerts to report (#156421)](#156421) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Ersin Erdal","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-05-03T19:15:01Z","message":"Don't trigger summary actions when there are no alerts to report (#156421)\n\nResolves: #155708\r\n\r\nCurrently we always trigger summary actions on custom interval even if\r\nthere are no alerts to report.\r\nThis PR changes this behaviour to skip summary actions when there are no\r\nalerts.\r\n\r\n## To verify\r\nCreate a Security Rule with a summary action that is on custom interval\r\n(`Summary of alerts` -> `Custom Frequency`)\r\nAdd an alerts filter to filter out all the alerts (e.g. by using host\r\nname that doesn't exist)\r\nExpect the summary action not to be triggered.","sha":"506806fee7f374205d98995a2754a0d296fbebb0","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:ResponseOps","v8.8.0","v8.9.0"],"number":156421,"url":"https://github.com/elastic/kibana/pull/156421","mergeCommit":{"message":"Don't trigger summary actions when there are no alerts to report (#156421)\n\nResolves: #155708\r\n\r\nCurrently we always trigger summary actions on custom interval even if\r\nthere are no alerts to report.\r\nThis PR changes this behaviour to skip summary actions when there are no\r\nalerts.\r\n\r\n## To verify\r\nCreate a Security Rule with a summary action that is on custom interval\r\n(`Summary of alerts` -> `Custom Frequency`)\r\nAdd an alerts filter to filter out all the alerts (e.g. by using host\r\nname that doesn't exist)\r\nExpect the summary action not to be triggered.","sha":"506806fee7f374205d98995a2754a0d296fbebb0"}},"sourceBranch":"main","suggestedTargetBranches":["8.8"],"targetPullRequestStates":[{"branch":"8.8","label":"v8.8.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156421","number":156421,"mergeCommit":{"message":"Don't trigger summary actions when there are no alerts to report (#156421)\n\nResolves: #155708\r\n\r\nCurrently we always trigger summary actions on custom interval even if\r\nthere are no alerts to report.\r\nThis PR changes this behaviour to skip summary actions when there are no\r\nalerts.\r\n\r\n## To verify\r\nCreate a Security Rule with a summary action that is on custom interval\r\n(`Summary of alerts` -> `Custom Frequency`)\r\nAdd an alerts filter to filter out all the alerts (e.g. by using host\r\nname that doesn't exist)\r\nExpect the summary action not to be triggered.","sha":"506806fee7f374205d98995a2754a0d296fbebb0"}}]}] BACKPORT--> Co-authored-by: Ersin Erdal <[email protected]>
- Loading branch information