[Response Ops] Refactor alerting task runner - AlertingEventLog
class
#131540
Labels
Feature:Alerting/RulesFramework
Issues related to the Alerting Rules Framework
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
Meta issue: #124206
As a step towards refactoring the task runner, we want to encapsulate all event log transactions that occur during task running into a class (
AlertingEventLog
) with the following public functions:initialize()
- initializes the class with all the data required to populate the common metadata fieldsstart()
- sets the start time for the transaction (shared betweenexecute-start
andexecute
and writes out theexecute-start
eventlogActiveAlert()
/logNewAlert()
/logRecoveredAlert()
/logTimeout()
complete()
- sets metrics data and any errors/warnings for rule run and writes outexecute
eventEnsure this class is thoroughly unit-tested.
The text was updated successfully, but these errors were encountered: