datadog.IncidentNotificationRule
Explore with Pulumi AI
Provides a Datadog incident notification rule resource. This can be used to create and manage Datadog incident notification rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const example = new datadog.IncidentType("example", {
name: "My Incident Type",
description: "Incident type for critical production issues",
});
const exampleIncidentNotificationTemplate = new datadog.IncidentNotificationTemplate("example", {
name: "My Notification Template",
subject: "SEV-1 Incident: {{incident.title}}",
content: `An incident has been declared.
Title: {{incident.title}}
Severity: {{incident.severity}}
Status: {{incident.status}}
Please join the incident channel for updates.
`,
category: "alert",
incidentType: example.id,
});
const exampleIncidentNotificationRule = new datadog.IncidentNotificationRule("example", {
enabled: true,
trigger: "incident_created_trigger",
visibility: "organization",
handles: [
"@team-email@company.com",
"@slack-channel-alerts",
"@pagerduty-service",
],
conditions: [
{
field: "severity",
values: [
"SEV-1",
"SEV-2",
],
},
{
field: "services",
values: [
"web-service",
"api-service",
"database-service",
],
},
],
renotifyOns: [
"status",
"severity",
],
incidentType: example.id,
notificationTemplate: exampleIncidentNotificationTemplate.id,
});
import pulumi
import pulumi_datadog as datadog
example = datadog.IncidentType("example",
name="My Incident Type",
description="Incident type for critical production issues")
example_incident_notification_template = datadog.IncidentNotificationTemplate("example",
name="My Notification Template",
subject="SEV-1 Incident: {{incident.title}}",
content="""An incident has been declared.
Title: {{incident.title}}
Severity: {{incident.severity}}
Status: {{incident.status}}
Please join the incident channel for updates.
""",
category="alert",
incident_type=example.id)
example_incident_notification_rule = datadog.IncidentNotificationRule("example",
enabled=True,
trigger="incident_created_trigger",
visibility="organization",
handles=[
"@team-email@company.com",
"@slack-channel-alerts",
"@pagerduty-service",
],
conditions=[
{
"field": "severity",
"values": [
"SEV-1",
"SEV-2",
],
},
{
"field": "services",
"values": [
"web-service",
"api-service",
"database-service",
],
},
],
renotify_ons=[
"status",
"severity",
],
incident_type=example.id,
notification_template=example_incident_notification_template.id)
package main
import (
"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := datadog.NewIncidentType(ctx, "example", &datadog.IncidentTypeArgs{
Name: pulumi.String("My Incident Type"),
Description: pulumi.String("Incident type for critical production issues"),
})
if err != nil {
return err
}
exampleIncidentNotificationTemplate, err := datadog.NewIncidentNotificationTemplate(ctx, "example", &datadog.IncidentNotificationTemplateArgs{
Name: pulumi.String("My Notification Template"),
Subject: pulumi.String("SEV-1 Incident: {{incident.title}}"),
Content: pulumi.String(`An incident has been declared.
Title: {{incident.title}}
Severity: {{incident.severity}}
Status: {{incident.status}}
Please join the incident channel for updates.
`),
Category: pulumi.String("alert"),
IncidentType: example.ID(),
})
if err != nil {
return err
}
_, err = datadog.NewIncidentNotificationRule(ctx, "example", &datadog.IncidentNotificationRuleArgs{
Enabled: pulumi.Bool(true),
Trigger: pulumi.String("incident_created_trigger"),
Visibility: pulumi.String("organization"),
Handles: pulumi.StringArray{
pulumi.String("@team-email@company.com"),
pulumi.String("@slack-channel-alerts"),
pulumi.String("@pagerduty-service"),
},
Conditions: datadog.IncidentNotificationRuleConditionArray{
&datadog.IncidentNotificationRuleConditionArgs{
Field: pulumi.String("severity"),
Values: pulumi.StringArray{
pulumi.String("SEV-1"),
pulumi.String("SEV-2"),
},
},
&datadog.IncidentNotificationRuleConditionArgs{
Field: pulumi.String("services"),
Values: pulumi.StringArray{
pulumi.String("web-service"),
pulumi.String("api-service"),
pulumi.String("database-service"),
},
},
},
RenotifyOns: pulumi.StringArray{
pulumi.String("status"),
pulumi.String("severity"),
},
IncidentType: example.ID(),
NotificationTemplate: exampleIncidentNotificationTemplate.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() =>
{
var example = new Datadog.IncidentType("example", new()
{
Name = "My Incident Type",
Description = "Incident type for critical production issues",
});
var exampleIncidentNotificationTemplate = new Datadog.IncidentNotificationTemplate("example", new()
{
Name = "My Notification Template",
Subject = "SEV-1 Incident: {{incident.title}}",
Content = @"An incident has been declared.
Title: {{incident.title}}
Severity: {{incident.severity}}
Status: {{incident.status}}
Please join the incident channel for updates.
",
Category = "alert",
IncidentType = example.Id,
});
var exampleIncidentNotificationRule = new Datadog.IncidentNotificationRule("example", new()
{
Enabled = true,
Trigger = "incident_created_trigger",
Visibility = "organization",
Handles = new[]
{
"@team-email@company.com",
"@slack-channel-alerts",
"@pagerduty-service",
},
Conditions = new[]
{
new Datadog.Inputs.IncidentNotificationRuleConditionArgs
{
Field = "severity",
Values = new[]
{
"SEV-1",
"SEV-2",
},
},
new Datadog.Inputs.IncidentNotificationRuleConditionArgs
{
Field = "services",
Values = new[]
{
"web-service",
"api-service",
"database-service",
},
},
},
RenotifyOns = new[]
{
"status",
"severity",
},
IncidentType = example.Id,
NotificationTemplate = exampleIncidentNotificationTemplate.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.IncidentType;
import com.pulumi.datadog.IncidentTypeArgs;
import com.pulumi.datadog.IncidentNotificationTemplate;
import com.pulumi.datadog.IncidentNotificationTemplateArgs;
import com.pulumi.datadog.IncidentNotificationRule;
import com.pulumi.datadog.IncidentNotificationRuleArgs;
import com.pulumi.datadog.inputs.IncidentNotificationRuleConditionArgs;
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 example = new IncidentType("example", IncidentTypeArgs.builder()
.name("My Incident Type")
.description("Incident type for critical production issues")
.build());
var exampleIncidentNotificationTemplate = new IncidentNotificationTemplate("exampleIncidentNotificationTemplate", IncidentNotificationTemplateArgs.builder()
.name("My Notification Template")
.subject("SEV-1 Incident: {{incident.title}}")
.content("""
An incident has been declared.
Title: {{incident.title}}
Severity: {{incident.severity}}
Status: {{incident.status}}
Please join the incident channel for updates.
""")
.category("alert")
.incidentType(example.id())
.build());
var exampleIncidentNotificationRule = new IncidentNotificationRule("exampleIncidentNotificationRule", IncidentNotificationRuleArgs.builder()
.enabled(true)
.trigger("incident_created_trigger")
.visibility("organization")
.handles(
"@team-email@company.com",
"@slack-channel-alerts",
"@pagerduty-service")
.conditions(
IncidentNotificationRuleConditionArgs.builder()
.field("severity")
.values(
"SEV-1",
"SEV-2")
.build(),
IncidentNotificationRuleConditionArgs.builder()
.field("services")
.values(
"web-service",
"api-service",
"database-service")
.build())
.renotifyOns(
"status",
"severity")
.incidentType(example.id())
.notificationTemplate(exampleIncidentNotificationTemplate.id())
.build());
}
}
resources:
example:
type: datadog:IncidentType
properties:
name: My Incident Type
description: Incident type for critical production issues
exampleIncidentNotificationTemplate:
type: datadog:IncidentNotificationTemplate
name: example
properties:
name: My Notification Template
subject: 'SEV-1 Incident: {{incident.title}}'
content: |
An incident has been declared.
Title: {{incident.title}}
Severity: {{incident.severity}}
Status: {{incident.status}}
Please join the incident channel for updates.
category: alert
incidentType: ${example.id}
exampleIncidentNotificationRule:
type: datadog:IncidentNotificationRule
name: example
properties:
enabled: true
trigger: incident_created_trigger
visibility: organization
handles:
- '@team-email@company.com'
- '@slack-channel-alerts'
- '@pagerduty-service'
conditions:
- field: severity
values:
- SEV-1
- SEV-2
- field: services
values:
- web-service
- api-service
- database-service
renotifyOns:
- status
- severity
incidentType: ${example.id}
notificationTemplate: ${exampleIncidentNotificationTemplate.id}
Create IncidentNotificationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IncidentNotificationRule(name: string, args: IncidentNotificationRuleArgs, opts?: CustomResourceOptions);
@overload
def IncidentNotificationRule(resource_name: str,
args: IncidentNotificationRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IncidentNotificationRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
handles: Optional[Sequence[str]] = None,
incident_type: Optional[str] = None,
trigger: Optional[str] = None,
conditions: Optional[Sequence[IncidentNotificationRuleConditionArgs]] = None,
enabled: Optional[bool] = None,
notification_template: Optional[str] = None,
renotify_ons: Optional[Sequence[str]] = None,
visibility: Optional[str] = None)
func NewIncidentNotificationRule(ctx *Context, name string, args IncidentNotificationRuleArgs, opts ...ResourceOption) (*IncidentNotificationRule, error)
public IncidentNotificationRule(string name, IncidentNotificationRuleArgs args, CustomResourceOptions? opts = null)
public IncidentNotificationRule(String name, IncidentNotificationRuleArgs args)
public IncidentNotificationRule(String name, IncidentNotificationRuleArgs args, CustomResourceOptions options)
type: datadog:IncidentNotificationRule
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 IncidentNotificationRuleArgs
- 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 IncidentNotificationRuleArgs
- 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 IncidentNotificationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IncidentNotificationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IncidentNotificationRuleArgs
- 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 incidentNotificationRuleResource = new Datadog.IncidentNotificationRule("incidentNotificationRuleResource", new()
{
Handles = new[]
{
"string",
},
IncidentType = "string",
Trigger = "string",
Conditions = new[]
{
new Datadog.Inputs.IncidentNotificationRuleConditionArgs
{
Field = "string",
Values = new[]
{
"string",
},
},
},
Enabled = false,
NotificationTemplate = "string",
RenotifyOns = new[]
{
"string",
},
Visibility = "string",
});
example, err := datadog.NewIncidentNotificationRule(ctx, "incidentNotificationRuleResource", &datadog.IncidentNotificationRuleArgs{
Handles: pulumi.StringArray{
pulumi.String("string"),
},
IncidentType: pulumi.String("string"),
Trigger: pulumi.String("string"),
Conditions: datadog.IncidentNotificationRuleConditionArray{
&datadog.IncidentNotificationRuleConditionArgs{
Field: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Enabled: pulumi.Bool(false),
NotificationTemplate: pulumi.String("string"),
RenotifyOns: pulumi.StringArray{
pulumi.String("string"),
},
Visibility: pulumi.String("string"),
})
var incidentNotificationRuleResource = new IncidentNotificationRule("incidentNotificationRuleResource", IncidentNotificationRuleArgs.builder()
.handles("string")
.incidentType("string")
.trigger("string")
.conditions(IncidentNotificationRuleConditionArgs.builder()
.field("string")
.values("string")
.build())
.enabled(false)
.notificationTemplate("string")
.renotifyOns("string")
.visibility("string")
.build());
incident_notification_rule_resource = datadog.IncidentNotificationRule("incidentNotificationRuleResource",
handles=["string"],
incident_type="string",
trigger="string",
conditions=[{
"field": "string",
"values": ["string"],
}],
enabled=False,
notification_template="string",
renotify_ons=["string"],
visibility="string")
const incidentNotificationRuleResource = new datadog.IncidentNotificationRule("incidentNotificationRuleResource", {
handles: ["string"],
incidentType: "string",
trigger: "string",
conditions: [{
field: "string",
values: ["string"],
}],
enabled: false,
notificationTemplate: "string",
renotifyOns: ["string"],
visibility: "string",
});
type: datadog:IncidentNotificationRule
properties:
conditions:
- field: string
values:
- string
enabled: false
handles:
- string
incidentType: string
notificationTemplate: string
renotifyOns:
- string
trigger: string
visibility: string
IncidentNotificationRule 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 IncidentNotificationRule resource accepts the following input properties:
- Handles List<string>
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- Incident
Type string - The ID of the incident type this notification rule is associated with.
- Trigger string
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- Conditions
List<Incident
Notification Rule Condition> - The conditions that trigger this notification rule. At least one condition is required.
- Enabled bool
- Whether the notification rule is enabled. Defaults to
false
. - Notification
Template string - The ID of the notification template to use for this rule.
- Renotify
Ons List<string> - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- Visibility string
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- Handles []string
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- Incident
Type string - The ID of the incident type this notification rule is associated with.
- Trigger string
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- Conditions
[]Incident
Notification Rule Condition Args - The conditions that trigger this notification rule. At least one condition is required.
- Enabled bool
- Whether the notification rule is enabled. Defaults to
false
. - Notification
Template string - The ID of the notification template to use for this rule.
- Renotify
Ons []string - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- Visibility string
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- handles List<String>
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident
Type String - The ID of the incident type this notification rule is associated with.
- trigger String
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- conditions
List<Incident
Notification Rule Condition> - The conditions that trigger this notification rule. At least one condition is required.
- enabled Boolean
- Whether the notification rule is enabled. Defaults to
false
. - notification
Template String - The ID of the notification template to use for this rule.
- renotify
Ons List<String> - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- visibility String
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- handles string[]
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident
Type string - The ID of the incident type this notification rule is associated with.
- trigger string
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- conditions
Incident
Notification Rule Condition[] - The conditions that trigger this notification rule. At least one condition is required.
- enabled boolean
- Whether the notification rule is enabled. Defaults to
false
. - notification
Template string - The ID of the notification template to use for this rule.
- renotify
Ons string[] - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- visibility string
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- handles Sequence[str]
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident_
type str - The ID of the incident type this notification rule is associated with.
- trigger str
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- conditions
Sequence[Incident
Notification Rule Condition Args] - The conditions that trigger this notification rule. At least one condition is required.
- enabled bool
- Whether the notification rule is enabled. Defaults to
false
. - notification_
template str - The ID of the notification template to use for this rule.
- renotify_
ons Sequence[str] - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- visibility str
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- handles List<String>
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident
Type String - The ID of the incident type this notification rule is associated with.
- trigger String
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- conditions List<Property Map>
- The conditions that trigger this notification rule. At least one condition is required.
- enabled Boolean
- Whether the notification rule is enabled. Defaults to
false
. - notification
Template String - The ID of the notification template to use for this rule.
- renotify
Ons List<String> - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- visibility String
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
Outputs
All input properties are implicitly available as output properties. Additionally, the IncidentNotificationRule resource produces the following output properties:
Look up Existing IncidentNotificationRule Resource
Get an existing IncidentNotificationRule 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?: IncidentNotificationRuleState, opts?: CustomResourceOptions): IncidentNotificationRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
conditions: Optional[Sequence[IncidentNotificationRuleConditionArgs]] = None,
created: Optional[str] = None,
enabled: Optional[bool] = None,
handles: Optional[Sequence[str]] = None,
incident_type: Optional[str] = None,
modified: Optional[str] = None,
notification_template: Optional[str] = None,
renotify_ons: Optional[Sequence[str]] = None,
trigger: Optional[str] = None,
visibility: Optional[str] = None) -> IncidentNotificationRule
func GetIncidentNotificationRule(ctx *Context, name string, id IDInput, state *IncidentNotificationRuleState, opts ...ResourceOption) (*IncidentNotificationRule, error)
public static IncidentNotificationRule Get(string name, Input<string> id, IncidentNotificationRuleState? state, CustomResourceOptions? opts = null)
public static IncidentNotificationRule get(String name, Output<String> id, IncidentNotificationRuleState state, CustomResourceOptions options)
resources: _: type: datadog:IncidentNotificationRule 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.
- Conditions
List<Incident
Notification Rule Condition> - The conditions that trigger this notification rule. At least one condition is required.
- Created string
- Timestamp when the notification rule was created.
- Enabled bool
- Whether the notification rule is enabled. Defaults to
false
. - Handles List<string>
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- Incident
Type string - The ID of the incident type this notification rule is associated with.
- Modified string
- Timestamp when the notification rule was last modified.
- Notification
Template string - The ID of the notification template to use for this rule.
- Renotify
Ons List<string> - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- Trigger string
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- Visibility string
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- Conditions
[]Incident
Notification Rule Condition Args - The conditions that trigger this notification rule. At least one condition is required.
- Created string
- Timestamp when the notification rule was created.
- Enabled bool
- Whether the notification rule is enabled. Defaults to
false
. - Handles []string
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- Incident
Type string - The ID of the incident type this notification rule is associated with.
- Modified string
- Timestamp when the notification rule was last modified.
- Notification
Template string - The ID of the notification template to use for this rule.
- Renotify
Ons []string - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- Trigger string
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- Visibility string
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- conditions
List<Incident
Notification Rule Condition> - The conditions that trigger this notification rule. At least one condition is required.
- created String
- Timestamp when the notification rule was created.
- enabled Boolean
- Whether the notification rule is enabled. Defaults to
false
. - handles List<String>
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident
Type String - The ID of the incident type this notification rule is associated with.
- modified String
- Timestamp when the notification rule was last modified.
- notification
Template String - The ID of the notification template to use for this rule.
- renotify
Ons List<String> - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- trigger String
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- visibility String
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- conditions
Incident
Notification Rule Condition[] - The conditions that trigger this notification rule. At least one condition is required.
- created string
- Timestamp when the notification rule was created.
- enabled boolean
- Whether the notification rule is enabled. Defaults to
false
. - handles string[]
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident
Type string - The ID of the incident type this notification rule is associated with.
- modified string
- Timestamp when the notification rule was last modified.
- notification
Template string - The ID of the notification template to use for this rule.
- renotify
Ons string[] - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- trigger string
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- visibility string
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- conditions
Sequence[Incident
Notification Rule Condition Args] - The conditions that trigger this notification rule. At least one condition is required.
- created str
- Timestamp when the notification rule was created.
- enabled bool
- Whether the notification rule is enabled. Defaults to
false
. - handles Sequence[str]
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident_
type str - The ID of the incident type this notification rule is associated with.
- modified str
- Timestamp when the notification rule was last modified.
- notification_
template str - The ID of the notification template to use for this rule.
- renotify_
ons Sequence[str] - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- trigger str
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- visibility str
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
- conditions List<Property Map>
- The conditions that trigger this notification rule. At least one condition is required.
- created String
- Timestamp when the notification rule was created.
- enabled Boolean
- Whether the notification rule is enabled. Defaults to
false
. - handles List<String>
- The notification handles (targets) for this rule. Examples: @team-email@company.com, @slack-channel.
- incident
Type String - The ID of the incident type this notification rule is associated with.
- modified String
- Timestamp when the notification rule was last modified.
- notification
Template String - The ID of the notification template to use for this rule.
- renotify
Ons List<String> - List of incident fields that trigger re-notification when changed. Valid values are: status, severity, customerimpact, title, description, detected, rootcause, services, state.
- trigger String
- The trigger event for this notification rule. Valid values are: incidentcreatedtrigger, incidentsavedtrigger.
- visibility String
- The visibility of the notification rule. Valid values are: all, organization, private. Defaults to organization.
Supporting Types
IncidentNotificationRuleCondition, IncidentNotificationRuleConditionArgs
Import
The pulumi import
command can be used, for example:
$ pulumi import datadog:index/incidentNotificationRule:IncidentNotificationRule example "00000000-0000-0000-0000-000000000000"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.