grafana.onCall.UserNotificationRule
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 UserNotificationRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserNotificationRule(name: string, args: UserNotificationRuleArgs, opts?: CustomResourceOptions);@overload
def UserNotificationRule(resource_name: str,
                         args: UserNotificationRuleArgs,
                         opts: Optional[ResourceOptions] = None)
@overload
def UserNotificationRule(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         type: Optional[str] = None,
                         user_id: Optional[str] = None,
                         duration: Optional[int] = None,
                         important: Optional[bool] = None,
                         position: Optional[int] = None)func NewUserNotificationRule(ctx *Context, name string, args UserNotificationRuleArgs, opts ...ResourceOption) (*UserNotificationRule, error)public UserNotificationRule(string name, UserNotificationRuleArgs args, CustomResourceOptions? opts = null)
public UserNotificationRule(String name, UserNotificationRuleArgs args)
public UserNotificationRule(String name, UserNotificationRuleArgs args, CustomResourceOptions options)
type: grafana:onCall:UserNotificationRule
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 UserNotificationRuleArgs
- 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 UserNotificationRuleArgs
- 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 UserNotificationRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserNotificationRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserNotificationRuleArgs
- 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 userNotificationRuleResource = new Grafana.OnCall.UserNotificationRule("userNotificationRuleResource", new()
{
    Type = "string",
    UserId = "string",
    Duration = 0,
    Important = false,
    Position = 0,
});
example, err := onCall.NewUserNotificationRule(ctx, "userNotificationRuleResource", &onCall.UserNotificationRuleArgs{
	Type:      pulumi.String("string"),
	UserId:    pulumi.String("string"),
	Duration:  pulumi.Int(0),
	Important: pulumi.Bool(false),
	Position:  pulumi.Int(0),
})
var userNotificationRuleResource = new UserNotificationRule("userNotificationRuleResource", UserNotificationRuleArgs.builder()
    .type("string")
    .userId("string")
    .duration(0)
    .important(false)
    .position(0)
    .build());
user_notification_rule_resource = grafana.on_call.UserNotificationRule("userNotificationRuleResource",
    type="string",
    user_id="string",
    duration=0,
    important=False,
    position=0)
const userNotificationRuleResource = new grafana.oncall.UserNotificationRule("userNotificationRuleResource", {
    type: "string",
    userId: "string",
    duration: 0,
    important: false,
    position: 0,
});
type: grafana:onCall:UserNotificationRule
properties:
    duration: 0
    important: false
    position: 0
    type: string
    userId: string
UserNotificationRule 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 UserNotificationRule 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_msteamsis only available for Grafana Cloud customers.
- UserId 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_msteamsis only available for Grafana Cloud customers.
- UserId 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_msteamsis only available for Grafana Cloud customers.
- userId 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_msteamsis only available for Grafana Cloud customers.
- userId 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_msteamsis 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_msteamsis only available for Grafana Cloud customers.
- userId 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 UserNotificationRule 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 UserNotificationRule Resource
Get an existing UserNotificationRule 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?: UserNotificationRuleState, opts?: CustomResourceOptions): UserNotificationRule@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) -> UserNotificationRulefunc GetUserNotificationRule(ctx *Context, name string, id IDInput, state *UserNotificationRuleState, opts ...ResourceOption) (*UserNotificationRule, error)public static UserNotificationRule Get(string name, Input<string> id, UserNotificationRuleState? state, CustomResourceOptions? opts = null)public static UserNotificationRule get(String name, Output<String> id, UserNotificationRuleState state, CustomResourceOptions options)resources:  _:    type: grafana:onCall:UserNotificationRule    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.
- 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_msteamsis only available for Grafana Cloud customers.
- UserId 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_msteamsis only available for Grafana Cloud customers.
- UserId 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_msteamsis only available for Grafana Cloud customers.
- userId 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_msteamsis only available for Grafana Cloud customers.
- userId 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_msteamsis 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_msteamsis only available for Grafana Cloud customers.
- userId String
- User ID
Import
$ pulumi import grafana:onCall/userNotificationRule:UserNotificationRule 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 grafanaTerraform Provider.
