opsgenie.Escalation
Explore with Pulumi AI
Manages an Escalation within Opsgenie.
Example Usage
An escalation with a single rule
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";
const _default = new opsgenie.Escalation("default", {
name: "genieescalation",
rules: [{
condition: "if-not-acked",
notifyType: "default",
delay: 1,
recipients: [{
type: "user",
id: test.id,
}],
}],
});
import pulumi
import pulumi_opsgenie as opsgenie
default = opsgenie.Escalation("default",
name="genieescalation",
rules=[{
"condition": "if-not-acked",
"notify_type": "default",
"delay": 1,
"recipients": [{
"type": "user",
"id": test["id"],
}],
}])
package main
import (
"github.com/pulumi/pulumi-opsgenie/sdk/go/opsgenie"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsgenie.NewEscalation(ctx, "default", &opsgenie.EscalationArgs{
Name: pulumi.String("genieescalation"),
Rules: opsgenie.EscalationRuleArray{
&opsgenie.EscalationRuleArgs{
Condition: pulumi.String("if-not-acked"),
NotifyType: pulumi.String("default"),
Delay: pulumi.Int(1),
Recipients: opsgenie.EscalationRuleRecipientArray{
&opsgenie.EscalationRuleRecipientArgs{
Type: pulumi.String("user"),
Id: pulumi.Any(test.Id),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opsgenie = Pulumi.Opsgenie;
return await Deployment.RunAsync(() =>
{
var @default = new Opsgenie.Escalation("default", new()
{
Name = "genieescalation",
Rules = new[]
{
new Opsgenie.Inputs.EscalationRuleArgs
{
Condition = "if-not-acked",
NotifyType = "default",
Delay = 1,
Recipients = new[]
{
new Opsgenie.Inputs.EscalationRuleRecipientArgs
{
Type = "user",
Id = test.Id,
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opsgenie.Escalation;
import com.pulumi.opsgenie.EscalationArgs;
import com.pulumi.opsgenie.inputs.EscalationRuleArgs;
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 default_ = new Escalation("default", EscalationArgs.builder()
.name("genieescalation")
.rules(EscalationRuleArgs.builder()
.condition("if-not-acked")
.notifyType("default")
.delay(1)
.recipients(EscalationRuleRecipientArgs.builder()
.type("user")
.id(test.id())
.build())
.build())
.build());
}
}
resources:
default:
type: opsgenie:Escalation
properties:
name: genieescalation
rules:
- condition: if-not-acked
notifyType: default
delay: 1
recipients:
- type: user
id: ${test.id}
An escalation with a multiple rules
import * as pulumi from "@pulumi/pulumi";
import * as opsgenie from "@pulumi/opsgenie";
const _default = new opsgenie.Escalation("default", {
name: "genieescalation",
description: "test",
ownerTeamId: testOpsgenieTeam.id,
rules: [
{
condition: "if-not-acked",
notifyType: "default",
delay: 1,
recipients: [{
type: "user",
id: test.id,
}],
},
{
condition: "if-not-acked",
notifyType: "default",
delay: 1,
recipients: [{
type: "team",
id: testOpsgenieTeam.id,
}],
},
{
condition: "if-not-acked",
notifyType: "default",
delay: 1,
recipients: [{
type: "schedule",
id: testOpsgenieSchedule.id,
}],
},
],
repeats: [{
waitInterval: 10,
count: 1,
resetRecipientStates: true,
closeAlertAfterAll: false,
}],
});
import pulumi
import pulumi_opsgenie as opsgenie
default = opsgenie.Escalation("default",
name="genieescalation",
description="test",
owner_team_id=test_opsgenie_team["id"],
rules=[
{
"condition": "if-not-acked",
"notify_type": "default",
"delay": 1,
"recipients": [{
"type": "user",
"id": test["id"],
}],
},
{
"condition": "if-not-acked",
"notify_type": "default",
"delay": 1,
"recipients": [{
"type": "team",
"id": test_opsgenie_team["id"],
}],
},
{
"condition": "if-not-acked",
"notify_type": "default",
"delay": 1,
"recipients": [{
"type": "schedule",
"id": test_opsgenie_schedule["id"],
}],
},
],
repeats=[{
"wait_interval": 10,
"count": 1,
"reset_recipient_states": True,
"close_alert_after_all": False,
}])
package main
import (
"github.com/pulumi/pulumi-opsgenie/sdk/go/opsgenie"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opsgenie.NewEscalation(ctx, "default", &opsgenie.EscalationArgs{
Name: pulumi.String("genieescalation"),
Description: pulumi.String("test"),
OwnerTeamId: pulumi.Any(testOpsgenieTeam.Id),
Rules: opsgenie.EscalationRuleArray{
&opsgenie.EscalationRuleArgs{
Condition: pulumi.String("if-not-acked"),
NotifyType: pulumi.String("default"),
Delay: pulumi.Int(1),
Recipients: opsgenie.EscalationRuleRecipientArray{
&opsgenie.EscalationRuleRecipientArgs{
Type: pulumi.String("user"),
Id: pulumi.Any(test.Id),
},
},
},
&opsgenie.EscalationRuleArgs{
Condition: pulumi.String("if-not-acked"),
NotifyType: pulumi.String("default"),
Delay: pulumi.Int(1),
Recipients: opsgenie.EscalationRuleRecipientArray{
&opsgenie.EscalationRuleRecipientArgs{
Type: pulumi.String("team"),
Id: pulumi.Any(testOpsgenieTeam.Id),
},
},
},
&opsgenie.EscalationRuleArgs{
Condition: pulumi.String("if-not-acked"),
NotifyType: pulumi.String("default"),
Delay: pulumi.Int(1),
Recipients: opsgenie.EscalationRuleRecipientArray{
&opsgenie.EscalationRuleRecipientArgs{
Type: pulumi.String("schedule"),
Id: pulumi.Any(testOpsgenieSchedule.Id),
},
},
},
},
Repeats: opsgenie.EscalationRepeatArray{
&opsgenie.EscalationRepeatArgs{
WaitInterval: pulumi.Int(10),
Count: pulumi.Int(1),
ResetRecipientStates: pulumi.Bool(true),
CloseAlertAfterAll: pulumi.Bool(false),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opsgenie = Pulumi.Opsgenie;
return await Deployment.RunAsync(() =>
{
var @default = new Opsgenie.Escalation("default", new()
{
Name = "genieescalation",
Description = "test",
OwnerTeamId = testOpsgenieTeam.Id,
Rules = new[]
{
new Opsgenie.Inputs.EscalationRuleArgs
{
Condition = "if-not-acked",
NotifyType = "default",
Delay = 1,
Recipients = new[]
{
new Opsgenie.Inputs.EscalationRuleRecipientArgs
{
Type = "user",
Id = test.Id,
},
},
},
new Opsgenie.Inputs.EscalationRuleArgs
{
Condition = "if-not-acked",
NotifyType = "default",
Delay = 1,
Recipients = new[]
{
new Opsgenie.Inputs.EscalationRuleRecipientArgs
{
Type = "team",
Id = testOpsgenieTeam.Id,
},
},
},
new Opsgenie.Inputs.EscalationRuleArgs
{
Condition = "if-not-acked",
NotifyType = "default",
Delay = 1,
Recipients = new[]
{
new Opsgenie.Inputs.EscalationRuleRecipientArgs
{
Type = "schedule",
Id = testOpsgenieSchedule.Id,
},
},
},
},
Repeats = new[]
{
new Opsgenie.Inputs.EscalationRepeatArgs
{
WaitInterval = 10,
Count = 1,
ResetRecipientStates = true,
CloseAlertAfterAll = false,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opsgenie.Escalation;
import com.pulumi.opsgenie.EscalationArgs;
import com.pulumi.opsgenie.inputs.EscalationRuleArgs;
import com.pulumi.opsgenie.inputs.EscalationRepeatArgs;
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 default_ = new Escalation("default", EscalationArgs.builder()
.name("genieescalation")
.description("test")
.ownerTeamId(testOpsgenieTeam.id())
.rules(
EscalationRuleArgs.builder()
.condition("if-not-acked")
.notifyType("default")
.delay(1)
.recipients(EscalationRuleRecipientArgs.builder()
.type("user")
.id(test.id())
.build())
.build(),
EscalationRuleArgs.builder()
.condition("if-not-acked")
.notifyType("default")
.delay(1)
.recipients(EscalationRuleRecipientArgs.builder()
.type("team")
.id(testOpsgenieTeam.id())
.build())
.build(),
EscalationRuleArgs.builder()
.condition("if-not-acked")
.notifyType("default")
.delay(1)
.recipients(EscalationRuleRecipientArgs.builder()
.type("schedule")
.id(testOpsgenieSchedule.id())
.build())
.build())
.repeats(EscalationRepeatArgs.builder()
.waitInterval(10)
.count(1)
.resetRecipientStates(true)
.closeAlertAfterAll(false)
.build())
.build());
}
}
resources:
default:
type: opsgenie:Escalation
properties:
name: genieescalation
description: test
ownerTeamId: ${testOpsgenieTeam.id}
rules:
- condition: if-not-acked
notifyType: default
delay: 1
recipients:
- type: user
id: ${test.id}
- condition: if-not-acked
notifyType: default
delay: 1
recipients:
- type: team
id: ${testOpsgenieTeam.id}
- condition: if-not-acked
notifyType: default
delay: 1
recipients:
- type: schedule
id: ${testOpsgenieSchedule.id}
repeats:
- waitInterval: 10
count: 1
resetRecipientStates: true
closeAlertAfterAll: false
Create Escalation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Escalation(name: string, args: EscalationArgs, opts?: CustomResourceOptions);
@overload
def Escalation(resource_name: str,
args: EscalationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Escalation(resource_name: str,
opts: Optional[ResourceOptions] = None,
rules: Optional[Sequence[EscalationRuleArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
owner_team_id: Optional[str] = None,
repeats: Optional[Sequence[EscalationRepeatArgs]] = None)
func NewEscalation(ctx *Context, name string, args EscalationArgs, opts ...ResourceOption) (*Escalation, error)
public Escalation(string name, EscalationArgs args, CustomResourceOptions? opts = null)
public Escalation(String name, EscalationArgs args)
public Escalation(String name, EscalationArgs args, CustomResourceOptions options)
type: opsgenie:Escalation
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 EscalationArgs
- 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 EscalationArgs
- 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 EscalationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EscalationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EscalationArgs
- 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 escalationResource = new Opsgenie.Escalation("escalationResource", new()
{
Rules = new[]
{
new Opsgenie.Inputs.EscalationRuleArgs
{
Condition = "string",
Delay = 0,
NotifyType = "string",
Recipients = new[]
{
new Opsgenie.Inputs.EscalationRuleRecipientArgs
{
Id = "string",
Type = "string",
},
},
},
},
Description = "string",
Name = "string",
OwnerTeamId = "string",
Repeats = new[]
{
new Opsgenie.Inputs.EscalationRepeatArgs
{
CloseAlertAfterAll = false,
Count = 0,
ResetRecipientStates = false,
WaitInterval = 0,
},
},
});
example, err := opsgenie.NewEscalation(ctx, "escalationResource", &opsgenie.EscalationArgs{
Rules: opsgenie.EscalationRuleArray{
&opsgenie.EscalationRuleArgs{
Condition: pulumi.String("string"),
Delay: pulumi.Int(0),
NotifyType: pulumi.String("string"),
Recipients: opsgenie.EscalationRuleRecipientArray{
&opsgenie.EscalationRuleRecipientArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OwnerTeamId: pulumi.String("string"),
Repeats: opsgenie.EscalationRepeatArray{
&opsgenie.EscalationRepeatArgs{
CloseAlertAfterAll: pulumi.Bool(false),
Count: pulumi.Int(0),
ResetRecipientStates: pulumi.Bool(false),
WaitInterval: pulumi.Int(0),
},
},
})
var escalationResource = new Escalation("escalationResource", EscalationArgs.builder()
.rules(EscalationRuleArgs.builder()
.condition("string")
.delay(0)
.notifyType("string")
.recipients(EscalationRuleRecipientArgs.builder()
.id("string")
.type("string")
.build())
.build())
.description("string")
.name("string")
.ownerTeamId("string")
.repeats(EscalationRepeatArgs.builder()
.closeAlertAfterAll(false)
.count(0)
.resetRecipientStates(false)
.waitInterval(0)
.build())
.build());
escalation_resource = opsgenie.Escalation("escalationResource",
rules=[{
"condition": "string",
"delay": 0,
"notify_type": "string",
"recipients": [{
"id": "string",
"type": "string",
}],
}],
description="string",
name="string",
owner_team_id="string",
repeats=[{
"close_alert_after_all": False,
"count": 0,
"reset_recipient_states": False,
"wait_interval": 0,
}])
const escalationResource = new opsgenie.Escalation("escalationResource", {
rules: [{
condition: "string",
delay: 0,
notifyType: "string",
recipients: [{
id: "string",
type: "string",
}],
}],
description: "string",
name: "string",
ownerTeamId: "string",
repeats: [{
closeAlertAfterAll: false,
count: 0,
resetRecipientStates: false,
waitInterval: 0,
}],
});
type: opsgenie:Escalation
properties:
description: string
name: string
ownerTeamId: string
repeats:
- closeAlertAfterAll: false
count: 0
resetRecipientStates: false
waitInterval: 0
rules:
- condition: string
delay: 0
notifyType: string
recipients:
- id: string
type: string
Escalation 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 Escalation resource accepts the following input properties:
- Rules
List<Escalation
Rule> - List of the escalation rules. See below for how rules are defined.
- Description string
- Description of the escalation.
- Name string
- Name of the escalation.
- Owner
Team stringId - Owner team id of the escalation.
- Repeats
List<Escalation
Repeat> - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- Rules
[]Escalation
Rule Args - List of the escalation rules. See below for how rules are defined.
- Description string
- Description of the escalation.
- Name string
- Name of the escalation.
- Owner
Team stringId - Owner team id of the escalation.
- Repeats
[]Escalation
Repeat Args - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules
List<Escalation
Rule> - List of the escalation rules. See below for how rules are defined.
- description String
- Description of the escalation.
- name String
- Name of the escalation.
- owner
Team StringId - Owner team id of the escalation.
- repeats
List<Escalation
Repeat> - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules
Escalation
Rule[] - List of the escalation rules. See below for how rules are defined.
- description string
- Description of the escalation.
- name string
- Name of the escalation.
- owner
Team stringId - Owner team id of the escalation.
- repeats
Escalation
Repeat[] - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules
Sequence[Escalation
Rule Args] - List of the escalation rules. See below for how rules are defined.
- description str
- Description of the escalation.
- name str
- Name of the escalation.
- owner_
team_ strid - Owner team id of the escalation.
- repeats
Sequence[Escalation
Repeat Args] - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules List<Property Map>
- List of the escalation rules. See below for how rules are defined.
- description String
- Description of the escalation.
- name String
- Name of the escalation.
- owner
Team StringId - Owner team id of the escalation.
- repeats List<Property Map>
- Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
Outputs
All input properties are implicitly available as output properties. Additionally, the Escalation 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 Escalation Resource
Get an existing Escalation 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?: EscalationState, opts?: CustomResourceOptions): Escalation
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
owner_team_id: Optional[str] = None,
repeats: Optional[Sequence[EscalationRepeatArgs]] = None,
rules: Optional[Sequence[EscalationRuleArgs]] = None) -> Escalation
func GetEscalation(ctx *Context, name string, id IDInput, state *EscalationState, opts ...ResourceOption) (*Escalation, error)
public static Escalation Get(string name, Input<string> id, EscalationState? state, CustomResourceOptions? opts = null)
public static Escalation get(String name, Output<String> id, EscalationState 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.
- Description string
- Description of the escalation.
- Name string
- Name of the escalation.
- Owner
Team stringId - Owner team id of the escalation.
- Repeats
List<Escalation
Repeat> - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- Rules
List<Escalation
Rule> - List of the escalation rules. See below for how rules are defined.
- Description string
- Description of the escalation.
- Name string
- Name of the escalation.
- Owner
Team stringId - Owner team id of the escalation.
- Repeats
[]Escalation
Repeat Args - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- Rules
[]Escalation
Rule Args - List of the escalation rules. See below for how rules are defined.
- description String
- Description of the escalation.
- name String
- Name of the escalation.
- owner
Team StringId - Owner team id of the escalation.
- repeats
List<Escalation
Repeat> - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules
List<Escalation
Rule> - List of the escalation rules. See below for how rules are defined.
- description string
- Description of the escalation.
- name string
- Name of the escalation.
- owner
Team stringId - Owner team id of the escalation.
- repeats
Escalation
Repeat[] - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules
Escalation
Rule[] - List of the escalation rules. See below for how rules are defined.
- description str
- Description of the escalation.
- name str
- Name of the escalation.
- owner_
team_ strid - Owner team id of the escalation.
- repeats
Sequence[Escalation
Repeat Args] - Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules
Sequence[Escalation
Rule Args] - List of the escalation rules. See below for how rules are defined.
- description String
- Description of the escalation.
- name String
- Name of the escalation.
- owner
Team StringId - Owner team id of the escalation.
- repeats List<Property Map>
- Repeat preferences of the escalation including repeat interval, count, reverting acknowledge and seen states back and closing an alert automatically as soon as repeats are completed
- rules List<Property Map>
- List of the escalation rules. See below for how rules are defined.
Supporting Types
EscalationRepeat, EscalationRepeatArgs
- Close
Alert boolAfter All - Count int
- Reset
Recipient boolStates - Wait
Interval int
- Close
Alert boolAfter All - Count int
- Reset
Recipient boolStates - Wait
Interval int
- close
Alert BooleanAfter All - count Integer
- reset
Recipient BooleanStates - wait
Interval Integer
- close
Alert booleanAfter All - count number
- reset
Recipient booleanStates - wait
Interval number
- close_
alert_ boolafter_ all - count int
- reset_
recipient_ boolstates - wait_
interval int
- close
Alert BooleanAfter All - count Number
- reset
Recipient BooleanStates - wait
Interval Number
EscalationRule, EscalationRuleArgs
- Condition string
- The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are:
if-not-acked
andif-not-closed
. Default:if-not-acked
- Delay int
- Time delay of the escalation rule, in minutes.
- Notify
Type string - Recipient calculation logic for schedules. Possible values are:
- Recipients
List<Escalation
Rule Recipient> - Object of schedule, team, or users which will be notified in escalation. The possible values for participants are:
user
,schedule
,team
. There can only be one recipient per eachrules
.
- Condition string
- The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are:
if-not-acked
andif-not-closed
. Default:if-not-acked
- Delay int
- Time delay of the escalation rule, in minutes.
- Notify
Type string - Recipient calculation logic for schedules. Possible values are:
- Recipients
[]Escalation
Rule Recipient - Object of schedule, team, or users which will be notified in escalation. The possible values for participants are:
user
,schedule
,team
. There can only be one recipient per eachrules
.
- condition String
- The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are:
if-not-acked
andif-not-closed
. Default:if-not-acked
- delay Integer
- Time delay of the escalation rule, in minutes.
- notify
Type String - Recipient calculation logic for schedules. Possible values are:
- recipients
List<Escalation
Rule Recipient> - Object of schedule, team, or users which will be notified in escalation. The possible values for participants are:
user
,schedule
,team
. There can only be one recipient per eachrules
.
- condition string
- The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are:
if-not-acked
andif-not-closed
. Default:if-not-acked
- delay number
- Time delay of the escalation rule, in minutes.
- notify
Type string - Recipient calculation logic for schedules. Possible values are:
- recipients
Escalation
Rule Recipient[] - Object of schedule, team, or users which will be notified in escalation. The possible values for participants are:
user
,schedule
,team
. There can only be one recipient per eachrules
.
- condition str
- The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are:
if-not-acked
andif-not-closed
. Default:if-not-acked
- delay int
- Time delay of the escalation rule, in minutes.
- notify_
type str - Recipient calculation logic for schedules. Possible values are:
- recipients
Sequence[Escalation
Rule Recipient] - Object of schedule, team, or users which will be notified in escalation. The possible values for participants are:
user
,schedule
,team
. There can only be one recipient per eachrules
.
- condition String
- The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are:
if-not-acked
andif-not-closed
. Default:if-not-acked
- delay Number
- Time delay of the escalation rule, in minutes.
- notify
Type String - Recipient calculation logic for schedules. Possible values are:
- recipients List<Property Map>
- Object of schedule, team, or users which will be notified in escalation. The possible values for participants are:
user
,schedule
,team
. There can only be one recipient per eachrules
.
EscalationRuleRecipient, EscalationRuleRecipientArgs
Import
Escalations can be imported using the escalation_id
, e.g.
$ pulumi import opsgenie:index/escalation:Escalation test escalation_id`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Opsgenie pulumi/pulumi-opsgenie
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
opsgenie
Terraform Provider.