kibana/x-pack/test/rule_registry
Alexi Doak 0f60abcfdf
[ResponseOps][Flapping] detect flapping start / end, set flapping state (#144415)
Resolves https://github.com/elastic/kibana/issues/143443

## Summary

Added processing to track flapping state, and detect when an alert is
flapping.
When an alert is determined to be flapping we will log a message for
now.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

### To verify
- Create a rule that will change between active and recovered. I like to
create a rule like `index threshold` where I can force the state to
change.
- Look at the task manager document for this rule and verify that the
`flappingHistory` in the `state` is being updated properly.
- Let the rule run and verify that if the alert is flapping in AAD,
Event Log and alert summary.

Co-authored-by: Patrick Mueller <patrick.mueller@elastic.co>
Co-authored-by: Mike Côté <mikecote@users.noreply.github.com>
2022-11-29 13:44:20 -05:00
..
common [Security Solution] Remove references to ruleRegistryEnabled feature flag (#128913) 2022-04-25 13:08:24 -07:00
security_and_spaces [RAM] need to return the async id to avoid new request (#145731) 2022-11-21 15:02:06 -05:00
spaces_only [ResponseOps][Flapping] detect flapping start / end, set flapping state (#144415) 2022-11-29 13:44:20 -05:00