[alerts] expose API to generate alert instance summary from event log documents #88908
Labels
Feature:Alerting
research
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
It's not clear that this will be needed, but thought I'd create an issue to outline how it might work, if it is.
For the "Alert Details" page, we generate the list of instances and data from them, via this function, which is not currently exposed as an API:
kibana/x-pack/plugins/alerts/server/lib/alert_instance_summary_from_event_log.ts
Lines 11 to 20 in da8abda
As we are getting more consumers of the event log coming on line, this function - or similar ones, or perhaps this one with more parameters/capabilities - could be useful if we only end up providing a way to get ALL the event log docs (eg, if we don't support a richer search mechanism). Otherwise, those consumers will be forced to implement similar logic in their own plugins.
We'd need to clean this up a bit to turn it into an API, and presumably if we did this, we'd also change it to support events from multiple alerts, and not just a single alert. And presumably, it would be a function on the alertsClient.
The text was updated successfully, but these errors were encountered: