https://prefect.io logo
Title
j

Jacob Blanco

08/24/2020, 3:11 AM
Is there any way to setup an account wide flow error alerting in Prefect Cloud? I know this can be done by flow but it's a bit involved to do this for every flow.
j

Jenny

08/24/2020, 12:53 PM
Hi @Jacob Blanco - you can use the create_cloud_hook mutation in the Interactive API and leave out the version group id. This will set a cloud hook for all your flows.
mutation { create_cloud_hook( input: { type: EMAIL, name: "Example", states: ["Running"], config: "{\"to\": \"test@test.com\"}"} ) { id } }
Sorry I'm on mobile so it's not so well formatted.
j

Jacob Blanco

08/25/2020, 12:29 AM
This is so awesome thank you!
👍 1
Implemented this a few days ago. It works really well!
👍 1
j

Jenny

09/03/2020, 1:40 PM
Great! Thanks for coming back to let us know!