1

I want to set a webhook notification for a job using the Jobs API. According to the documentation I need the notification ID, but where do I get that from? Is that the essentially the webhook configuration name?

An optional list of notification IDs to call when the run fails. A maximum of 3 destinations can be specified for the on_failure property.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
Robert Kossendey
  • 6,733
  • 2
  • 12
  • 42

1 Answers1

2

These IDs are IDs of the Alerts Destinations that you created via UI. You can fetch the destination ID from the URL when you're accessing specific alert in UI. This feature right now is in the private preview, so for detailed specification please reach someone from Databricks.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
  • Maybe I misunderstood something, but aren't Alerts used for DBSQL queries instead of jobs? I am looking for the notification destination ID from a webhook that I have configured through Admin console, so that I receive a notification on failure of my jobs. – Robert Kossendey Dec 02 '22 at 16:13
  • sorry, mixed up things - alerts destinations API isn't documented yet, so you can only get it from the UI - the UUID between `/sql/destinations/` and next `/` (I've updated answer) – Alex Ott Dec 02 '22 at 16:37
  • 1
    Thank you very much Alex. Another way to retrieve the destination ID that I found is the "View Job as JSON" feature. – Robert Kossendey Dec 02 '22 at 16:57