Show / Hide Table of Contents

Class GetPriority

Inheritance
System.Object
GetPriority
Inherited Members
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 static class GetPriority

Methods

View Source

InvokeAsync(GetPriorityArgs, InvokeOptions)

Use this data source to get information about a specific priority that you can use for other PagerDuty resources.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
public MyStack()
{
    var p1 = Output.Create(Pagerduty.GetPriority.InvokeAsync(new Pagerduty.GetPriorityArgs
    {
        Name = "P1",
    }));
    var fooRuleset = new Pagerduty.Ruleset("fooRuleset", new Pagerduty.RulesetArgs
    {
    });
    var fooRulesetRule = new Pagerduty.RulesetRule("fooRulesetRule", new Pagerduty.RulesetRuleArgs
    {
        Ruleset = fooRuleset.Id,
        Position = 0,
        Disabled = "false",
        Conditions = new Pagerduty.Inputs.RulesetRuleConditionsArgs
        {
            Operator = "and",
            Subconditions = 
            {
                new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                {
                    Operator = "contains",
                    Parameter = 
                    {

                        {
                            { "value", "disk space" },
                            { "path", "payload.summary" },
                        },
                    },
                },
                new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                {
                    Operator = "contains",
                    Parameter = 
                    {

                        {
                            { "value", "db" },
                            { "path", "payload.source" },
                        },
                    },
                },
            },
        },
        Actions = new Pagerduty.Inputs.RulesetRuleActionsArgs
        {
            Route = 
            {

                {
                    { "value", "P5DTL0K" },
                },
            },
            Priority = 
            {

                {
                    { "value", pagerduty_priority.P1.Id },
                },
            },
        },
    });
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetPriorityResult> InvokeAsync(GetPriorityArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetPriorityArgs args
Pulumi.InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetPriorityResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.