mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[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:
parent
067a91c235
commit
27315aceba
14 changed files with 485 additions and 33 deletions
|
@ -40,7 +40,10 @@ const alertFactory = (contextKeys: unknown[], testAlertActionArr: unknown[]) =>
|
|||
);
|
||||
return alertInstance;
|
||||
},
|
||||
hasReachedAlertLimit: () => false,
|
||||
alertLimit: {
|
||||
getValue: () => 1000,
|
||||
setLimitReached: () => {},
|
||||
},
|
||||
done: () => ({ getRecoveredAlerts: () => [] }),
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue