databricks_sql_alert Resource

This resource allows you to manage Databricks SQL Alerts.

Note: To manage SQLA resources you must have databricks_sql_access on your databricks_group or databricks_user.

Example Usage

resource "databricks_directory" "shared_dir" {
  path = "/Shared/Queries"
}

resource "databricks_sql_query" "this" {
  data_source_id = databricks_sql_endpoint.example.data_source_id
  name           = "My Query Name"
  query          = "SELECT 1 AS p1, 2 as p2"
  parent         = "folders/${databricks_directory.shared_dir.object_id}"
}

resource "databricks_sql_alert" "alert" {
  query_id = databricks_sql_query.this.id
  name     = "My Alert"
  parent   = "folders/${databricks_directory.shared_dir.object_id}"
  rearm    = 1
  options {
    column = "p1"
    op     = "=="
    value  = "2"
    muted  = false
  }
}

Argument Reference

The following arguments are available:

Attribute Reference

In addition to all arguments above, the following attributes are exported:

The following resources are often used in the same context: