Reports about alerts

Is there any way to generate reports from alerts?

I’m not sure the metrics that Grafana exposes would be enough to answer some questions.

For example, what’s the mean time to resolve alerts with label x=y in the last X weeks?

Does anyone know a solution or has advice about this?