databricks.AlertV2
Explore with Pulumi AI
Create AlertV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertV2(name: string, args?: AlertV2Args, opts?: CustomResourceOptions);
@overload
def AlertV2(resource_name: str,
args: Optional[AlertV2Args] = None,
opts: Optional[ResourceOptions] = None)
@overload
def AlertV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
custom_description: Optional[str] = None,
custom_summary: Optional[str] = None,
display_name: Optional[str] = None,
evaluation: Optional[AlertV2EvaluationArgs] = None,
parent_path: Optional[str] = None,
query_text: Optional[str] = None,
schedule: Optional[AlertV2ScheduleArgs] = None,
warehouse_id: Optional[str] = None)
func NewAlertV2(ctx *Context, name string, args *AlertV2Args, opts ...ResourceOption) (*AlertV2, error)
public AlertV2(string name, AlertV2Args? args = null, CustomResourceOptions? opts = null)
public AlertV2(String name, AlertV2Args args)
public AlertV2(String name, AlertV2Args args, CustomResourceOptions options)
type: databricks:AlertV2
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 AlertV2Args
- 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 AlertV2Args
- 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 AlertV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertV2Args
- 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 alertV2Resource = new Databricks.AlertV2("alertV2Resource", new()
{
CustomDescription = "string",
CustomSummary = "string",
DisplayName = "string",
Evaluation = new Databricks.Inputs.AlertV2EvaluationArgs
{
ComparisonOperator = "string",
EmptyResultState = "string",
LastEvaluatedAt = "string",
Notification = new Databricks.Inputs.AlertV2EvaluationNotificationArgs
{
NotifyOnOk = false,
RetriggerSeconds = 0,
Subscriptions = new[]
{
new Databricks.Inputs.AlertV2EvaluationNotificationSubscriptionArgs
{
DestinationId = "string",
UserEmail = "string",
},
},
},
Source = new Databricks.Inputs.AlertV2EvaluationSourceArgs
{
Aggregation = "string",
Display = "string",
Name = "string",
},
State = "string",
Threshold = new Databricks.Inputs.AlertV2EvaluationThresholdArgs
{
Column = new Databricks.Inputs.AlertV2EvaluationThresholdColumnArgs
{
Aggregation = "string",
Display = "string",
Name = "string",
},
Value = new Databricks.Inputs.AlertV2EvaluationThresholdValueArgs
{
BoolValue = false,
DoubleValue = 0,
StringValue = "string",
},
},
},
ParentPath = "string",
QueryText = "string",
Schedule = new Databricks.Inputs.AlertV2ScheduleArgs
{
PauseStatus = "string",
QuartzCronSchedule = "string",
TimezoneId = "string",
},
WarehouseId = "string",
});
example, err := databricks.NewAlertV2(ctx, "alertV2Resource", &databricks.AlertV2Args{
CustomDescription: pulumi.String("string"),
CustomSummary: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Evaluation: &databricks.AlertV2EvaluationArgs{
ComparisonOperator: pulumi.String("string"),
EmptyResultState: pulumi.String("string"),
LastEvaluatedAt: pulumi.String("string"),
Notification: &databricks.AlertV2EvaluationNotificationArgs{
NotifyOnOk: pulumi.Bool(false),
RetriggerSeconds: pulumi.Int(0),
Subscriptions: databricks.AlertV2EvaluationNotificationSubscriptionArray{
&databricks.AlertV2EvaluationNotificationSubscriptionArgs{
DestinationId: pulumi.String("string"),
UserEmail: pulumi.String("string"),
},
},
},
Source: &databricks.AlertV2EvaluationSourceArgs{
Aggregation: pulumi.String("string"),
Display: pulumi.String("string"),
Name: pulumi.String("string"),
},
State: pulumi.String("string"),
Threshold: &databricks.AlertV2EvaluationThresholdArgs{
Column: &databricks.AlertV2EvaluationThresholdColumnArgs{
Aggregation: pulumi.String("string"),
Display: pulumi.String("string"),
Name: pulumi.String("string"),
},
Value: &databricks.AlertV2EvaluationThresholdValueArgs{
BoolValue: pulumi.Bool(false),
DoubleValue: pulumi.Float64(0),
StringValue: pulumi.String("string"),
},
},
},
ParentPath: pulumi.String("string"),
QueryText: pulumi.String("string"),
Schedule: &databricks.AlertV2ScheduleArgs{
PauseStatus: pulumi.String("string"),
QuartzCronSchedule: pulumi.String("string"),
TimezoneId: pulumi.String("string"),
},
WarehouseId: pulumi.String("string"),
})
var alertV2Resource = new AlertV2("alertV2Resource", AlertV2Args.builder()
.customDescription("string")
.customSummary("string")
.displayName("string")
.evaluation(AlertV2EvaluationArgs.builder()
.comparisonOperator("string")
.emptyResultState("string")
.lastEvaluatedAt("string")
.notification(AlertV2EvaluationNotificationArgs.builder()
.notifyOnOk(false)
.retriggerSeconds(0)
.subscriptions(AlertV2EvaluationNotificationSubscriptionArgs.builder()
.destinationId("string")
.userEmail("string")
.build())
.build())
.source(AlertV2EvaluationSourceArgs.builder()
.aggregation("string")
.display("string")
.name("string")
.build())
.state("string")
.threshold(AlertV2EvaluationThresholdArgs.builder()
.column(AlertV2EvaluationThresholdColumnArgs.builder()
.aggregation("string")
.display("string")
.name("string")
.build())
.value(AlertV2EvaluationThresholdValueArgs.builder()
.boolValue(false)
.doubleValue(0.0)
.stringValue("string")
.build())
.build())
.build())
.parentPath("string")
.queryText("string")
.schedule(AlertV2ScheduleArgs.builder()
.pauseStatus("string")
.quartzCronSchedule("string")
.timezoneId("string")
.build())
.warehouseId("string")
.build());
alert_v2_resource = databricks.AlertV2("alertV2Resource",
custom_description="string",
custom_summary="string",
display_name="string",
evaluation={
"comparison_operator": "string",
"empty_result_state": "string",
"last_evaluated_at": "string",
"notification": {
"notify_on_ok": False,
"retrigger_seconds": 0,
"subscriptions": [{
"destination_id": "string",
"user_email": "string",
}],
},
"source": {
"aggregation": "string",
"display": "string",
"name": "string",
},
"state": "string",
"threshold": {
"column": {
"aggregation": "string",
"display": "string",
"name": "string",
},
"value": {
"bool_value": False,
"double_value": 0,
"string_value": "string",
},
},
},
parent_path="string",
query_text="string",
schedule={
"pause_status": "string",
"quartz_cron_schedule": "string",
"timezone_id": "string",
},
warehouse_id="string")
const alertV2Resource = new databricks.AlertV2("alertV2Resource", {
customDescription: "string",
customSummary: "string",
displayName: "string",
evaluation: {
comparisonOperator: "string",
emptyResultState: "string",
lastEvaluatedAt: "string",
notification: {
notifyOnOk: false,
retriggerSeconds: 0,
subscriptions: [{
destinationId: "string",
userEmail: "string",
}],
},
source: {
aggregation: "string",
display: "string",
name: "string",
},
state: "string",
threshold: {
column: {
aggregation: "string",
display: "string",
name: "string",
},
value: {
boolValue: false,
doubleValue: 0,
stringValue: "string",
},
},
},
parentPath: "string",
queryText: "string",
schedule: {
pauseStatus: "string",
quartzCronSchedule: "string",
timezoneId: "string",
},
warehouseId: "string",
});
type: databricks:AlertV2
properties:
customDescription: string
customSummary: string
displayName: string
evaluation:
comparisonOperator: string
emptyResultState: string
lastEvaluatedAt: string
notification:
notifyOnOk: false
retriggerSeconds: 0
subscriptions:
- destinationId: string
userEmail: string
source:
aggregation: string
display: string
name: string
state: string
threshold:
column:
aggregation: string
display: string
name: string
value:
boolValue: false
doubleValue: 0
stringValue: string
parentPath: string
queryText: string
schedule:
pauseStatus: string
quartzCronSchedule: string
timezoneId: string
warehouseId: string
AlertV2 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 AlertV2 resource accepts the following input properties:
- Custom
Description string - Custom
Summary string - Display
Name string - Evaluation
Alert
V2Evaluation - Parent
Path string - Query
Text string - Schedule
Alert
V2Schedule - Warehouse
Id string
- Custom
Description string - Custom
Summary string - Display
Name string - Evaluation
Alert
V2Evaluation Args - Parent
Path string - Query
Text string - Schedule
Alert
V2Schedule Args - Warehouse
Id string
- custom
Description String - custom
Summary String - display
Name String - evaluation
Alert
V2Evaluation - parent
Path String - query
Text String - schedule
Alert
V2Schedule - warehouse
Id String
- custom
Description string - custom
Summary string - display
Name string - evaluation
Alert
V2Evaluation - parent
Path string - query
Text string - schedule
Alert
V2Schedule - warehouse
Id string
- custom
Description String - custom
Summary String - display
Name String - evaluation Property Map
- parent
Path String - query
Text String - schedule Property Map
- warehouse
Id String
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertV2 resource produces the following output properties:
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - Owner
User stringName - Run
As stringUser Name - Update
Time string
- Create
Time string - Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string - Owner
User stringName - Run
As stringUser Name - Update
Time string
- create
Time String - id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - owner
User StringName - run
As StringUser Name - update
Time String
- create
Time string - id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string - owner
User stringName - run
As stringUser Name - update
Time string
- create_
time str - id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str - owner_
user_ strname - run_
as_ struser_ name - update_
time str
- create
Time String - id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
State String - owner
User StringName - run
As StringUser Name - update
Time String
Look up Existing AlertV2 Resource
Get an existing AlertV2 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?: AlertV2State, opts?: CustomResourceOptions): AlertV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
custom_description: Optional[str] = None,
custom_summary: Optional[str] = None,
display_name: Optional[str] = None,
evaluation: Optional[AlertV2EvaluationArgs] = None,
lifecycle_state: Optional[str] = None,
owner_user_name: Optional[str] = None,
parent_path: Optional[str] = None,
query_text: Optional[str] = None,
run_as_user_name: Optional[str] = None,
schedule: Optional[AlertV2ScheduleArgs] = None,
update_time: Optional[str] = None,
warehouse_id: Optional[str] = None) -> AlertV2
func GetAlertV2(ctx *Context, name string, id IDInput, state *AlertV2State, opts ...ResourceOption) (*AlertV2, error)
public static AlertV2 Get(string name, Input<string> id, AlertV2State? state, CustomResourceOptions? opts = null)
public static AlertV2 get(String name, Output<String> id, AlertV2State state, CustomResourceOptions options)
resources: _: type: databricks:AlertV2 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.
- Create
Time string - Custom
Description string - Custom
Summary string - Display
Name string - Evaluation
Alert
V2Evaluation - Lifecycle
State string - Owner
User stringName - Parent
Path string - Query
Text string - Run
As stringUser Name - Schedule
Alert
V2Schedule - Update
Time string - Warehouse
Id string
- Create
Time string - Custom
Description string - Custom
Summary string - Display
Name string - Evaluation
Alert
V2Evaluation Args - Lifecycle
State string - Owner
User stringName - Parent
Path string - Query
Text string - Run
As stringUser Name - Schedule
Alert
V2Schedule Args - Update
Time string - Warehouse
Id string
- create
Time String - custom
Description String - custom
Summary String - display
Name String - evaluation
Alert
V2Evaluation - lifecycle
State String - owner
User StringName - parent
Path String - query
Text String - run
As StringUser Name - schedule
Alert
V2Schedule - update
Time String - warehouse
Id String
- create
Time string - custom
Description string - custom
Summary string - display
Name string - evaluation
Alert
V2Evaluation - lifecycle
State string - owner
User stringName - parent
Path string - query
Text string - run
As stringUser Name - schedule
Alert
V2Schedule - update
Time string - warehouse
Id string
- create
Time String - custom
Description String - custom
Summary String - display
Name String - evaluation Property Map
- lifecycle
State String - owner
User StringName - parent
Path String - query
Text String - run
As StringUser Name - schedule Property Map
- update
Time String - warehouse
Id String
Supporting Types
AlertV2Evaluation, AlertV2EvaluationArgs
- comparison
Operator String - empty
Result StringState - last
Evaluated StringAt - notification Property Map
- source Property Map
- state String
- threshold Property Map
AlertV2EvaluationNotification, AlertV2EvaluationNotificationArgs
- notify
On BooleanOk - retrigger
Seconds Number - subscriptions List<Property Map>
AlertV2EvaluationNotificationSubscription, AlertV2EvaluationNotificationSubscriptionArgs
- Destination
Id string - User
Email string
- Destination
Id string - User
Email string
- destination
Id String - user
Email String
- destination
Id string - user
Email string
- destination_
id str - user_
email str
- destination
Id String - user
Email String
AlertV2EvaluationSource, AlertV2EvaluationSourceArgs
- Aggregation string
- Display string
- Name string
- Aggregation string
- Display string
- Name string
- aggregation String
- display String
- name String
- aggregation string
- display string
- name string
- aggregation str
- display str
- name str
- aggregation String
- display String
- name String
AlertV2EvaluationThreshold, AlertV2EvaluationThresholdArgs
AlertV2EvaluationThresholdColumn, AlertV2EvaluationThresholdColumnArgs
- Aggregation string
- Display string
- Name string
- Aggregation string
- Display string
- Name string
- aggregation String
- display String
- name String
- aggregation string
- display string
- name string
- aggregation str
- display str
- name str
- aggregation String
- display String
- name String
AlertV2EvaluationThresholdValue, AlertV2EvaluationThresholdValueArgs
- Bool
Value bool - Double
Value double - String
Value string
- Bool
Value bool - Double
Value float64 - String
Value string
- bool
Value Boolean - double
Value Double - string
Value String
- bool
Value boolean - double
Value number - string
Value string
- bool_
value bool - double_
value float - string_
value str
- bool
Value Boolean - double
Value Number - string
Value String
AlertV2Schedule, AlertV2ScheduleArgs
- Pause
Status string - Quartz
Cron stringSchedule - Timezone
Id string
- Pause
Status string - Quartz
Cron stringSchedule - Timezone
Id string
- pause
Status String - quartz
Cron StringSchedule - timezone
Id String
- pause
Status string - quartz
Cron stringSchedule - timezone
Id string
- pause_
status str - quartz_
cron_ strschedule - timezone_
id str
- pause
Status String - quartz
Cron StringSchedule - timezone
Id String
Package Details
- Repository
- databricks pulumi/pulumi-databricks
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
databricks
Terraform Provider.