grafana.OncallUserNotificationRule
Explore with Pulumi AI
Note: you must be running Grafana OnCall >= v1.8.0 to use this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";
import * as grafana from "@pulumiverse/grafana";
const myUser = grafana.onCall.getUser({
username: "my_username",
});
const myUserStep1 = new grafana.oncall.UserNotificationRule("my_user_step_1", {
userId: myUser.then(myUser => myUser.id),
position: 0,
type: "notify_by_mobile_app",
});
const myUserStep2 = new grafana.oncall.UserNotificationRule("my_user_step_2", {
userId: myUser.then(myUser => myUser.id),
position: 1,
duration: 600,
type: "wait",
});
const myUserStep3 = new grafana.oncall.UserNotificationRule("my_user_step_3", {
userId: myUser.then(myUser => myUser.id),
position: 2,
type: "notify_by_phone_call",
});
const myUserStep4 = new grafana.oncall.UserNotificationRule("my_user_step_4", {
userId: myUser.then(myUser => myUser.id),
position: 3,
duration: 300,
type: "wait",
});
const myUserStep5 = new grafana.oncall.UserNotificationRule("my_user_step_5", {
userId: myUser.then(myUser => myUser.id),
position: 4,
type: "notify_by_slack",
});
const myUserImportantStep1 = new grafana.oncall.UserNotificationRule("my_user_important_step_1", {
userId: myUser.then(myUser => myUser.id),
important: true,
position: 0,
type: "notify_by_mobile_app_critical",
});
const myUserImportantStep2 = new grafana.oncall.UserNotificationRule("my_user_important_step_2", {
userId: myUser.then(myUser => myUser.id),
important: true,
position: 1,
duration: 300,
type: "wait",
});
const myUserImportantStep3 = new grafana.oncall.UserNotificationRule("my_user_important_step_3", {
userId: myUser.then(myUser => myUser.id),
important: true,
position: 2,
type: "notify_by_mobile_app_critical",
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
my_user = grafana.onCall.get_user(username="my_username")
my_user_step1 = grafana.on_call.UserNotificationRule("my_user_step_1",
user_id=my_user.id,
position=0,
type="notify_by_mobile_app")
my_user_step2 = grafana.on_call.UserNotificationRule("my_user_step_2",
user_id=my_user.id,
position=1,
duration=600,
type="wait")
my_user_step3 = grafana.on_call.UserNotificationRule("my_user_step_3",
user_id=my_user.id,
position=2,
type="notify_by_phone_call")
my_user_step4 = grafana.on_call.UserNotificationRule("my_user_step_4",
user_id=my_user.id,
position=3,
duration=300,
type="wait")
my_user_step5 = grafana.on_call.UserNotificationRule("my_user_step_5",
user_id=my_user.id,
position=4,
type="notify_by_slack")
my_user_important_step1 = grafana.on_call.UserNotificationRule("my_user_important_step_1",
user_id=my_user.id,
important=True,
position=0,
type="notify_by_mobile_app_critical")
my_user_important_step2 = grafana.on_call.UserNotificationRule("my_user_important_step_2",
user_id=my_user.id,
important=True,
position=1,
duration=300,
type="wait")
my_user_important_step3 = grafana.on_call.UserNotificationRule("my_user_important_step_3",
user_id=my_user.id,
important=True,
position=2,
type="notify_by_mobile_app_critical")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
myUser, err := onCall.GetUser(ctx, &oncall.GetUserArgs{
Username: "my_username",
}, nil)
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_step_1", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Position: pulumi.Int(0),
Type: pulumi.String("notify_by_mobile_app"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_step_2", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Position: pulumi.Int(1),
Duration: pulumi.Int(600),
Type: pulumi.String("wait"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_step_3", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Position: pulumi.Int(2),
Type: pulumi.String("notify_by_phone_call"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_step_4", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Position: pulumi.Int(3),
Duration: pulumi.Int(300),
Type: pulumi.String("wait"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_step_5", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Position: pulumi.Int(4),
Type: pulumi.String("notify_by_slack"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_important_step_1", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Important: pulumi.Bool(true),
Position: pulumi.Int(0),
Type: pulumi.String("notify_by_mobile_app_critical"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_important_step_2", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Important: pulumi.Bool(true),
Position: pulumi.Int(1),
Duration: pulumi.Int(300),
Type: pulumi.String("wait"),
})
if err != nil {
return err
}
_, err = onCall.NewUserNotificationRule(ctx, "my_user_important_step_3", &onCall.UserNotificationRuleArgs{
UserId: pulumi.String(myUser.Id),
Important: pulumi.Bool(true),
Position: pulumi.Int(2),
Type: pulumi.String("notify_by_mobile_app_critical"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var myUser = Grafana.OnCall.GetUser.Invoke(new()
{
Username = "my_username",
});
var myUserStep1 = new Grafana.OnCall.UserNotificationRule("my_user_step_1", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Position = 0,
Type = "notify_by_mobile_app",
});
var myUserStep2 = new Grafana.OnCall.UserNotificationRule("my_user_step_2", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Position = 1,
Duration = 600,
Type = "wait",
});
var myUserStep3 = new Grafana.OnCall.UserNotificationRule("my_user_step_3", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Position = 2,
Type = "notify_by_phone_call",
});
var myUserStep4 = new Grafana.OnCall.UserNotificationRule("my_user_step_4", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Position = 3,
Duration = 300,
Type = "wait",
});
var myUserStep5 = new Grafana.OnCall.UserNotificationRule("my_user_step_5", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Position = 4,
Type = "notify_by_slack",
});
var myUserImportantStep1 = new Grafana.OnCall.UserNotificationRule("my_user_important_step_1", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Important = true,
Position = 0,
Type = "notify_by_mobile_app_critical",
});
var myUserImportantStep2 = new Grafana.OnCall.UserNotificationRule("my_user_important_step_2", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Important = true,
Position = 1,
Duration = 300,
Type = "wait",
});
var myUserImportantStep3 = new Grafana.OnCall.UserNotificationRule("my_user_important_step_3", new()
{
UserId = myUser.Apply(getUserResult => getUserResult.Id),
Important = true,
Position = 2,
Type = "notify_by_mobile_app_critical",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.onCall.OnCallFunctions;
import com.pulumi.grafana.onCall.inputs.GetUserArgs;
import com.pulumi.grafana.onCall.UserNotificationRule;
import com.pulumi.grafana.onCall.UserNotificationRuleArgs;
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) {
final var myUser = OnCallFunctions.getUser(GetUserArgs.builder()
.username("my_username")
.build());
var myUserStep1 = new UserNotificationRule("myUserStep1", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.position(0)
.type("notify_by_mobile_app")
.build());
var myUserStep2 = new UserNotificationRule("myUserStep2", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.position(1)
.duration(600)
.type("wait")
.build());
var myUserStep3 = new UserNotificationRule("myUserStep3", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.position(2)
.type("notify_by_phone_call")
.build());
var myUserStep4 = new UserNotificationRule("myUserStep4", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.position(3)
.duration(300)
.type("wait")
.build());
var myUserStep5 = new UserNotificationRule("myUserStep5", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.position(4)
.type("notify_by_slack")
.build());
var myUserImportantStep1 = new UserNotificationRule("myUserImportantStep1", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.important(true)
.position(0)
.type("notify_by_mobile_app_critical")
.build());
var myUserImportantStep2 = new UserNotificationRule("myUserImportantStep2", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.important(true)
.position(1)
.duration(300)
.type("wait")
.build());
var myUserImportantStep3 = new UserNotificationRule("myUserImportantStep3", UserNotificationRuleArgs.builder()
.userId(myUser.applyValue(getUserResult -> getUserResult.id()))
.important(true)
.position(2)
.type("notify_by_mobile_app_critical")
.build());
}
}
resources:
myUserStep1:
type: grafana:onCall:UserNotificationRule
name: my_user_step_1
properties:
userId: ${myUser.id}
position: 0
type: notify_by_mobile_app
myUserStep2:
type: grafana:onCall:UserNotificationRule
name: my_user_step_2
properties:
userId: ${myUser.id}
position: 1
duration: 600 # 10 minutes
type: wait
myUserStep3:
type: grafana:onCall:UserNotificationRule
name: my_user_step_3
properties:
userId: ${myUser.id}
position: 2
type: notify_by_phone_call
myUserStep4:
type: grafana:onCall:UserNotificationRule
name: my_user_step_4
properties:
userId: ${myUser.id}
position: 3
duration: 300 # 5 minutes
type: wait
myUserStep5:
type: grafana:onCall:UserNotificationRule
name: my_user_step_5
properties:
userId: ${myUser.id}
position: 4
type: notify_by_slack
myUserImportantStep1:
type: grafana:onCall:UserNotificationRule
name: my_user_important_step_1
properties:
userId: ${myUser.id}
important: true
position: 0
type: notify_by_mobile_app_critical
myUserImportantStep2:
type: grafana:onCall:UserNotificationRule
name: my_user_important_step_2
properties:
userId: ${myUser.id}
important: true
position: 1
duration: 300 # 5 minutes
type: wait
myUserImportantStep3:
type: grafana:onCall:UserNotificationRule
name: my_user_important_step_3
properties:
userId: ${myUser.id}
important: true
position: 2
type: notify_by_mobile_app_critical
variables:
myUser:
fn::invoke:
Function: grafana:onCall:getUser
Arguments:
username: my_username
Create OncallUserNotificationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OncallUserNotificationRule(name: string, args: OncallUserNotificationRuleArgs, opts?: CustomResourceOptions);
@overload
def OncallUserNotificationRule(resource_name: str,
args: OncallUserNotificationRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OncallUserNotificationRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
duration: Optional[int] = None,
important: Optional[bool] = None,
position: Optional[int] = None,
type: Optional[str] = None,
user_id: Optional[str] = None)
func NewOncallUserNotificationRule(ctx *Context, name string, args OncallUserNotificationRuleArgs, opts ...ResourceOption) (*OncallUserNotificationRule, error)
public OncallUserNotificationRule(string name, OncallUserNotificationRuleArgs args, CustomResourceOptions? opts = null)
public OncallUserNotificationRule(String name, OncallUserNotificationRuleArgs args)
public OncallUserNotificationRule(String name, OncallUserNotificationRuleArgs args, CustomResourceOptions options)
type: grafana:OncallUserNotificationRule
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 OncallUserNotificationRuleArgs
- 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 OncallUserNotificationRuleArgs
- 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 OncallUserNotificationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OncallUserNotificationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OncallUserNotificationRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
OncallUserNotificationRule 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 OncallUserNotificationRule resource accepts the following input properties:
- Type string
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - User
Id string - User ID
- Duration int
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - Important bool
- Boolean value which indicates if a rule is “important”
- Position int
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- Type string
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - User
Id string - User ID
- Duration int
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - Important bool
- Boolean value which indicates if a rule is “important”
- Position int
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type String
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user
Id String - User ID
- duration Integer
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important Boolean
- Boolean value which indicates if a rule is “important”
- position Integer
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type string
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user
Id string - User ID
- duration number
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important boolean
- Boolean value which indicates if a rule is “important”
- position number
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type str
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user_
id str - User ID
- duration int
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important bool
- Boolean value which indicates if a rule is “important”
- position int
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type String
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user
Id String - User ID
- duration Number
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important Boolean
- Boolean value which indicates if a rule is “important”
- position Number
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
Outputs
All input properties are implicitly available as output properties. Additionally, the OncallUserNotificationRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing OncallUserNotificationRule Resource
Get an existing OncallUserNotificationRule 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?: OncallUserNotificationRuleState, opts?: CustomResourceOptions): OncallUserNotificationRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
duration: Optional[int] = None,
important: Optional[bool] = None,
position: Optional[int] = None,
type: Optional[str] = None,
user_id: Optional[str] = None) -> OncallUserNotificationRule
func GetOncallUserNotificationRule(ctx *Context, name string, id IDInput, state *OncallUserNotificationRuleState, opts ...ResourceOption) (*OncallUserNotificationRule, error)
public static OncallUserNotificationRule Get(string name, Input<string> id, OncallUserNotificationRuleState? state, CustomResourceOptions? opts = null)
public static OncallUserNotificationRule get(String name, Output<String> id, OncallUserNotificationRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Duration int
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - Important bool
- Boolean value which indicates if a rule is “important”
- Position int
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- Type string
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - User
Id string - User ID
- Duration int
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - Important bool
- Boolean value which indicates if a rule is “important”
- Position int
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- Type string
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - User
Id string - User ID
- duration Integer
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important Boolean
- Boolean value which indicates if a rule is “important”
- position Integer
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type String
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user
Id String - User ID
- duration number
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important boolean
- Boolean value which indicates if a rule is “important”
- position number
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type string
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user
Id string - User ID
- duration int
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important bool
- Boolean value which indicates if a rule is “important”
- position int
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type str
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user_
id str - User ID
- duration Number
- A time in seconds to wait (when
type=wait
). Can be 60, 300, 900, 1800, 3600 - important Boolean
- Boolean value which indicates if a rule is “important”
- position Number
- Personal notification rules execute one after another starting from position=0. A new escalation policy created with a position of an existing escalation policy will move the old one (and all following) down on the list.
- type String
- The type of notification rule. Can be wait, notifybyslack, notifybymsteams, notifybysms, notifybyphonecall, notifybytelegram, notifybyemail, notifybymobileapp, notifybymobileappcritical. NOTE:
notify_by_msteams
is only available for Grafana Cloud customers. - user
Id String - User ID
Import
$ pulumi import grafana:index/oncallUserNotificationRule:OncallUserNotificationRule name "{{ id }}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.