<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Creating Databricks Alerts/Notifications without using the UI in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/56045#M30490</link>
    <description>&lt;P&gt;Hi Saugat,&lt;/P&gt;&lt;P&gt;Is there a way that i can get the owner of a schema/table dynamically and send out a notification to him using Rest API.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jan 2024 07:24:12 GMT</pubDate>
    <dc:creator>subbaram</dc:creator>
    <dc:date>2024-01-02T07:24:12Z</dc:date>
    <item>
      <title>Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/38953#M26824</link>
      <description>&lt;P&gt;I am trying to work on a Databricks notebook that can dynamically create alerts using the Databricks API (Documentation linked here:&amp;nbsp;&lt;A href="https://docs.databricks.com/api/azure/workspace/alerts/list" target="_blank"&gt;https://docs.databricks.com/api/azure/workspace/alerts/list&lt;/A&gt;). I can successfully create an alert, however what is missing is the ability to assign notifications. There is nothing in the documentation that indicates it as an option to configure notification settings or to enable these. The closest thing is to be able to set up a custom notification subject/body, but this would not be useful if a notification cannot be configured.&lt;/P&gt;&lt;P&gt;Am I missing something in being confused why this capability is not there and is the only way truly to use the UI to configure notification destinations?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone identified a successful workaround to be able to fully set up an alert complete with notifications configured without any use of the UI?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 17:02:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/38953#M26824</guid>
      <dc:creator>lurban</dc:creator>
      <dc:date>2023-08-02T17:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/39396#M26960</link>
      <description>&lt;P&gt;I am also running into a similar issue. Using databricks alert API, how to give refresh schedule, status, Email notifications, etc. I tried giving status as triggered but the alert is always getting created with unknown&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 18:21:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/39396#M26960</guid>
      <dc:creator>Jerry01</dc:creator>
      <dc:date>2023-08-08T18:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/55175#M30256</link>
      <description>&lt;P&gt;The way I hopefully figured this out (am going to try it out in a couple of days), was first doing it manually, getting an alert out to a teams channel (configured as a destination) , using the default template. When it actually wrote on teams, I got a link to a job (which apparently isn’t visible on the workflows page). Looking at the yaml of the job, it seems whenever a schedule is added to an alert, it creates a workflow with a “sql_task”.&amp;nbsp;&lt;BR /&gt;Now, we have already been writing to teams channel, for failed jobs using email notifications and using the mail id of the channel (yes, there is an email link for a teams channel).&lt;/P&gt;&lt;P&gt;So, I would approach this as:&lt;/P&gt;&lt;P&gt;1. Create a saved query (through api, you can use terraform too).&lt;/P&gt;&lt;P&gt;2. Create an alert for the query. This only creates an alert with no schedule.&lt;/P&gt;&lt;P&gt;3. Create a workflow/job through api with a sql task pointing to an alertid and using email_notifications for the job (email notification can be used for both teams and to normal mailing groups).&lt;/P&gt;&lt;P&gt;I hope this should work, but I have to try it out and confirm in a few days.&lt;/P&gt;&lt;P&gt;This should however have to be simpler.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2023 23:10:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/55175#M30256</guid>
      <dc:creator>SaugatMukherjee</dc:creator>
      <dc:date>2023-12-12T23:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/55330#M30309</link>
      <description>&lt;P&gt;I can now confirm that this works.&lt;/P&gt;&lt;P&gt;1. I created a saved query using databricks rest api.&lt;/P&gt;&lt;P&gt;2. Created an alert using databricks rest api. This does not include the schedule.&lt;/P&gt;&lt;P&gt;3. Created a job with a task of sql_task type with the alert id assigned to the alert created in step 2, again using the rest api.&lt;/P&gt;&lt;P&gt;While creating the job, you can also set email_notifications - that is also part of the payload if you look at the rest api definition for jobs.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 15:45:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/55330#M30309</guid>
      <dc:creator>SaugatMukherjee</dc:creator>
      <dc:date>2023-12-15T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/56045#M30490</link>
      <description>&lt;P&gt;Hi Saugat,&lt;/P&gt;&lt;P&gt;Is there a way that i can get the owner of a schema/table dynamically and send out a notification to him using Rest API.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jan 2024 07:24:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/56045#M30490</guid>
      <dc:creator>subbaram</dc:creator>
      <dc:date>2024-01-02T07:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/56327#M30522</link>
      <description>&lt;P&gt;Hi Subbaram,&lt;/P&gt;&lt;P&gt;You should post a new question for this. I will then try to answer.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 04:11:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/56327#M30522</guid>
      <dc:creator>SaugatMukherjee</dc:creator>
      <dc:date>2024-01-03T04:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Databricks Alerts/Notifications without using the UI</title>
      <link>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/72233#M34521</link>
      <description>&lt;P&gt;Hi Saugat,&lt;/P&gt;&lt;P&gt;Just wondering how exactly you got the job url when you manually created the alert in the UI? I am calling to the jobs api and can't find any instances of the alert-scheduled sql query running.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 13:46:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/creating-databricks-alerts-notifications-without-using-the-ui/m-p/72233#M34521</guid>
      <dc:creator>meganst</dc:creator>
      <dc:date>2024-06-10T13:46:18Z</dc:date>
    </item>
  </channel>
</rss>

