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
Inherited Members
Namespace: Pulumi.Pagerduty
Assembly: Pulumi.Pagerduty.dll
Syntax
public class EscalationPolicy : CustomResource
Constructors
View SourceEscalationPolicy(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 SourceDescription
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
Name
The name of the escalation policy.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Pulumi.Output<System.String> |
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>> |
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>> |
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 SourceGet(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 |