1. Packages
  2. Databricks Provider
  3. API Docs
  4. Alert
Databricks v1.85.0 published on Friday, Feb 13, 2026 by Pulumi
databricks logo
Databricks v1.85.0 published on Friday, Feb 13, 2026 by Pulumi

    This resource allows you to manage Databricks SQL Alerts. It supersedes databricks.SqlAlert resource - see migration guide below for more details.

    This resource can only be used with a workspace-level provider!

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const sharedDir = new databricks.Directory("shared_dir", {path: "/Shared/Queries"});
    // This will be replaced with new databricks_query resource
    const _this = new databricks.Query("this", {
        warehouseId: example.id,
        displayName: "My Query Name",
        queryText: "SELECT 42 as value",
        parentPath: sharedDir.path,
    });
    const alert = new databricks.Alert("alert", {
        queryId: _this.id,
        displayName: "TF new alert",
        parentPath: sharedDir.path,
        condition: {
            op: "GREATER_THAN",
            operand: {
                column: {
                    name: "value",
                },
            },
            threshold: {
                value: {
                    doubleValue: 42,
                },
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    shared_dir = databricks.Directory("shared_dir", path="/Shared/Queries")
    # This will be replaced with new databricks_query resource
    this = databricks.Query("this",
        warehouse_id=example["id"],
        display_name="My Query Name",
        query_text="SELECT 42 as value",
        parent_path=shared_dir.path)
    alert = databricks.Alert("alert",
        query_id=this.id,
        display_name="TF new alert",
        parent_path=shared_dir.path,
        condition={
            "op": "GREATER_THAN",
            "operand": {
                "column": {
                    "name": "value",
                },
            },
            "threshold": {
                "value": {
                    "double_value": 42,
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		sharedDir, err := databricks.NewDirectory(ctx, "shared_dir", &databricks.DirectoryArgs{
    			Path: pulumi.String("/Shared/Queries"),
    		})
    		if err != nil {
    			return err
    		}
    		// This will be replaced with new databricks_query resource
    		this, err := databricks.NewQuery(ctx, "this", &databricks.QueryArgs{
    			WarehouseId: pulumi.Any(example.Id),
    			DisplayName: pulumi.String("My Query Name"),
    			QueryText:   pulumi.String("SELECT 42 as value"),
    			ParentPath:  sharedDir.Path,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = databricks.NewAlert(ctx, "alert", &databricks.AlertArgs{
    			QueryId:     this.ID(),
    			DisplayName: pulumi.String("TF new alert"),
    			ParentPath:  sharedDir.Path,
    			Condition: &databricks.AlertConditionArgs{
    				Op: pulumi.String("GREATER_THAN"),
    				Operand: &databricks.AlertConditionOperandArgs{
    					Column: &databricks.AlertConditionOperandColumnArgs{
    						Name: pulumi.String("value"),
    					},
    				},
    				Threshold: &databricks.AlertConditionThresholdArgs{
    					Value: &databricks.AlertConditionThresholdValueArgs{
    						DoubleValue: pulumi.Float64(42),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var sharedDir = new Databricks.Directory("shared_dir", new()
        {
            Path = "/Shared/Queries",
        });
    
        // This will be replaced with new databricks_query resource
        var @this = new Databricks.Query("this", new()
        {
            WarehouseId = example.Id,
            DisplayName = "My Query Name",
            QueryText = "SELECT 42 as value",
            ParentPath = sharedDir.Path,
        });
    
        var alert = new Databricks.Alert("alert", new()
        {
            QueryId = @this.Id,
            DisplayName = "TF new alert",
            ParentPath = sharedDir.Path,
            Condition = new Databricks.Inputs.AlertConditionArgs
            {
                Op = "GREATER_THAN",
                Operand = new Databricks.Inputs.AlertConditionOperandArgs
                {
                    Column = new Databricks.Inputs.AlertConditionOperandColumnArgs
                    {
                        Name = "value",
                    },
                },
                Threshold = new Databricks.Inputs.AlertConditionThresholdArgs
                {
                    Value = new Databricks.Inputs.AlertConditionThresholdValueArgs
                    {
                        DoubleValue = 42,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.Directory;
    import com.pulumi.databricks.DirectoryArgs;
    import com.pulumi.databricks.Query;
    import com.pulumi.databricks.QueryArgs;
    import com.pulumi.databricks.Alert;
    import com.pulumi.databricks.AlertArgs;
    import com.pulumi.databricks.inputs.AlertConditionArgs;
    import com.pulumi.databricks.inputs.AlertConditionOperandArgs;
    import com.pulumi.databricks.inputs.AlertConditionOperandColumnArgs;
    import com.pulumi.databricks.inputs.AlertConditionThresholdArgs;
    import com.pulumi.databricks.inputs.AlertConditionThresholdValueArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var sharedDir = new Directory("sharedDir", DirectoryArgs.builder()
                .path("/Shared/Queries")
                .build());
    
            // This will be replaced with new databricks_query resource
            var this_ = new Query("this", QueryArgs.builder()
                .warehouseId(example.id())
                .displayName("My Query Name")
                .queryText("SELECT 42 as value")
                .parentPath(sharedDir.path())
                .build());
    
            var alert = new Alert("alert", AlertArgs.builder()
                .queryId(this_.id())
                .displayName("TF new alert")
                .parentPath(sharedDir.path())
                .condition(AlertConditionArgs.builder()
                    .op("GREATER_THAN")
                    .operand(AlertConditionOperandArgs.builder()
                        .column(AlertConditionOperandColumnArgs.builder()
                            .name("value")
                            .build())
                        .build())
                    .threshold(AlertConditionThresholdArgs.builder()
                        .value(AlertConditionThresholdValueArgs.builder()
                            .doubleValue(42.0)
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      sharedDir:
        type: databricks:Directory
        name: shared_dir
        properties:
          path: /Shared/Queries
      # This will be replaced with new databricks_query resource
      this:
        type: databricks:Query
        properties:
          warehouseId: ${example.id}
          displayName: My Query Name
          queryText: SELECT 42 as value
          parentPath: ${sharedDir.path}
      alert:
        type: databricks:Alert
        properties:
          queryId: ${this.id}
          displayName: TF new alert
          parentPath: ${sharedDir.path}
          condition:
            op: GREATER_THAN
            operand:
              column:
                name: value
            threshold:
              value:
                doubleValue: 42
    

    Migrating from databricks.SqlAlert resource

    Under the hood, the new resource uses the same data as the databricks.SqlAlert, but is exposed via a different API. This means that we can migrate existing alerts without recreating them.

    It’s also recommended to migrate to the databricks.Query resource - see databricks.Query for more details.

    This operation is done in few steps:

    • Record the ID of existing databricks.SqlAlert, for example, by executing the terraform state show databricks_sql_alert.alert command.
    • Create the code for the new implementation by performing the following changes:
      • the name attribute is now named display_name
      • the parent (if exists) is renamed to parent_path attribute and should be converted from folders/object_id to the actual path.
      • the options block is converted into the condition block with the following changes:
        • the value of the op attribute should be converted from a mathematical operator into a string name, like, > is becoming GREATER_THAN, == is becoming EQUAL, etc.
        • the column attribute is becoming the operand block
        • the value attribute is becoming the threshold block. Please note that the old implementation always used strings so you may have changes after import if you use double_value or bool_value inside the block.
      • the rearm attribute is renamed to seconds_to_retrigger.

    For example, if we have the original databricks.SqlAlert defined as:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const alert = new databricks.SqlAlert("alert", {
        queryId: _this.id,
        name: "My Alert",
        parent: `folders/${sharedDir.objectId}`,
        options: {
            column: "value",
            op: ">",
            value: "42",
            muted: false,
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    alert = databricks.SqlAlert("alert",
        query_id=this["id"],
        name="My Alert",
        parent=f"folders/{shared_dir['objectId']}",
        options={
            "column": "value",
            "op": ">",
            "value": "42",
            "muted": False,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewSqlAlert(ctx, "alert", &databricks.SqlAlertArgs{
    			QueryId: pulumi.Any(this.Id),
    			Name:    pulumi.String("My Alert"),
    			Parent:  pulumi.Sprintf("folders/%v", sharedDir.ObjectId),
    			Options: &databricks.SqlAlertOptionsArgs{
    				Column: pulumi.String("value"),
    				Op:     pulumi.String(">"),
    				Value:  pulumi.String("42"),
    				Muted:  pulumi.Bool(false),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var alert = new Databricks.SqlAlert("alert", new()
        {
            QueryId = @this.Id,
            Name = "My Alert",
            Parent = $"folders/{sharedDir.ObjectId}",
            Options = new Databricks.Inputs.SqlAlertOptionsArgs
            {
                Column = "value",
                Op = ">",
                Value = "42",
                Muted = false,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.SqlAlert;
    import com.pulumi.databricks.SqlAlertArgs;
    import com.pulumi.databricks.inputs.SqlAlertOptionsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alert = new SqlAlert("alert", SqlAlertArgs.builder()
                .queryId(this_.id())
                .name("My Alert")
                .parent(String.format("folders/%s", sharedDir.objectId()))
                .options(SqlAlertOptionsArgs.builder()
                    .column("value")
                    .op(">")
                    .value("42")
                    .muted(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      alert:
        type: databricks:SqlAlert
        properties:
          queryId: ${this.id}
          name: My Alert
          parent: folders/${sharedDir.objectId}
          options:
            column: value
            op: '>'
            value: '42'
            muted: false
    

    we’ll have a new resource defined as:

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const alert = new databricks.Alert("alert", {
        queryId: _this.id,
        displayName: "My Alert",
        parentPath: sharedDir.path,
        condition: {
            op: "GREATER_THAN",
            operand: {
                column: {
                    name: "value",
                },
            },
            threshold: {
                value: {
                    doubleValue: 42,
                },
            },
        },
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    alert = databricks.Alert("alert",
        query_id=this["id"],
        display_name="My Alert",
        parent_path=shared_dir["path"],
        condition={
            "op": "GREATER_THAN",
            "operand": {
                "column": {
                    "name": "value",
                },
            },
            "threshold": {
                "value": {
                    "double_value": 42,
                },
            },
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewAlert(ctx, "alert", &databricks.AlertArgs{
    			QueryId:     pulumi.Any(this.Id),
    			DisplayName: pulumi.String("My Alert"),
    			ParentPath:  pulumi.Any(sharedDir.Path),
    			Condition: &databricks.AlertConditionArgs{
    				Op: pulumi.String("GREATER_THAN"),
    				Operand: &databricks.AlertConditionOperandArgs{
    					Column: &databricks.AlertConditionOperandColumnArgs{
    						Name: pulumi.String("value"),
    					},
    				},
    				Threshold: &databricks.AlertConditionThresholdArgs{
    					Value: &databricks.AlertConditionThresholdValueArgs{
    						DoubleValue: pulumi.Float64(42),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var alert = new Databricks.Alert("alert", new()
        {
            QueryId = @this.Id,
            DisplayName = "My Alert",
            ParentPath = sharedDir.Path,
            Condition = new Databricks.Inputs.AlertConditionArgs
            {
                Op = "GREATER_THAN",
                Operand = new Databricks.Inputs.AlertConditionOperandArgs
                {
                    Column = new Databricks.Inputs.AlertConditionOperandColumnArgs
                    {
                        Name = "value",
                    },
                },
                Threshold = new Databricks.Inputs.AlertConditionThresholdArgs
                {
                    Value = new Databricks.Inputs.AlertConditionThresholdValueArgs
                    {
                        DoubleValue = 42,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.Alert;
    import com.pulumi.databricks.AlertArgs;
    import com.pulumi.databricks.inputs.AlertConditionArgs;
    import com.pulumi.databricks.inputs.AlertConditionOperandArgs;
    import com.pulumi.databricks.inputs.AlertConditionOperandColumnArgs;
    import com.pulumi.databricks.inputs.AlertConditionThresholdArgs;
    import com.pulumi.databricks.inputs.AlertConditionThresholdValueArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alert = new Alert("alert", AlertArgs.builder()
                .queryId(this_.id())
                .displayName("My Alert")
                .parentPath(sharedDir.path())
                .condition(AlertConditionArgs.builder()
                    .op("GREATER_THAN")
                    .operand(AlertConditionOperandArgs.builder()
                        .column(AlertConditionOperandColumnArgs.builder()
                            .name("value")
                            .build())
                        .build())
                    .threshold(AlertConditionThresholdArgs.builder()
                        .value(AlertConditionThresholdValueArgs.builder()
                            .doubleValue(42.0)
                            .build())
                        .build())
                    .build())
                .build());
    
        }
    }
    
    resources:
      alert:
        type: databricks:Alert
        properties:
          queryId: ${this.id}
          displayName: My Alert
          parentPath: ${sharedDir.path}
          condition:
            op: GREATER_THAN
            operand:
              column:
                name: value
            threshold:
              value:
                doubleValue: 42
    

    Access Control

    databricks.Permissions can control which groups or individual users can Manage, Edit, Run or View individual alerts.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const alertUsage = new databricks.Permissions("alert_usage", {
        sqlAlertId: alert.id,
        accessControls: [{
            groupName: "users",
            permissionLevel: "CAN_RUN",
        }],
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    alert_usage = databricks.Permissions("alert_usage",
        sql_alert_id=alert["id"],
        access_controls=[{
            "group_name": "users",
            "permission_level": "CAN_RUN",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewPermissions(ctx, "alert_usage", &databricks.PermissionsArgs{
    			SqlAlertId: pulumi.Any(alert.Id),
    			AccessControls: databricks.PermissionsAccessControlArray{
    				&databricks.PermissionsAccessControlArgs{
    					GroupName:       pulumi.String("users"),
    					PermissionLevel: pulumi.String("CAN_RUN"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var alertUsage = new Databricks.Permissions("alert_usage", new()
        {
            SqlAlertId = alert.Id,
            AccessControls = new[]
            {
                new Databricks.Inputs.PermissionsAccessControlArgs
                {
                    GroupName = "users",
                    PermissionLevel = "CAN_RUN",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.Permissions;
    import com.pulumi.databricks.PermissionsArgs;
    import com.pulumi.databricks.inputs.PermissionsAccessControlArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertUsage = new Permissions("alertUsage", PermissionsArgs.builder()
                .sqlAlertId(alert.id())
                .accessControls(PermissionsAccessControlArgs.builder()
                    .groupName("users")
                    .permissionLevel("CAN_RUN")
                    .build())
                .build());
    
        }
    }
    
    resources:
      alertUsage:
        type: databricks:Permissions
        name: alert_usage
        properties:
          sqlAlertId: ${alert.id}
          accessControls:
            - groupName: users
              permissionLevel: CAN_RUN
    

    Access Control

    databricks.Permissions can control which groups or individual users can Manage, Edit, Run or View individual alerts.

    import * as pulumi from "@pulumi/pulumi";
    import * as databricks from "@pulumi/databricks";
    
    const alertUsage = new databricks.Permissions("alert_usage", {
        sqlAlertId: alert.id,
        accessControls: [{
            groupName: "users",
            permissionLevel: "CAN_RUN",
        }],
    });
    
    import pulumi
    import pulumi_databricks as databricks
    
    alert_usage = databricks.Permissions("alert_usage",
        sql_alert_id=alert["id"],
        access_controls=[{
            "group_name": "users",
            "permission_level": "CAN_RUN",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-databricks/sdk/go/databricks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := databricks.NewPermissions(ctx, "alert_usage", &databricks.PermissionsArgs{
    			SqlAlertId: pulumi.Any(alert.Id),
    			AccessControls: databricks.PermissionsAccessControlArray{
    				&databricks.PermissionsAccessControlArgs{
    					GroupName:       pulumi.String("users"),
    					PermissionLevel: pulumi.String("CAN_RUN"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Databricks = Pulumi.Databricks;
    
    return await Deployment.RunAsync(() => 
    {
        var alertUsage = new Databricks.Permissions("alert_usage", new()
        {
            SqlAlertId = alert.Id,
            AccessControls = new[]
            {
                new Databricks.Inputs.PermissionsAccessControlArgs
                {
                    GroupName = "users",
                    PermissionLevel = "CAN_RUN",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.databricks.Permissions;
    import com.pulumi.databricks.PermissionsArgs;
    import com.pulumi.databricks.inputs.PermissionsAccessControlArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var alertUsage = new Permissions("alertUsage", PermissionsArgs.builder()
                .sqlAlertId(alert.id())
                .accessControls(PermissionsAccessControlArgs.builder()
                    .groupName("users")
                    .permissionLevel("CAN_RUN")
                    .build())
                .build());
    
        }
    }
    
    resources:
      alertUsage:
        type: databricks:Permissions
        name: alert_usage
        properties:
          sqlAlertId: ${alert.id}
          accessControls:
            - groupName: users
              permissionLevel: CAN_RUN
    

    The following resources are often used in the same context:

    * databricks.Query to manage Databricks SQL Queries. * databricks.SqlEndpoint to manage Databricks SQL Endpoints. * databricks.Directory to manage directories in Databricks Workpace.

    Create Alert Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);
    @overload
    def Alert(resource_name: str,
              args: AlertArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Alert(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              condition: Optional[AlertConditionArgs] = None,
              display_name: Optional[str] = None,
              query_id: Optional[str] = None,
              custom_body: Optional[str] = None,
              custom_subject: Optional[str] = None,
              notify_on_ok: Optional[bool] = None,
              owner_user_name: Optional[str] = None,
              parent_path: Optional[str] = None,
              provider_config: Optional[AlertProviderConfigArgs] = None,
              seconds_to_retrigger: Optional[int] = None)
    func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
    public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)
    public Alert(String name, AlertArgs args)
    public Alert(String name, AlertArgs args, CustomResourceOptions options)
    
    type: databricks:Alert
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var alertResource = new Databricks.Alert("alertResource", new()
    {
        Condition = new Databricks.Inputs.AlertConditionArgs
        {
            Op = "string",
            Operand = new Databricks.Inputs.AlertConditionOperandArgs
            {
                Column = new Databricks.Inputs.AlertConditionOperandColumnArgs
                {
                    Name = "string",
                },
            },
            EmptyResultState = "string",
            Threshold = new Databricks.Inputs.AlertConditionThresholdArgs
            {
                Value = new Databricks.Inputs.AlertConditionThresholdValueArgs
                {
                    BoolValue = false,
                    DoubleValue = 0,
                    StringValue = "string",
                },
            },
        },
        DisplayName = "string",
        QueryId = "string",
        CustomBody = "string",
        CustomSubject = "string",
        NotifyOnOk = false,
        OwnerUserName = "string",
        ParentPath = "string",
        ProviderConfig = new Databricks.Inputs.AlertProviderConfigArgs
        {
            WorkspaceId = "string",
        },
        SecondsToRetrigger = 0,
    });
    
    example, err := databricks.NewAlert(ctx, "alertResource", &databricks.AlertArgs{
    	Condition: &databricks.AlertConditionArgs{
    		Op: pulumi.String("string"),
    		Operand: &databricks.AlertConditionOperandArgs{
    			Column: &databricks.AlertConditionOperandColumnArgs{
    				Name: pulumi.String("string"),
    			},
    		},
    		EmptyResultState: pulumi.String("string"),
    		Threshold: &databricks.AlertConditionThresholdArgs{
    			Value: &databricks.AlertConditionThresholdValueArgs{
    				BoolValue:   pulumi.Bool(false),
    				DoubleValue: pulumi.Float64(0),
    				StringValue: pulumi.String("string"),
    			},
    		},
    	},
    	DisplayName:   pulumi.String("string"),
    	QueryId:       pulumi.String("string"),
    	CustomBody:    pulumi.String("string"),
    	CustomSubject: pulumi.String("string"),
    	NotifyOnOk:    pulumi.Bool(false),
    	OwnerUserName: pulumi.String("string"),
    	ParentPath:    pulumi.String("string"),
    	ProviderConfig: &databricks.AlertProviderConfigArgs{
    		WorkspaceId: pulumi.String("string"),
    	},
    	SecondsToRetrigger: pulumi.Int(0),
    })
    
    var alertResource = new Alert("alertResource", AlertArgs.builder()
        .condition(AlertConditionArgs.builder()
            .op("string")
            .operand(AlertConditionOperandArgs.builder()
                .column(AlertConditionOperandColumnArgs.builder()
                    .name("string")
                    .build())
                .build())
            .emptyResultState("string")
            .threshold(AlertConditionThresholdArgs.builder()
                .value(AlertConditionThresholdValueArgs.builder()
                    .boolValue(false)
                    .doubleValue(0.0)
                    .stringValue("string")
                    .build())
                .build())
            .build())
        .displayName("string")
        .queryId("string")
        .customBody("string")
        .customSubject("string")
        .notifyOnOk(false)
        .ownerUserName("string")
        .parentPath("string")
        .providerConfig(AlertProviderConfigArgs.builder()
            .workspaceId("string")
            .build())
        .secondsToRetrigger(0)
        .build());
    
    alert_resource = databricks.Alert("alertResource",
        condition={
            "op": "string",
            "operand": {
                "column": {
                    "name": "string",
                },
            },
            "empty_result_state": "string",
            "threshold": {
                "value": {
                    "bool_value": False,
                    "double_value": 0,
                    "string_value": "string",
                },
            },
        },
        display_name="string",
        query_id="string",
        custom_body="string",
        custom_subject="string",
        notify_on_ok=False,
        owner_user_name="string",
        parent_path="string",
        provider_config={
            "workspace_id": "string",
        },
        seconds_to_retrigger=0)
    
    const alertResource = new databricks.Alert("alertResource", {
        condition: {
            op: "string",
            operand: {
                column: {
                    name: "string",
                },
            },
            emptyResultState: "string",
            threshold: {
                value: {
                    boolValue: false,
                    doubleValue: 0,
                    stringValue: "string",
                },
            },
        },
        displayName: "string",
        queryId: "string",
        customBody: "string",
        customSubject: "string",
        notifyOnOk: false,
        ownerUserName: "string",
        parentPath: "string",
        providerConfig: {
            workspaceId: "string",
        },
        secondsToRetrigger: 0,
    });
    
    type: databricks:Alert
    properties:
        condition:
            emptyResultState: string
            op: string
            operand:
                column:
                    name: string
            threshold:
                value:
                    boolValue: false
                    doubleValue: 0
                    stringValue: string
        customBody: string
        customSubject: string
        displayName: string
        notifyOnOk: false
        ownerUserName: string
        parentPath: string
        providerConfig:
            workspaceId: string
        queryId: string
        secondsToRetrigger: 0
    

    Alert Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Alert resource accepts the following input properties:

    Condition AlertCondition
    Trigger conditions of the alert. Block consists of the following attributes:
    DisplayName string
    Name of the alert.
    QueryId string
    ID of the query evaluated by the alert.
    CustomBody string
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    CustomSubject string
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    NotifyOnOk bool
    Whether to notify alert subscribers when alert returns back to normal.
    OwnerUserName string
    Alert owner's username.
    ParentPath string
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    ProviderConfig AlertProviderConfig
    Configure the provider for management through account provider. This block consists of the following fields:
    SecondsToRetrigger int
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    Condition AlertConditionArgs
    Trigger conditions of the alert. Block consists of the following attributes:
    DisplayName string
    Name of the alert.
    QueryId string
    ID of the query evaluated by the alert.
    CustomBody string
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    CustomSubject string
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    NotifyOnOk bool
    Whether to notify alert subscribers when alert returns back to normal.
    OwnerUserName string
    Alert owner's username.
    ParentPath string
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    ProviderConfig AlertProviderConfigArgs
    Configure the provider for management through account provider. This block consists of the following fields:
    SecondsToRetrigger int
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    condition AlertCondition
    Trigger conditions of the alert. Block consists of the following attributes:
    displayName String
    Name of the alert.
    queryId String
    ID of the query evaluated by the alert.
    customBody String
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    customSubject String
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    notifyOnOk Boolean
    Whether to notify alert subscribers when alert returns back to normal.
    ownerUserName String
    Alert owner's username.
    parentPath String
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    providerConfig AlertProviderConfig
    Configure the provider for management through account provider. This block consists of the following fields:
    secondsToRetrigger Integer
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    condition AlertCondition
    Trigger conditions of the alert. Block consists of the following attributes:
    displayName string
    Name of the alert.
    queryId string
    ID of the query evaluated by the alert.
    customBody string
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    customSubject string
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    notifyOnOk boolean
    Whether to notify alert subscribers when alert returns back to normal.
    ownerUserName string
    Alert owner's username.
    parentPath string
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    providerConfig AlertProviderConfig
    Configure the provider for management through account provider. This block consists of the following fields:
    secondsToRetrigger number
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    condition AlertConditionArgs
    Trigger conditions of the alert. Block consists of the following attributes:
    display_name str
    Name of the alert.
    query_id str
    ID of the query evaluated by the alert.
    custom_body str
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    custom_subject str
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    notify_on_ok bool
    Whether to notify alert subscribers when alert returns back to normal.
    owner_user_name str
    Alert owner's username.
    parent_path str
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    provider_config AlertProviderConfigArgs
    Configure the provider for management through account provider. This block consists of the following fields:
    seconds_to_retrigger int
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    condition Property Map
    Trigger conditions of the alert. Block consists of the following attributes:
    displayName String
    Name of the alert.
    queryId String
    ID of the query evaluated by the alert.
    customBody String
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    customSubject String
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    notifyOnOk Boolean
    Whether to notify alert subscribers when alert returns back to normal.
    ownerUserName String
    Alert owner's username.
    parentPath String
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    providerConfig Property Map
    Configure the provider for management through account provider. This block consists of the following fields:
    secondsToRetrigger Number
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:

    CreateTime string
    The timestamp string indicating when the alert was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    State string
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    TriggerTime string
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    UpdateTime string
    The timestamp string indicating when the alert was updated.
    CreateTime string
    The timestamp string indicating when the alert was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleState string
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    State string
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    TriggerTime string
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    UpdateTime string
    The timestamp string indicating when the alert was updated.
    createTime String
    The timestamp string indicating when the alert was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    state String
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    triggerTime String
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    updateTime String
    The timestamp string indicating when the alert was updated.
    createTime string
    The timestamp string indicating when the alert was created.
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleState string
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    state string
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    triggerTime string
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    updateTime string
    The timestamp string indicating when the alert was updated.
    create_time str
    The timestamp string indicating when the alert was created.
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state str
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    state str
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    trigger_time str
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    update_time str
    The timestamp string indicating when the alert was updated.
    createTime String
    The timestamp string indicating when the alert was created.
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleState String
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    state String
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    triggerTime String
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    updateTime String
    The timestamp string indicating when the alert was updated.

    Look up Existing Alert Resource

    Get an existing Alert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlertState, opts?: CustomResourceOptions): Alert
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition: Optional[AlertConditionArgs] = None,
            create_time: Optional[str] = None,
            custom_body: Optional[str] = None,
            custom_subject: Optional[str] = None,
            display_name: Optional[str] = None,
            lifecycle_state: Optional[str] = None,
            notify_on_ok: Optional[bool] = None,
            owner_user_name: Optional[str] = None,
            parent_path: Optional[str] = None,
            provider_config: Optional[AlertProviderConfigArgs] = None,
            query_id: Optional[str] = None,
            seconds_to_retrigger: Optional[int] = None,
            state: Optional[str] = None,
            trigger_time: Optional[str] = None,
            update_time: Optional[str] = None) -> Alert
    func GetAlert(ctx *Context, name string, id IDInput, state *AlertState, opts ...ResourceOption) (*Alert, error)
    public static Alert Get(string name, Input<string> id, AlertState? state, CustomResourceOptions? opts = null)
    public static Alert get(String name, Output<String> id, AlertState state, CustomResourceOptions options)
    resources:  _:    type: databricks:Alert    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Condition AlertCondition
    Trigger conditions of the alert. Block consists of the following attributes:
    CreateTime string
    The timestamp string indicating when the alert was created.
    CustomBody string
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    CustomSubject string
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    DisplayName string
    Name of the alert.
    LifecycleState string
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    NotifyOnOk bool
    Whether to notify alert subscribers when alert returns back to normal.
    OwnerUserName string
    Alert owner's username.
    ParentPath string
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    ProviderConfig AlertProviderConfig
    Configure the provider for management through account provider. This block consists of the following fields:
    QueryId string
    ID of the query evaluated by the alert.
    SecondsToRetrigger int
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    State string
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    TriggerTime string
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    UpdateTime string
    The timestamp string indicating when the alert was updated.
    Condition AlertConditionArgs
    Trigger conditions of the alert. Block consists of the following attributes:
    CreateTime string
    The timestamp string indicating when the alert was created.
    CustomBody string
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    CustomSubject string
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    DisplayName string
    Name of the alert.
    LifecycleState string
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    NotifyOnOk bool
    Whether to notify alert subscribers when alert returns back to normal.
    OwnerUserName string
    Alert owner's username.
    ParentPath string
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    ProviderConfig AlertProviderConfigArgs
    Configure the provider for management through account provider. This block consists of the following fields:
    QueryId string
    ID of the query evaluated by the alert.
    SecondsToRetrigger int
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    State string
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    TriggerTime string
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    UpdateTime string
    The timestamp string indicating when the alert was updated.
    condition AlertCondition
    Trigger conditions of the alert. Block consists of the following attributes:
    createTime String
    The timestamp string indicating when the alert was created.
    customBody String
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    customSubject String
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    displayName String
    Name of the alert.
    lifecycleState String
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    notifyOnOk Boolean
    Whether to notify alert subscribers when alert returns back to normal.
    ownerUserName String
    Alert owner's username.
    parentPath String
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    providerConfig AlertProviderConfig
    Configure the provider for management through account provider. This block consists of the following fields:
    queryId String
    ID of the query evaluated by the alert.
    secondsToRetrigger Integer
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    state String
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    triggerTime String
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    updateTime String
    The timestamp string indicating when the alert was updated.
    condition AlertCondition
    Trigger conditions of the alert. Block consists of the following attributes:
    createTime string
    The timestamp string indicating when the alert was created.
    customBody string
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    customSubject string
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    displayName string
    Name of the alert.
    lifecycleState string
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    notifyOnOk boolean
    Whether to notify alert subscribers when alert returns back to normal.
    ownerUserName string
    Alert owner's username.
    parentPath string
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    providerConfig AlertProviderConfig
    Configure the provider for management through account provider. This block consists of the following fields:
    queryId string
    ID of the query evaluated by the alert.
    secondsToRetrigger number
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    state string
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    triggerTime string
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    updateTime string
    The timestamp string indicating when the alert was updated.
    condition AlertConditionArgs
    Trigger conditions of the alert. Block consists of the following attributes:
    create_time str
    The timestamp string indicating when the alert was created.
    custom_body str
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    custom_subject str
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    display_name str
    Name of the alert.
    lifecycle_state str
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    notify_on_ok bool
    Whether to notify alert subscribers when alert returns back to normal.
    owner_user_name str
    Alert owner's username.
    parent_path str
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    provider_config AlertProviderConfigArgs
    Configure the provider for management through account provider. This block consists of the following fields:
    query_id str
    ID of the query evaluated by the alert.
    seconds_to_retrigger int
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    state str
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    trigger_time str
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    update_time str
    The timestamp string indicating when the alert was updated.
    condition Property Map
    Trigger conditions of the alert. Block consists of the following attributes:
    createTime String
    The timestamp string indicating when the alert was created.
    customBody String
    Custom body of alert notification, if it exists. See Alerts API reference for custom templating instructions.
    customSubject String
    Custom subject of alert notification, if it exists. This includes email subject, Slack notification header, etc. See Alerts API reference for custom templating instructions.
    displayName String
    Name of the alert.
    lifecycleState String
    The workspace state of the alert. Used for tracking trashed status. (Possible values are ACTIVE or TRASHED).
    notifyOnOk Boolean
    Whether to notify alert subscribers when alert returns back to normal.
    ownerUserName String
    Alert owner's username.
    parentPath String
    The path to a workspace folder containing the alert. The default is the user's home folder. If changed, the alert will be recreated.
    providerConfig Property Map
    Configure the provider for management through account provider. This block consists of the following fields:
    queryId String
    ID of the query evaluated by the alert.
    secondsToRetrigger Number
    Number of seconds an alert must wait after being triggered to rearm itself. After rearming, it can be triggered again. If 0 or not specified, the alert will not be triggered again.
    state String
    Current state of the alert's trigger status (UNKNOWN, OK, TRIGGERED). This field is set to UNKNOWN if the alert has not yet been evaluated or ran into an error during the last evaluation.
    triggerTime String
    The timestamp string when the alert was last triggered if the alert has been triggered before.
    updateTime String
    The timestamp string indicating when the alert was updated.

    Supporting Types

    AlertCondition, AlertConditionArgs

    Op string
    Operator used for comparison in alert evaluation. (Enum: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, IS_NULL)
    Operand AlertConditionOperand
    Name of the column from the query result to use for comparison in alert evaluation:
    EmptyResultState string
    Alert state if the result is empty (UNKNOWN, OK, TRIGGERED)
    Threshold AlertConditionThreshold
    Threshold value used for comparison in alert evaluation:
    Op string
    Operator used for comparison in alert evaluation. (Enum: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, IS_NULL)
    Operand AlertConditionOperand
    Name of the column from the query result to use for comparison in alert evaluation:
    EmptyResultState string
    Alert state if the result is empty (UNKNOWN, OK, TRIGGERED)
    Threshold AlertConditionThreshold
    Threshold value used for comparison in alert evaluation:
    op String
    Operator used for comparison in alert evaluation. (Enum: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, IS_NULL)
    operand AlertConditionOperand
    Name of the column from the query result to use for comparison in alert evaluation:
    emptyResultState String
    Alert state if the result is empty (UNKNOWN, OK, TRIGGERED)
    threshold AlertConditionThreshold
    Threshold value used for comparison in alert evaluation:
    op string
    Operator used for comparison in alert evaluation. (Enum: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, IS_NULL)
    operand AlertConditionOperand
    Name of the column from the query result to use for comparison in alert evaluation:
    emptyResultState string
    Alert state if the result is empty (UNKNOWN, OK, TRIGGERED)
    threshold AlertConditionThreshold
    Threshold value used for comparison in alert evaluation:
    op str
    Operator used for comparison in alert evaluation. (Enum: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, IS_NULL)
    operand AlertConditionOperand
    Name of the column from the query result to use for comparison in alert evaluation:
    empty_result_state str
    Alert state if the result is empty (UNKNOWN, OK, TRIGGERED)
    threshold AlertConditionThreshold
    Threshold value used for comparison in alert evaluation:
    op String
    Operator used for comparison in alert evaluation. (Enum: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, EQUAL, NOT_EQUAL, IS_NULL)
    operand Property Map
    Name of the column from the query result to use for comparison in alert evaluation:
    emptyResultState String
    Alert state if the result is empty (UNKNOWN, OK, TRIGGERED)
    threshold Property Map
    Threshold value used for comparison in alert evaluation:

    AlertConditionOperand, AlertConditionOperandArgs

    Column AlertConditionOperandColumn
    Block describing the column from the query result to use for comparison in alert evaluation:
    Column AlertConditionOperandColumn
    Block describing the column from the query result to use for comparison in alert evaluation:
    column AlertConditionOperandColumn
    Block describing the column from the query result to use for comparison in alert evaluation:
    column AlertConditionOperandColumn
    Block describing the column from the query result to use for comparison in alert evaluation:
    column AlertConditionOperandColumn
    Block describing the column from the query result to use for comparison in alert evaluation:
    column Property Map
    Block describing the column from the query result to use for comparison in alert evaluation:

    AlertConditionOperandColumn, AlertConditionOperandColumnArgs

    Name string
    Name of the column.
    Name string
    Name of the column.
    name String
    Name of the column.
    name string
    Name of the column.
    name str
    Name of the column.
    name String
    Name of the column.

    AlertConditionThreshold, AlertConditionThresholdArgs

    Value AlertConditionThresholdValue
    actual value used in comparison (one of the attributes is required):
    Value AlertConditionThresholdValue
    actual value used in comparison (one of the attributes is required):
    value AlertConditionThresholdValue
    actual value used in comparison (one of the attributes is required):
    value AlertConditionThresholdValue
    actual value used in comparison (one of the attributes is required):
    value AlertConditionThresholdValue
    actual value used in comparison (one of the attributes is required):
    value Property Map
    actual value used in comparison (one of the attributes is required):

    AlertConditionThresholdValue, AlertConditionThresholdValueArgs

    BoolValue bool
    boolean value (true or false) to compare against boolean results.
    DoubleValue double
    double value to compare against integer and double results.
    StringValue string
    string value to compare against string results.
    BoolValue bool
    boolean value (true or false) to compare against boolean results.
    DoubleValue float64
    double value to compare against integer and double results.
    StringValue string
    string value to compare against string results.
    boolValue Boolean
    boolean value (true or false) to compare against boolean results.
    doubleValue Double
    double value to compare against integer and double results.
    stringValue String
    string value to compare against string results.
    boolValue boolean
    boolean value (true or false) to compare against boolean results.
    doubleValue number
    double value to compare against integer and double results.
    stringValue string
    string value to compare against string results.
    bool_value bool
    boolean value (true or false) to compare against boolean results.
    double_value float
    double value to compare against integer and double results.
    string_value str
    string value to compare against string results.
    boolValue Boolean
    boolean value (true or false) to compare against boolean results.
    doubleValue Number
    double value to compare against integer and double results.
    stringValue String
    string value to compare against string results.

    AlertProviderConfig, AlertProviderConfigArgs

    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    WorkspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId string
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspace_id str
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.
    workspaceId String
    Workspace ID which the resource belongs to. This workspace must be part of the account which the provider is configured with.

    Package Details

    Repository
    databricks pulumi/pulumi-databricks
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the databricks Terraform Provider.
    databricks logo
    Databricks v1.85.0 published on Friday, Feb 13, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate