Hi, What is the best way to create Automation(for ...
# prefect-cloud
r
Hi, What is the best way to create Automation(for monitoring flow run state) without manually creating via Prefect UI automations tab. I could think of utilizing Prefect cloud rest api along with Github action but are there any other recommended better approach?
w
yeah at this time we dont have a python convenience for this. you can hit the rest API with a client of your choice, or you can also use the prefect_client as a small helper, which you can explore here https://github.com/PrefectHQ/prefect/blob/bc93572b57dbb1238025dc1945b15a2ef029c582/src/prefect/client/orchestration.py#L2512C28-L2512C28
r
ok. thank you