[Response Ops] Add framework services for rule types to respect alert circuit breaker (#139501)

* Adding service functions to alert factory

* Fixing types

* Fixing types

* Small refactor

* Adding functional test

* Cleanup

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Ying Mao 2022-09-06 10:21:28 -04:00 committed by GitHub
parent 067a91c235
commit 27315aceba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 485 additions and 33 deletions

View file

@ -40,7 +40,10 @@ const alertFactory = (contextKeys: unknown[], testAlertActionArr: unknown[]) =>
);
return alertInstance;
},
hasReachedAlertLimit: () => false,
alertLimit: {
getValue: () => 1000,
setLimitReached: () => {},
},
done: () => ({ getRecoveredAlerts: () => [] }),
});