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

Thanks for the script!

I was able to export the alerts to json. I am trying to import this exported json into different grafana instance. In the exported json i saw datasoruceuid (which is uid of datasource so no issue here) but where will i get uid and namespace_uid information? What other changes to json file i need to make?

Thanks
M