> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Databricks Workspace Webhook Setup Guide

> Configure Databricks Workspace to deliver events to StackOne.

## Prerequisites

The connector should already be set up, with a Connector Profile and a Linked Account. See [Getting Started](https://docs.stackone.com/connectors/databricksworkspace.md#getting-started) on the Databricks Workspace connector page.

## How Databricks webhooks work

StackOne creates and manages the webhook automatically when events are enabled on this connection. It creates a notification destination named **StackOne** in your workspace and deletes it when events are disabled or the account is disconnected. A destination is a channel, not a subscription. Databricks only sends a notification to it from jobs (or tasks) whose notifications include the **StackOne** destination, so you attach it to each job you want events from.

## Make the service principal a workspace admin

Creating a notification destination requires workspace admin rights. Add the service principal whose Client ID this connection uses to the workspace **admins** group, signed in to your Databricks workspace as a workspace admin.

**1. Open the groups settings**

Navigate to **Settings** > **Identity and access**, then click **Manage** next to **Groups**.

![Identity and access settings with the Manage button for Groups highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-identity-and-access.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=77b0b7c113f670d722bdfc058c8c47e5)

**2. Open the admins group**

In the **Groups** list, click **admins**.

![Groups list with the admins group highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-groups.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=281d190ed34b186b4e3d73c8a47edf45)

**3. Add a member**

On the **Members** tab, click **Add members**.

![The admins group Members tab with the Add members button highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-admins-add-members.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=a374ad77ef8faed1867109f74d58ba88)

**4. Select the service principal**

Search for the service principal by name or Application ID, select it, and click **Add**.

<ul>
  <li>The Application ID is the Client ID entered on this connection.</li>
</ul>

![Add members dialog with a service principal selected and the Add button highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-admins-select-service-principal.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=f4978bbf293f54c5480ceeaa213b3211)

## Confirm the StackOne destination

After events are enabled on this connection, the **StackOne** destination appears in the workspace notification destinations.

**1. Open the notification destinations**

Navigate to **Settings** > **Notifications**, then click **Manage** next to **Notification destinations**.

![Notifications settings with the Manage button for Notification destinations highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-notification-settings.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=27426c495870bb00ed63697339212be9)

**2. Check the StackOne destination**

Confirm that a destination named **StackOne** is listed. Don't edit or delete it, as StackOne manages it.

![Notification destinations list showing the StackOne destination](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-notification-destinations.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=f489763e420a82e4e31c056d415a8195)

## Send job notifications to StackOne

Repeat these steps for every job you want events from. Notifications can also be added to individual tasks in the job's task settings; task-level events identify the task run.

**1. Open the job notifications**

In **Jobs & Pipelines**, open the job. In the **Job notifications** panel, click **Edit notifications**.

![Job page with the Edit notifications button highlighted in the Job notifications panel](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-job-edit-notifications.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=76c15b334e40f1a19ba9b17138ad1bda)

**2. Add a notification**

In the **Job notifications** dialog, click **Add notification**.

![Job notifications dialog with the Add notification button highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-job-add-notification.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=461e2ceae425a96824225f23a2d692f8)

**3. Select the StackOne destination**

Open **Select a destination** and, under **System destinations**, select **StackOne**.

![Destination dropdown with the StackOne system destination highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-job-select-destination.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=3622f5a09f2e089f98ba1b3dbd14618c)

**4. Choose the events and save**

Tick the events to send to StackOne, then click **Save**.

<ul>
  <li>**Failure** is ticked by default.</li>
  <li>**Duration warning** and **Streaming backlog** can only be ticked once the job has a matching metric threshold (see the next section).</li>
  <li>**Maintenance start** and **Maintenance complete** apply to continuous jobs.</li>
</ul>

![StackOne notification row with Start, Success, and Failure ticked and the Save button highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-job-select-events.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=8e00a8a981ab0779c2060396e6b2a76a)

## Set metric thresholds for warning events

Duration warning and Streaming backlog notifications fire only when the job has a matching metric threshold.

**1. Add a metric threshold**

On the job page, under **Job health configuration**, click **Add metric thresholds**. Choose **Run duration** for duration warnings, or a **Streaming backlog (bytes)**, **Streaming backlog (duration)**, **Streaming backlog (files)**, or **Streaming backlog (records)** metric for streaming jobs, then set the threshold.

![Job health configuration with the Add metric thresholds button highlighted](https://mintcdn.com/stackone-60/Yx9FjiVntAxlAJG7/connectors/databricksworkspace/images/events-job-metric-thresholds.png?fit=max\&auto=format\&n=Yx9FjiVntAxlAJG7\&q=85\&s=3333fa487d3dbe75f6c6fccd755517dc)

## Available webhook events

The following Databricks events can be enabled. Only events selected in StackOne are delivered, and only for jobs or tasks whose notifications include the **StackOne** destination.

**1. Job run events**

Events fired as a job or task run progresses.

<ul>
  <li>**Job Start** (`jobs.on_start`) — Fired when a job run or task run starts.</li>
  <li>**Job Success** (`jobs.on_success`) — Fired when a run completes successfully, including runs that succeeded with failures.</li>
  <li>**Job Failure** (`jobs.on_failure`) — Fired when a run fails.</li>
  <li>**Job Duration Warning** (`jobs.on_duration_warning_threshold_exceeded`) — Fired when a run exceeds the job's run duration threshold.</li>
</ul>

**2. Other job events**

A catch-all for job notifications without a dedicated event.

<ul>
  <li>**Other Job Notification** (`jobs.*`) — Fired for any other job notification, such as streaming backlog or continuous-job maintenance. The event type is passed through exactly as Databricks sends it.</li>
</ul>

## Delivery format

Details of how Databricks delivers job notifications to StackOne.

<ul>
  <li>Databricks sends no event ID or timestamp, so StackOne uses the run ID as the event ID.</li>
  <li>Task-level notifications are sent once per task attempt. A retried task, including a serverless automatic retry, produces new events with a new task run ID.</li>
  <li>Job-level notifications are not sent for retried tasks.</li>
</ul>

## Verify

Your Connector should now be able to receive and process events. Try triggering an event and you should see an Event appear in the Connector logs.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.