-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[Alerting] research refactoring task_runner module #124206
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
We can have a team discussion before breaking it down or starting the work. |
I've been thinking about this issue.... I want to make sure we break this down into concrete steps and make each step an independent PR. I suggest we enumerate specific problems that we want to address.
|
+1 I think it would be good to avoid moving and changing code in the same PR. Some quick thoughts:
It would be good to assign the alerts into three groups ( I've also seen performance increase calculating these objects in a for loop (reducing event loop blocking time). example code block from my ON week
I could also see a domain for scheduling the actions. It happens once for ongoing alerts and another time for recovered alerts. The logging of events could also be done in its own module for all types of alert events (new, active, recovered, etc). |
The alerting task runner is a class that primarily implements 2 functions:
Every other method in the class and helper functions in the file are in support of these two functions. We'll focus on
|
Closing this meta issue as all followup issues have been created |
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
…tributesAndRun() and validateAndExecuteRule() resolves elastic#131544 Extract the `loadRuleAttributesAndRun()` and `validateAndExecuteRule()` methods from the alerting task manager, into a separate module. meta issue: elastic#124206
This is a meta issue to refactor task_runner.ts module.
This module and its unit tests became too big and hard to follow in time. We can create sub-issues (extract type, interfaces and test fixtures, extract rule execution etc... ) and refactor them as small chunks.
Task breakdown
logActiveAndRecoveredAlerts
andgenerateNewAndRecoveredAlertEvents
#131547The text was updated successfully, but these errors were encountered: