---
title: Tines
description: Export Lakewatch alerts to a Tines story. Lakewatch posts a JSON event to a Tines webhook when an alert is created, and your story decides what happens.
canonical_url: https://docs.databricks.com/gcp/en/lakewatch/alerts/alert-destinations/tines
---

# Tines

> [!NOTE]
> **Beta**
>
> Lakewatch is in [Beta](https://docs.databricks.com/gcp/en/release-notes/release-types.md). Workspace admins can control access to this feature from the **Previews** page. See [ Manage workspace-level previews](https://docs.databricks.com/gcp/en/admin/workspace-settings/manage-previews.md#workspace).

Export Lakewatch [alerts](https://docs.databricks.com/gcp/en/lakewatch/alerts/index.md) to a [Tines](https://www.tines.com/) story. When an alert is created, Lakewatch posts a JSON event to a Tines webhook, and your Tines story decides what happens with it. For how export behaves across destinations, see [Alert destinations](https://docs.databricks.com/gcp/en/lakewatch/alerts/alert-destinations/index.md).

Export to Tines is one-way, from Lakewatch to Tines. Lakewatch sends the event through a Tines [webhook action](https://www.tines.com/docs/actions/types/webhook/), authenticating with a webhook secret that you store as a Unity Catalog secret.

## How the event is delivered

* **On alert creation**: Lakewatch posts a JSON event with the `event_type` `lakewatch.alert.created`. The payload uses the same schema and field names as the generic [webhook destination](https://docs.databricks.com/gcp/en/lakewatch/alerts/alert-destinations/webhook.md), so a Tines story can read the same fields.
* **On alert updates**: When update delivery is enabled for the destination, Lakewatch also posts a `lakewatch.alert.updated` event when the state, title, severity, description, classification, or assignee of an already-exported alert changes. When an alert closes, you receive an `updated` event with `alert_state` set to `RESOLVED` or `DUPLICATE`. There's no separate close event. To enable update delivery, select **Also send alert updates** in the settings. See [Configure settings](https://docs.databricks.com/gcp/en/lakewatch/admin/workspace-config.md).
* **Your story decides the outcome**: A successful export means Tines received the event, not that your story acted on it.

> [!WARNING]
>
> Lakewatch sends each event one time. If delivery to Tines fails, Lakewatch records the failure and doesn't resend the event. The alert still appears in Lakewatch.

Use `data.alert_id` to match events to the same alert. With update delivery enabled, one alert produces a `created` event and later `updated` events, so check `event_type` to tell them apart. `delivery_attempt_id` changes on every delivery, so it can't tell you whether two events are about the same alert.

## Prerequisites

### Set up the Tines webhook

In your Tines story, add an inbound webhook action and configure it to authenticate with a secret:

1. Add a **Webhook** action to your story.
2. Set the action to require a secret, sent as a header (Secret access mode). Note the webhook URL and the secret. Remove any trailing secret segment from the URL. Lakewatch sends the secret in the `Authorization` header instead.

For details, see the [Tines webhook action documentation](https://www.tines.com/docs/actions/types/webhook/).

The webhook URL must be a publicly reachable HTTPS webhook action URL, such as `https://<tenant>.tines.com/webhook/<path>`. Tines custom domains are also supported. Lakewatch can't deliver to private networks, such as endpoints behind Private Service Connect.

### Store the webhook secret as a Unity Catalog secret

Store the Tines webhook secret in a [Unity Catalog secret](https://docs.databricks.com/gcp/en/security/secrets/unity-catalog-secrets.md) in the `__lakewatch` schema of your Lakewatch [environment](https://docs.databricks.com/gcp/en/lakewatch/admin/access-control/access-control-model.md#environments-and-folders)'s catalog. **Select secret** lists secrets from that schema, and **Create secret** creates one there. Lakewatch stores only the secret name, not the secret value.

You can create this secret ahead of time in `<catalog>.__lakewatch`, or create it while configuring Tines export with the **Create secret** button. Either way, creating a secret requires `USE CATALOG` on the catalog and either ownership of the `__lakewatch` schema or both `CREATE SECRET` and `USE SCHEMA` on it. For the steps, see [Create a secret](https://docs.databricks.com/gcp/en/security/secrets/unity-catalog-secrets.md#create-a-secret).

## Required permissions

To configure Tines export, you must have the following privileges:

* `READ SECRET` on the Unity Catalog secret that holds the webhook secret, or on its parent schema or catalog. Lakewatch checks read access when you add or change the secret reference or webhook URL. Changing unrelated settings doesn't repeat the check. To grant it, see [Grant access to secrets](https://docs.databricks.com/gcp/en/security/secrets/unity-catalog-secrets.md#manage-permissions-on-secrets).
* The `MANAGE` privilege on your Lakewatch environment's catalog. See [Configure settings](https://docs.databricks.com/gcp/en/lakewatch/admin/workspace-config.md).

To change the webhook secret, update the value of the same Unity Catalog secret. Lakewatch uses the new value on the next export, with no change to the settings. To use a different secret, click **Select secret** or **Create secret** in the settings and save.

## Set up Tines as an alert destination

Configure a Tines destination for alerts in the **Alerts** settings section.

1. On the Lakewatch sidebar, go to **Settings**, then open **Alerts**.
2. Under **Delivery**, set **Alert destination** to **Tines**.
3. In **Webhook URL**, enter the Tines webhook action URL without a trailing secret segment, for example `https://<tenant>.tines.com/webhook/<path>`.
4. For **Webhook secret**, click **Select secret** to select the secret that holds the webhook secret, or click **Create secret** to create one from the webhook secret without leaving the page. The field shows the secret's name, not its value.
5. (Optional) To also receive `lakewatch.alert.updated` events, select **Also send alert updates**.
6. Save your changes.

For the full alert settings reference, see [Configure settings](https://docs.databricks.com/gcp/en/lakewatch/admin/workspace-config.md).

To export [system errors](https://docs.databricks.com/gcp/en/lakewatch/system-health/system-errors.md) to Tines, follow the same steps under **Settings** > **System errors**, and set **System error destination** to **Tines**. To also receive updates, select **Also send system error updates**.

## Troubleshoot Tines export

* **Events don't reach your story**: The webhook URL isn't a Tines webhook action URL, or the story isn't active. Confirm the URL points to the webhook action and the story is live.
* **The configuration doesn't save**: You don't have permission to read the Unity Catalog secret, the secret is in a different catalog than your Lakewatch environment, or the webhook URL doesn't use HTTPS, points to a private network, or includes the webhook secret. Confirm your access to the secret, its catalog, and the webhook URL.
* **Your secret isn't listed in Select secret**: **Select secret** lists only the secrets you have access to in the `__lakewatch` schema of your environment's catalog. Store the secret there, or ask for `READ SECRET` on it.
* **Lakewatch reports a successful export but nothing happens in Tines**: A `2xx` response means Tines accepted the event, not that your story acted on it. Check your Tines story logic.
* **You rotated the webhook secret**: Update the Unity Catalog secret with the new value. No change to the export configuration is needed.
