-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Alert doesn't fire action if it's muted or throttled #124775
Conversation
Pinging @elastic/response-ops (Team:ResponseOps) |
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.
LGTM; my repro listed in the original issue works as expected.
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.
LGTM! Verified this works as expected. Just a comment about updating the tests to avoid test failures due to merging this PR
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
💔 All backports failed
How to fixRe-run the backport manually:
Questions ?Please refer to the Backport tool documentation |
* Alert doesn't fire action if it's muted or throttled (cherry picked from commit e4dd6e7) # Conflicts: # x-pack/plugins/alerting/server/task_runner/task_runner.ts
* Alert doesn't fire action if it's muted or throttled (cherry picked from commit e4dd6e7) # Conflicts: # x-pack/plugins/alerting/server/task_runner/task_runner.ts Co-authored-by: Kibana Machine <[email protected]>
The SDH that referenced this issue ^^^ asked about a backport to 7.last. I assume that's reasonable, maybe some additional type name changes? :-) |
* Alert doesn't fire action if it's muted or throttled (cherry picked from commit e4dd6e7) # Conflicts: # x-pack/plugins/alerting/server/task_runner/task_runner.test.ts # x-pack/plugins/alerting/server/task_runner/task_runner.ts
* Alert doesn't fire action if it's muted or throttled (cherry picked from commit e4dd6e7) # Conflicts: # x-pack/plugins/alerting/server/task_runner/task_runner.test.ts # x-pack/plugins/alerting/server/task_runner/task_runner.ts Co-authored-by: Kibana Machine <[email protected]>
* Alert doesn't fire action if it's muted or throttled (cherry picked from commit e4dd6e7) # Conflicts: # x-pack/plugins/alerting/server/task_runner/task_runner.test.ts # x-pack/plugins/alerting/server/task_runner/task_runner.ts
Manually backported to |
* Alert doesn't fire action if it's muted or throttled (cherry picked from commit e4dd6e7) # Conflicts: # x-pack/plugins/alerting/server/task_runner/task_runner.test.ts # x-pack/plugins/alerting/server/task_runner/task_runner.ts
fixes: #124170
Task Runner was still firing actions for muted or throttled alerts if notifyWhen === 'onActionGroupChange'.
With this fix, no action will be fired if an alert is muted, throttled or notifyWhen === 'onActionGroupChange' and scheduled action group/subgroup hasn't changed.