Components: Alert Aggregation
Alert aggregation aggregates alerts from detectors.
| Schema | Description | |
|---|---|---|
| Input | DetectorSchema | Alerts from detectors |
| Output | AggregateSchema | Aggregated alerts |
This document explains expected APIs, how to implement a parser, testing tips and common pitfalls.
Overview
- Alert aggregation must inherit from
CoreAlertAggregationand provide aaggregate_alerts()implementation. CoreParser.run()handles lifecycle and callsaggregate_alerts()for each input; implement pure alert aggregation logic insideaggregate_alerts()where possible.- Use a typed
Configclass (subclass ofCoreAlertAggregationConfig) to hold runtime parameters.
CoreParser — minimal API
Recommended signatures and behavior:
class CoreAlertAggregation:
def aggregate_alerts(
self,
input_: list[DetectorSchema] | DetectorSchema,
output_: AggregateSchema,
) -> bool:
return True
@override
def train(
self, input_: DetectorSchema | list[DetectorSchema]
) -> None:
pass
Available alert aggregation
Go back to Index