NGalert / Grafana 8 alert feature: How to export / import alerts as yml/json?

I wrote a small javascript function to export all the alert info I need by utilizing the Grafana API. One should be able to write a similar API-based import facility for a full backup and restore cycle.
https://community.grafana.com/t/grafana-8-how-to-import-export-alerts-in-unified-alert-section/50431/11?u=fedorg

3 Likes