1. Packages
  2. Rootly
  3. API Docs
  4. EscalationPolicy
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

rootly.EscalationPolicy

Explore with Pulumi AI

Create EscalationPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new EscalationPolicy(name: string, args?: EscalationPolicyArgs, opts?: CustomResourceOptions);
@overload
def EscalationPolicy(resource_name: str,
                     args: Optional[EscalationPolicyArgs] = None,
                     opts: Optional[ResourceOptions] = None)

@overload
def EscalationPolicy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     created_by_user_id: Optional[int] = None,
                     description: Optional[str] = None,
                     escalation_levels: Optional[Sequence[EscalationPolicyEscalationLevelArgs]] = None,
                     groups: Optional[Sequence[EscalationPolicyGroupArgs]] = None,
                     last_updated_by_user_id: Optional[int] = None,
                     name: Optional[str] = None,
                     repeat_count: Optional[int] = None,
                     services: Optional[Sequence[EscalationPolicyServiceArgs]] = None)
func NewEscalationPolicy(ctx *Context, name string, args *EscalationPolicyArgs, opts ...ResourceOption) (*EscalationPolicy, error)
public EscalationPolicy(string name, EscalationPolicyArgs? args = null, CustomResourceOptions? opts = null)
public EscalationPolicy(String name, EscalationPolicyArgs args)
public EscalationPolicy(String name, EscalationPolicyArgs args, CustomResourceOptions options)
type: rootly:EscalationPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args EscalationPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args EscalationPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args EscalationPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args EscalationPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. EscalationPolicyArgs
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 escalationPolicyResource = new Rootly.EscalationPolicy("escalationPolicyResource", new()
{
    CreatedByUserId = 0,
    Description = "string",
    EscalationLevels = new[]
    {
        new Rootly.Inputs.EscalationPolicyEscalationLevelArgs
        {
            Id = "string",
            Name = "string",
        },
    },
    Groups = new[]
    {
        new Rootly.Inputs.EscalationPolicyGroupArgs
        {
            Id = "string",
            Name = "string",
        },
    },
    LastUpdatedByUserId = 0,
    Name = "string",
    RepeatCount = 0,
    Services = new[]
    {
        new Rootly.Inputs.EscalationPolicyServiceArgs
        {
            Id = "string",
            Name = "string",
        },
    },
});
Copy
example, err := rootly.NewEscalationPolicy(ctx, "escalationPolicyResource", &rootly.EscalationPolicyArgs{
	CreatedByUserId: pulumi.Int(0),
	Description:     pulumi.String("string"),
	EscalationLevels: rootly.EscalationPolicyEscalationLevelArray{
		&rootly.EscalationPolicyEscalationLevelArgs{
			Id:   pulumi.String("string"),
			Name: pulumi.String("string"),
		},
	},
	Groups: rootly.EscalationPolicyGroupArray{
		&rootly.EscalationPolicyGroupArgs{
			Id:   pulumi.String("string"),
			Name: pulumi.String("string"),
		},
	},
	LastUpdatedByUserId: pulumi.Int(0),
	Name:                pulumi.String("string"),
	RepeatCount:         pulumi.Int(0),
	Services: rootly.EscalationPolicyServiceArray{
		&rootly.EscalationPolicyServiceArgs{
			Id:   pulumi.String("string"),
			Name: pulumi.String("string"),
		},
	},
})
Copy
var escalationPolicyResource = new EscalationPolicy("escalationPolicyResource", EscalationPolicyArgs.builder()
    .createdByUserId(0)
    .description("string")
    .escalationLevels(EscalationPolicyEscalationLevelArgs.builder()
        .id("string")
        .name("string")
        .build())
    .groups(EscalationPolicyGroupArgs.builder()
        .id("string")
        .name("string")
        .build())
    .lastUpdatedByUserId(0)
    .name("string")
    .repeatCount(0)
    .services(EscalationPolicyServiceArgs.builder()
        .id("string")
        .name("string")
        .build())
    .build());
Copy
escalation_policy_resource = rootly.EscalationPolicy("escalationPolicyResource",
    created_by_user_id=0,
    description="string",
    escalation_levels=[{
        "id": "string",
        "name": "string",
    }],
    groups=[{
        "id": "string",
        "name": "string",
    }],
    last_updated_by_user_id=0,
    name="string",
    repeat_count=0,
    services=[{
        "id": "string",
        "name": "string",
    }])
Copy
const escalationPolicyResource = new rootly.EscalationPolicy("escalationPolicyResource", {
    createdByUserId: 0,
    description: "string",
    escalationLevels: [{
        id: "string",
        name: "string",
    }],
    groups: [{
        id: "string",
        name: "string",
    }],
    lastUpdatedByUserId: 0,
    name: "string",
    repeatCount: 0,
    services: [{
        id: "string",
        name: "string",
    }],
});
Copy
type: rootly:EscalationPolicy
properties:
    createdByUserId: 0
    description: string
    escalationLevels:
        - id: string
          name: string
    groups:
        - id: string
          name: string
    lastUpdatedByUserId: 0
    name: string
    repeatCount: 0
    services:
        - id: string
          name: string
Copy

EscalationPolicy 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 EscalationPolicy resource accepts the following input properties:

CreatedByUserId int
User who created the escalation policy
Description string
The description of the escalation policy
EscalationLevels List<EscalationPolicyEscalationLevel>
Levels of the escalation policy
Groups List<EscalationPolicyGroup>
Teams of to the escalation policy
LastUpdatedByUserId int
User who updated the escalation policy
Name string
The name of the escalation policy
RepeatCount int
The number of times this policy will be executed until someone acknowledges the alert
Services List<EscalationPolicyService>
Services of the escalation policy
CreatedByUserId int
User who created the escalation policy
Description string
The description of the escalation policy
EscalationLevels []EscalationPolicyEscalationLevelArgs
Levels of the escalation policy
Groups []EscalationPolicyGroupArgs
Teams of to the escalation policy
LastUpdatedByUserId int
User who updated the escalation policy
Name string
The name of the escalation policy
RepeatCount int
The number of times this policy will be executed until someone acknowledges the alert
Services []EscalationPolicyServiceArgs
Services of the escalation policy
createdByUserId Integer
User who created the escalation policy
description String
The description of the escalation policy
escalationLevels List<EscalationPolicyEscalationLevel>
Levels of the escalation policy
groups List<EscalationPolicyGroup>
Teams of to the escalation policy
lastUpdatedByUserId Integer
User who updated the escalation policy
name String
The name of the escalation policy
repeatCount Integer
The number of times this policy will be executed until someone acknowledges the alert
services List<EscalationPolicyService>
Services of the escalation policy
createdByUserId number
User who created the escalation policy
description string
The description of the escalation policy
escalationLevels EscalationPolicyEscalationLevel[]
Levels of the escalation policy
groups EscalationPolicyGroup[]
Teams of to the escalation policy
lastUpdatedByUserId number
User who updated the escalation policy
name string
The name of the escalation policy
repeatCount number
The number of times this policy will be executed until someone acknowledges the alert
services EscalationPolicyService[]
Services of the escalation policy
created_by_user_id int
User who created the escalation policy
description str
The description of the escalation policy
escalation_levels Sequence[EscalationPolicyEscalationLevelArgs]
Levels of the escalation policy
groups Sequence[EscalationPolicyGroupArgs]
Teams of to the escalation policy
last_updated_by_user_id int
User who updated the escalation policy
name str
The name of the escalation policy
repeat_count int
The number of times this policy will be executed until someone acknowledges the alert
services Sequence[EscalationPolicyServiceArgs]
Services of the escalation policy
createdByUserId Number
User who created the escalation policy
description String
The description of the escalation policy
escalationLevels List<Property Map>
Levels of the escalation policy
groups List<Property Map>
Teams of to the escalation policy
lastUpdatedByUserId Number
User who updated the escalation policy
name String
The name of the escalation policy
repeatCount Number
The number of times this policy will be executed until someone acknowledges the alert
services List<Property Map>
Services of the escalation policy

Outputs

All input properties are implicitly available as output properties. Additionally, the EscalationPolicy 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 EscalationPolicy Resource

Get an existing EscalationPolicy 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?: EscalationPolicyState, opts?: CustomResourceOptions): EscalationPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        created_by_user_id: Optional[int] = None,
        description: Optional[str] = None,
        escalation_levels: Optional[Sequence[EscalationPolicyEscalationLevelArgs]] = None,
        groups: Optional[Sequence[EscalationPolicyGroupArgs]] = None,
        last_updated_by_user_id: Optional[int] = None,
        name: Optional[str] = None,
        repeat_count: Optional[int] = None,
        services: Optional[Sequence[EscalationPolicyServiceArgs]] = None) -> EscalationPolicy
func GetEscalationPolicy(ctx *Context, name string, id IDInput, state *EscalationPolicyState, opts ...ResourceOption) (*EscalationPolicy, error)
public static EscalationPolicy Get(string name, Input<string> id, EscalationPolicyState? state, CustomResourceOptions? opts = null)
public static EscalationPolicy get(String name, Output<String> id, EscalationPolicyState state, CustomResourceOptions options)
resources:  _:    type: rootly:EscalationPolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
CreatedByUserId int
User who created the escalation policy
Description string
The description of the escalation policy
EscalationLevels List<EscalationPolicyEscalationLevel>
Levels of the escalation policy
Groups List<EscalationPolicyGroup>
Teams of to the escalation policy
LastUpdatedByUserId int
User who updated the escalation policy
Name string
The name of the escalation policy
RepeatCount int
The number of times this policy will be executed until someone acknowledges the alert
Services List<EscalationPolicyService>
Services of the escalation policy
CreatedByUserId int
User who created the escalation policy
Description string
The description of the escalation policy
EscalationLevels []EscalationPolicyEscalationLevelArgs
Levels of the escalation policy
Groups []EscalationPolicyGroupArgs
Teams of to the escalation policy
LastUpdatedByUserId int
User who updated the escalation policy
Name string
The name of the escalation policy
RepeatCount int
The number of times this policy will be executed until someone acknowledges the alert
Services []EscalationPolicyServiceArgs
Services of the escalation policy
createdByUserId Integer
User who created the escalation policy
description String
The description of the escalation policy
escalationLevels List<EscalationPolicyEscalationLevel>
Levels of the escalation policy
groups List<EscalationPolicyGroup>
Teams of to the escalation policy
lastUpdatedByUserId Integer
User who updated the escalation policy
name String
The name of the escalation policy
repeatCount Integer
The number of times this policy will be executed until someone acknowledges the alert
services List<EscalationPolicyService>
Services of the escalation policy
createdByUserId number
User who created the escalation policy
description string
The description of the escalation policy
escalationLevels EscalationPolicyEscalationLevel[]
Levels of the escalation policy
groups EscalationPolicyGroup[]
Teams of to the escalation policy
lastUpdatedByUserId number
User who updated the escalation policy
name string
The name of the escalation policy
repeatCount number
The number of times this policy will be executed until someone acknowledges the alert
services EscalationPolicyService[]
Services of the escalation policy
created_by_user_id int
User who created the escalation policy
description str
The description of the escalation policy
escalation_levels Sequence[EscalationPolicyEscalationLevelArgs]
Levels of the escalation policy
groups Sequence[EscalationPolicyGroupArgs]
Teams of to the escalation policy
last_updated_by_user_id int
User who updated the escalation policy
name str
The name of the escalation policy
repeat_count int
The number of times this policy will be executed until someone acknowledges the alert
services Sequence[EscalationPolicyServiceArgs]
Services of the escalation policy
createdByUserId Number
User who created the escalation policy
description String
The description of the escalation policy
escalationLevels List<Property Map>
Levels of the escalation policy
groups List<Property Map>
Teams of to the escalation policy
lastUpdatedByUserId Number
User who updated the escalation policy
name String
The name of the escalation policy
repeatCount Number
The number of times this policy will be executed until someone acknowledges the alert
services List<Property Map>
Services of the escalation policy

Supporting Types

EscalationPolicyEscalationLevel
, EscalationPolicyEscalationLevelArgs

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

EscalationPolicyGroup
, EscalationPolicyGroupArgs

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

EscalationPolicyService
, EscalationPolicyServiceArgs

Id This property is required. string
Name This property is required. string
Id This property is required. string
Name This property is required. string
id This property is required. String
name This property is required. String
id This property is required. string
name This property is required. string
id This property is required. str
name This property is required. str
id This property is required. String
name This property is required. String

Package Details

Repository
rootly rootlyhq/pulumi-rootly
License
Apache-2.0
Notes
This Pulumi package is based on the rootly Terraform Provider.