Show / Hide Table of Contents

Class EscalationPolicy

An escalation policy determines what user or schedule will be notified first, second, and so on when an incident is triggered. Escalation policies are used by one or more services.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
public MyStack()
{
    var exampleTeam = new Pagerduty.Team("exampleTeam", new Pagerduty.TeamArgs
    {
        Description = "All engineering",
    });
    var exampleUser = new Pagerduty.User("exampleUser", new Pagerduty.UserArgs
    {
        Email = "125.greenholt.earline@graham.name",
        Teams = 
        {
            exampleTeam.Id,
        },
    });
    var exampleEscalationPolicy = new Pagerduty.EscalationPolicy("exampleEscalationPolicy", new Pagerduty.EscalationPolicyArgs
    {
        NumLoops = 2,
        Rules = 
        {
            new Pagerduty.Inputs.EscalationPolicyRuleArgs
            {
                EscalationDelayInMinutes = 10,
                Target = 
                {

                    {
                        { "id", exampleUser.Id },
                        { "type", "user" },
                    },
                },
            },
        },
        Teams = 
        {
            exampleTeam.Id,
        },
    });
}

}
Inheritance
System.Object
Pulumi.Resource
Pulumi.CustomResource
EscalationPolicy
Inherited Members
Pulumi.CustomResource.Id
Pulumi.Resource.GetResourceType()
Pulumi.Resource.GetResourceName()
Pulumi.Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class EscalationPolicy : CustomResource

Constructors

View Source

EscalationPolicy(String, EscalationPolicyArgs, CustomResourceOptions)

Create a EscalationPolicy resource with the given unique name, arguments, and options.

Declaration
public EscalationPolicy(string name, EscalationPolicyArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

EscalationPolicyArgs args

The arguments used to populate this resource's properties

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Description

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

Name

The name of the escalation policy.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Pulumi.Output<System.String>
View Source

NumLoops

The number of times the escalation policy will repeat after reaching the end of its escalation.

Declaration
public Output<int?> NumLoops { get; }
Property Value
Type Description
Pulumi.Output<System.Nullable<System.Int32>>
View Source

Rules

An Escalation rule block. Escalation rules documented below.

Declaration
public Output<ImmutableArray<EscalationPolicyRule>> Rules { get; }
Property Value
Type Description
Pulumi.Output<System.Collections.Immutable.ImmutableArray<EscalationPolicyRule>>
View Source

Teams

Teams associated with the policy. Account must have the teams ability to use this parameter.

Declaration
public Output<ImmutableArray<string>> Teams { get; }
Property Value
Type Description
Pulumi.Output<System.Collections.Immutable.ImmutableArray<System.String>>

Methods

View Source

Get(String, Input<String>, EscalationPolicyState, CustomResourceOptions)

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

Declaration
public static EscalationPolicy Get(string name, Input<string> id, EscalationPolicyState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Pulumi.Input<System.String> id

The unique provider ID of the resource to lookup.

EscalationPolicyState state

Any extra arguments used during the lookup.

Pulumi.CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
EscalationPolicy
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.