1. Packages
  2. Pagerduty Provider
  3. API Docs
  4. RulesetRule
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

pagerduty.RulesetRule

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    import * as time from "@pulumiverse/time";
    
    const foo = new pagerduty.Team("foo", {name: "Engineering (Seattle)"});
    const fooRuleset = new pagerduty.Ruleset("foo", {
        name: "Primary Ruleset",
        team: {
            id: foo.id,
        },
    });
    // The pagerduty_ruleset_rule.foo rule defined below
    // repeats daily from 9:30am - 11:30am using the America/New_York timezone.
    // Thus it requires a time_static instance to represent 9:30am on an arbitrary date in that timezone.
    // April 11th, 2019 was EDT (UTC-4) https://www.timeanddate.com/worldclock/converter.html?iso=20190411T133000&p1=179
    const easternTimeAt0930 = new time.Static("eastern_time_at_0930", {rfc3339: "2019-04-11T09:30:00-04:00"});
    const fooRulesetRule = new pagerduty.RulesetRule("foo", {
        ruleset: fooRuleset.id,
        position: 0,
        disabled: false,
        timeFrame: {
            scheduledWeeklies: [{
                weekdays: [
                    2,
                    4,
                    6,
                ],
                startTime: easternTimeAt0930.unix.apply(unix => unix * 1000),
                duration: 2 * 60 * 60 * 1000,
                timezone: "America/New_York",
            }],
        },
        conditions: {
            operator: "and",
            subconditions: [
                {
                    operator: "contains",
                    parameters: [{
                        value: "disk space",
                        path: "payload.summary",
                    }],
                },
                {
                    operator: "contains",
                    parameters: [{
                        value: "db",
                        path: "payload.source",
                    }],
                },
            ],
        },
        variables: [{
            type: "regex",
            name: "Src",
            parameters: [{
                value: "(.*)",
                path: "payload.source",
            }],
        }],
        actions: {
            routes: [{
                value: fooPagerdutyService.id,
            }],
            severities: [{
                value: "warning",
            }],
            annotates: [{
                value: "From Terraform",
            }],
            extractions: [
                {
                    target: "dedup_key",
                    source: "details.host",
                    regex: "(.*)",
                },
                {
                    target: "summary",
                    template: "Warning: Disk Space Low on {{Src}}",
                },
            ],
        },
    });
    const catchAll = new pagerduty.RulesetRule("catch_all", {
        ruleset: fooRuleset.id,
        position: 1,
        catchAll: true,
        actions: {
            annotates: [{
                value: "From Terraform",
            }],
            suppresses: [{
                value: true,
            }],
        },
    });
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    import pulumiverse_time as time
    
    foo = pagerduty.Team("foo", name="Engineering (Seattle)")
    foo_ruleset = pagerduty.Ruleset("foo",
        name="Primary Ruleset",
        team={
            "id": foo.id,
        })
    # The pagerduty_ruleset_rule.foo rule defined below
    # repeats daily from 9:30am - 11:30am using the America/New_York timezone.
    # Thus it requires a time_static instance to represent 9:30am on an arbitrary date in that timezone.
    # April 11th, 2019 was EDT (UTC-4) https://www.timeanddate.com/worldclock/converter.html?iso=20190411T133000&p1=179
    eastern_time_at0930 = time.Static("eastern_time_at_0930", rfc3339="2019-04-11T09:30:00-04:00")
    foo_ruleset_rule = pagerduty.RulesetRule("foo",
        ruleset=foo_ruleset.id,
        position=0,
        disabled=False,
        time_frame={
            "scheduled_weeklies": [{
                "weekdays": [
                    2,
                    4,
                    6,
                ],
                "start_time": eastern_time_at0930.unix.apply(lambda unix: unix * 1000),
                "duration": 2 * 60 * 60 * 1000,
                "timezone": "America/New_York",
            }],
        },
        conditions={
            "operator": "and",
            "subconditions": [
                {
                    "operator": "contains",
                    "parameters": [{
                        "value": "disk space",
                        "path": "payload.summary",
                    }],
                },
                {
                    "operator": "contains",
                    "parameters": [{
                        "value": "db",
                        "path": "payload.source",
                    }],
                },
            ],
        },
        variables=[{
            "type": "regex",
            "name": "Src",
            "parameters": [{
                "value": "(.*)",
                "path": "payload.source",
            }],
        }],
        actions={
            "routes": [{
                "value": foo_pagerduty_service["id"],
            }],
            "severities": [{
                "value": "warning",
            }],
            "annotates": [{
                "value": "From Terraform",
            }],
            "extractions": [
                {
                    "target": "dedup_key",
                    "source": "details.host",
                    "regex": "(.*)",
                },
                {
                    "target": "summary",
                    "template": "Warning: Disk Space Low on {{Src}}",
                },
            ],
        })
    catch_all = pagerduty.RulesetRule("catch_all",
        ruleset=foo_ruleset.id,
        position=1,
        catch_all=True,
        actions={
            "annotates": [{
                "value": "From Terraform",
            }],
            "suppresses": [{
                "value": True,
            }],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi-time/sdk/go/time"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		foo, err := pagerduty.NewTeam(ctx, "foo", &pagerduty.TeamArgs{
    			Name: pulumi.String("Engineering (Seattle)"),
    		})
    		if err != nil {
    			return err
    		}
    		fooRuleset, err := pagerduty.NewRuleset(ctx, "foo", &pagerduty.RulesetArgs{
    			Name: pulumi.String("Primary Ruleset"),
    			Team: &pagerduty.RulesetTeamArgs{
    				Id: foo.ID(),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		// The pagerduty_ruleset_rule.foo rule defined below
    		// repeats daily from 9:30am - 11:30am using the America/New_York timezone.
    		// Thus it requires a time_static instance to represent 9:30am on an arbitrary date in that timezone.
    		// April 11th, 2019 was EDT (UTC-4) https://www.timeanddate.com/worldclock/converter.html?iso=20190411T133000&p1=179
    		easternTimeAt0930, err := time.NewStatic(ctx, "eastern_time_at_0930", &time.StaticArgs{
    			Rfc3339: pulumi.String("2019-04-11T09:30:00-04:00"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.NewRulesetRule(ctx, "foo", &pagerduty.RulesetRuleArgs{
    			Ruleset:  fooRuleset.ID(),
    			Position: pulumi.Int(0),
    			Disabled: pulumi.Bool(false),
    			TimeFrame: &pagerduty.RulesetRuleTimeFrameArgs{
    				ScheduledWeeklies: pagerduty.RulesetRuleTimeFrameScheduledWeeklyArray{
    					&pagerduty.RulesetRuleTimeFrameScheduledWeeklyArgs{
    						Weekdays: pulumi.IntArray{
    							pulumi.Int(2),
    							pulumi.Int(4),
    							pulumi.Int(6),
    						},
    						StartTime: pulumi.Int(easternTimeAt0930.Unix.ApplyT(func(unix int) (float64, error) {
    							return unix * 1000, nil
    						}).(pulumi.Float64Output)),
    						Duration: int(2 * 60 * 60 * 1000),
    						Timezone: pulumi.String("America/New_York"),
    					},
    				},
    			},
    			Conditions: &pagerduty.RulesetRuleConditionsArgs{
    				Operator: pulumi.String("and"),
    				Subconditions: pagerduty.RulesetRuleConditionsSubconditionArray{
    					&pagerduty.RulesetRuleConditionsSubconditionArgs{
    						Operator: pulumi.String("contains"),
    						Parameters: pagerduty.RulesetRuleConditionsSubconditionParameterArray{
    							&pagerduty.RulesetRuleConditionsSubconditionParameterArgs{
    								Value: pulumi.String("disk space"),
    								Path:  pulumi.String("payload.summary"),
    							},
    						},
    					},
    					&pagerduty.RulesetRuleConditionsSubconditionArgs{
    						Operator: pulumi.String("contains"),
    						Parameters: pagerduty.RulesetRuleConditionsSubconditionParameterArray{
    							&pagerduty.RulesetRuleConditionsSubconditionParameterArgs{
    								Value: pulumi.String("db"),
    								Path:  pulumi.String("payload.source"),
    							},
    						},
    					},
    				},
    			},
    			Variables: pagerduty.RulesetRuleVariableArray{
    				&pagerduty.RulesetRuleVariableArgs{
    					Type: pulumi.String("regex"),
    					Name: pulumi.String("Src"),
    					Parameters: pagerduty.RulesetRuleVariableParameterArray{
    						&pagerduty.RulesetRuleVariableParameterArgs{
    							Value: pulumi.String("(.*)"),
    							Path:  pulumi.String("payload.source"),
    						},
    					},
    				},
    			},
    			Actions: &pagerduty.RulesetRuleActionsArgs{
    				Routes: pagerduty.RulesetRuleActionsRouteArray{
    					&pagerduty.RulesetRuleActionsRouteArgs{
    						Value: pulumi.Any(fooPagerdutyService.Id),
    					},
    				},
    				Severities: pagerduty.RulesetRuleActionsSeverityArray{
    					&pagerduty.RulesetRuleActionsSeverityArgs{
    						Value: pulumi.String("warning"),
    					},
    				},
    				Annotates: pagerduty.RulesetRuleActionsAnnotateArray{
    					&pagerduty.RulesetRuleActionsAnnotateArgs{
    						Value: pulumi.String("From Terraform"),
    					},
    				},
    				Extractions: pagerduty.RulesetRuleActionsExtractionArray{
    					&pagerduty.RulesetRuleActionsExtractionArgs{
    						Target: pulumi.String("dedup_key"),
    						Source: pulumi.String("details.host"),
    						Regex:  pulumi.String("(.*)"),
    					},
    					&pagerduty.RulesetRuleActionsExtractionArgs{
    						Target:   pulumi.String("summary"),
    						Template: pulumi.String("Warning: Disk Space Low on {{Src}}"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = pagerduty.NewRulesetRule(ctx, "catch_all", &pagerduty.RulesetRuleArgs{
    			Ruleset:  fooRuleset.ID(),
    			Position: pulumi.Int(1),
    			CatchAll: pulumi.Bool(true),
    			Actions: &pagerduty.RulesetRuleActionsArgs{
    				Annotates: pagerduty.RulesetRuleActionsAnnotateArray{
    					&pagerduty.RulesetRuleActionsAnnotateArgs{
    						Value: pulumi.String("From Terraform"),
    					},
    				},
    				Suppresses: pagerduty.RulesetRuleActionsSuppressArray{
    					&pagerduty.RulesetRuleActionsSuppressArgs{
    						Value: pulumi.Bool(true),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    using Time = Pulumiverse.Time;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Pagerduty.Team("foo", new()
        {
            Name = "Engineering (Seattle)",
        });
    
        var fooRuleset = new Pagerduty.Ruleset("foo", new()
        {
            Name = "Primary Ruleset",
            Team = new Pagerduty.Inputs.RulesetTeamArgs
            {
                Id = foo.Id,
            },
        });
    
        // The pagerduty_ruleset_rule.foo rule defined below
        // repeats daily from 9:30am - 11:30am using the America/New_York timezone.
        // Thus it requires a time_static instance to represent 9:30am on an arbitrary date in that timezone.
        // April 11th, 2019 was EDT (UTC-4) https://www.timeanddate.com/worldclock/converter.html?iso=20190411T133000&p1=179
        var easternTimeAt0930 = new Time.Static("eastern_time_at_0930", new()
        {
            Rfc3339 = "2019-04-11T09:30:00-04:00",
        });
    
        var fooRulesetRule = new Pagerduty.RulesetRule("foo", new()
        {
            Ruleset = fooRuleset.Id,
            Position = 0,
            Disabled = false,
            TimeFrame = new Pagerduty.Inputs.RulesetRuleTimeFrameArgs
            {
                ScheduledWeeklies = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleTimeFrameScheduledWeeklyArgs
                    {
                        Weekdays = new[]
                        {
                            2,
                            4,
                            6,
                        },
                        StartTime = easternTimeAt0930.Unix.Apply(unix => unix * 1000),
                        Duration = 2 * 60 * 60 * 1000,
                        Timezone = "America/New_York",
                    },
                },
            },
            Conditions = new Pagerduty.Inputs.RulesetRuleConditionsArgs
            {
                Operator = "and",
                Subconditions = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                    {
                        Operator = "contains",
                        Parameters = new[]
                        {
                            new Pagerduty.Inputs.RulesetRuleConditionsSubconditionParameterArgs
                            {
                                Value = "disk space",
                                Path = "payload.summary",
                            },
                        },
                    },
                    new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                    {
                        Operator = "contains",
                        Parameters = new[]
                        {
                            new Pagerduty.Inputs.RulesetRuleConditionsSubconditionParameterArgs
                            {
                                Value = "db",
                                Path = "payload.source",
                            },
                        },
                    },
                },
            },
            Variables = new[]
            {
                new Pagerduty.Inputs.RulesetRuleVariableArgs
                {
                    Type = "regex",
                    Name = "Src",
                    Parameters = new[]
                    {
                        new Pagerduty.Inputs.RulesetRuleVariableParameterArgs
                        {
                            Value = "(.*)",
                            Path = "payload.source",
                        },
                    },
                },
            },
            Actions = new Pagerduty.Inputs.RulesetRuleActionsArgs
            {
                Routes = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleActionsRouteArgs
                    {
                        Value = fooPagerdutyService.Id,
                    },
                },
                Severities = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleActionsSeverityArgs
                    {
                        Value = "warning",
                    },
                },
                Annotates = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleActionsAnnotateArgs
                    {
                        Value = "From Terraform",
                    },
                },
                Extractions = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleActionsExtractionArgs
                    {
                        Target = "dedup_key",
                        Source = "details.host",
                        Regex = "(.*)",
                    },
                    new Pagerduty.Inputs.RulesetRuleActionsExtractionArgs
                    {
                        Target = "summary",
                        Template = "Warning: Disk Space Low on {{Src}}",
                    },
                },
            },
        });
    
        var catchAll = new Pagerduty.RulesetRule("catch_all", new()
        {
            Ruleset = fooRuleset.Id,
            Position = 1,
            CatchAll = true,
            Actions = new Pagerduty.Inputs.RulesetRuleActionsArgs
            {
                Annotates = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleActionsAnnotateArgs
                    {
                        Value = "From Terraform",
                    },
                },
                Suppresses = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleActionsSuppressArgs
                    {
                        Value = true,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.Team;
    import com.pulumi.pagerduty.TeamArgs;
    import com.pulumi.pagerduty.Ruleset;
    import com.pulumi.pagerduty.RulesetArgs;
    import com.pulumi.pagerduty.inputs.RulesetTeamArgs;
    import com.pulumi.time.Static;
    import com.pulumi.time.StaticArgs;
    import com.pulumi.pagerduty.RulesetRule;
    import com.pulumi.pagerduty.RulesetRuleArgs;
    import com.pulumi.pagerduty.inputs.RulesetRuleTimeFrameArgs;
    import com.pulumi.pagerduty.inputs.RulesetRuleConditionsArgs;
    import com.pulumi.pagerduty.inputs.RulesetRuleVariableArgs;
    import com.pulumi.pagerduty.inputs.RulesetRuleActionsArgs;
    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 foo = new Team("foo", TeamArgs.builder()
                .name("Engineering (Seattle)")
                .build());
    
            var fooRuleset = new Ruleset("fooRuleset", RulesetArgs.builder()
                .name("Primary Ruleset")
                .team(RulesetTeamArgs.builder()
                    .id(foo.id())
                    .build())
                .build());
    
            // The pagerduty_ruleset_rule.foo rule defined below
            // repeats daily from 9:30am - 11:30am using the America/New_York timezone.
            // Thus it requires a time_static instance to represent 9:30am on an arbitrary date in that timezone.
            // April 11th, 2019 was EDT (UTC-4) https://www.timeanddate.com/worldclock/converter.html?iso=20190411T133000&p1=179
            var easternTimeAt0930 = new Static("easternTimeAt0930", StaticArgs.builder()
                .rfc3339("2019-04-11T09:30:00-04:00")
                .build());
    
            var fooRulesetRule = new RulesetRule("fooRulesetRule", RulesetRuleArgs.builder()
                .ruleset(fooRuleset.id())
                .position(0)
                .disabled("false")
                .timeFrame(RulesetRuleTimeFrameArgs.builder()
                    .scheduledWeeklies(RulesetRuleTimeFrameScheduledWeeklyArgs.builder()
                        .weekdays(                    
                            2,
                            4,
                            6)
                        .startTime(easternTimeAt0930.unix().applyValue(unix -> unix * 1000))
                        .duration(2 * 60 * 60 * 1000)
                        .timezone("America/New_York")
                        .build())
                    .build())
                .conditions(RulesetRuleConditionsArgs.builder()
                    .operator("and")
                    .subconditions(                
                        RulesetRuleConditionsSubconditionArgs.builder()
                            .operator("contains")
                            .parameters(RulesetRuleConditionsSubconditionParameterArgs.builder()
                                .value("disk space")
                                .path("payload.summary")
                                .build())
                            .build(),
                        RulesetRuleConditionsSubconditionArgs.builder()
                            .operator("contains")
                            .parameters(RulesetRuleConditionsSubconditionParameterArgs.builder()
                                .value("db")
                                .path("payload.source")
                                .build())
                            .build())
                    .build())
                .variables(RulesetRuleVariableArgs.builder()
                    .type("regex")
                    .name("Src")
                    .parameters(RulesetRuleVariableParameterArgs.builder()
                        .value("(.*)")
                        .path("payload.source")
                        .build())
                    .build())
                .actions(RulesetRuleActionsArgs.builder()
                    .routes(RulesetRuleActionsRouteArgs.builder()
                        .value(fooPagerdutyService.id())
                        .build())
                    .severities(RulesetRuleActionsSeverityArgs.builder()
                        .value("warning")
                        .build())
                    .annotates(RulesetRuleActionsAnnotateArgs.builder()
                        .value("From Terraform")
                        .build())
                    .extractions(                
                        RulesetRuleActionsExtractionArgs.builder()
                            .target("dedup_key")
                            .source("details.host")
                            .regex("(.*)")
                            .build(),
                        RulesetRuleActionsExtractionArgs.builder()
                            .target("summary")
                            .template("Warning: Disk Space Low on {{Src}}")
                            .build())
                    .build())
                .build());
    
            var catchAll = new RulesetRule("catchAll", RulesetRuleArgs.builder()
                .ruleset(fooRuleset.id())
                .position(1)
                .catchAll(true)
                .actions(RulesetRuleActionsArgs.builder()
                    .annotates(RulesetRuleActionsAnnotateArgs.builder()
                        .value("From Terraform")
                        .build())
                    .suppresses(RulesetRuleActionsSuppressArgs.builder()
                        .value(true)
                        .build())
                    .build())
                .build());
    
        }
    }
    
    Coming soon!
    

    Create RulesetRule Resource

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

    Constructor syntax

    new RulesetRule(name: string, args: RulesetRuleArgs, opts?: CustomResourceOptions);
    @overload
    def RulesetRule(resource_name: str,
                    args: RulesetRuleArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def RulesetRule(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    ruleset: Optional[str] = None,
                    actions: Optional[RulesetRuleActionsArgs] = None,
                    catch_all: Optional[bool] = None,
                    conditions: Optional[RulesetRuleConditionsArgs] = None,
                    disabled: Optional[bool] = None,
                    position: Optional[int] = None,
                    time_frame: Optional[RulesetRuleTimeFrameArgs] = None,
                    variables: Optional[Sequence[RulesetRuleVariableArgs]] = None)
    func NewRulesetRule(ctx *Context, name string, args RulesetRuleArgs, opts ...ResourceOption) (*RulesetRule, error)
    public RulesetRule(string name, RulesetRuleArgs args, CustomResourceOptions? opts = null)
    public RulesetRule(String name, RulesetRuleArgs args)
    public RulesetRule(String name, RulesetRuleArgs args, CustomResourceOptions options)
    
    type: pagerduty:RulesetRule
    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 RulesetRuleArgs
    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 RulesetRuleArgs
    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 RulesetRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RulesetRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RulesetRuleArgs
    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 rulesetRuleResource = new Pagerduty.RulesetRule("rulesetRuleResource", new()
    {
        Ruleset = "string",
        Actions = new Pagerduty.Inputs.RulesetRuleActionsArgs
        {
            Annotates = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsAnnotateArgs
                {
                    Value = "string",
                },
            },
            EventActions = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsEventActionArgs
                {
                    Value = "string",
                },
            },
            Extractions = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsExtractionArgs
                {
                    Regex = "string",
                    Source = "string",
                    Target = "string",
                    Template = "string",
                },
            },
            Priorities = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsPriorityArgs
                {
                    Value = "string",
                },
            },
            Routes = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsRouteArgs
                {
                    Value = "string",
                },
            },
            Severities = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsSeverityArgs
                {
                    Value = "string",
                },
            },
            Suppresses = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsSuppressArgs
                {
                    ThresholdTimeAmount = 0,
                    ThresholdTimeUnit = "string",
                    ThresholdValue = 0,
                    Value = false,
                },
            },
            Suspends = new[]
            {
                new Pagerduty.Inputs.RulesetRuleActionsSuspendArgs
                {
                    Value = 0,
                },
            },
        },
        CatchAll = false,
        Conditions = new Pagerduty.Inputs.RulesetRuleConditionsArgs
        {
            Operator = "string",
            Subconditions = new[]
            {
                new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                {
                    Operator = "string",
                    Parameters = new[]
                    {
                        new Pagerduty.Inputs.RulesetRuleConditionsSubconditionParameterArgs
                        {
                            Path = "string",
                            Value = "string",
                        },
                    },
                },
            },
        },
        Disabled = false,
        Position = 0,
        TimeFrame = new Pagerduty.Inputs.RulesetRuleTimeFrameArgs
        {
            ActiveBetweens = new[]
            {
                new Pagerduty.Inputs.RulesetRuleTimeFrameActiveBetweenArgs
                {
                    EndTime = 0,
                    StartTime = 0,
                },
            },
            ScheduledWeeklies = new[]
            {
                new Pagerduty.Inputs.RulesetRuleTimeFrameScheduledWeeklyArgs
                {
                    Duration = 0,
                    StartTime = 0,
                    Timezone = "string",
                    Weekdays = new[]
                    {
                        0,
                    },
                },
            },
        },
        Variables = new[]
        {
            new Pagerduty.Inputs.RulesetRuleVariableArgs
            {
                Name = "string",
                Parameters = new[]
                {
                    new Pagerduty.Inputs.RulesetRuleVariableParameterArgs
                    {
                        Path = "string",
                        Value = "string",
                    },
                },
                Type = "string",
            },
        },
    });
    
    example, err := pagerduty.NewRulesetRule(ctx, "rulesetRuleResource", &pagerduty.RulesetRuleArgs{
    	Ruleset: pulumi.String("string"),
    	Actions: &pagerduty.RulesetRuleActionsArgs{
    		Annotates: pagerduty.RulesetRuleActionsAnnotateArray{
    			&pagerduty.RulesetRuleActionsAnnotateArgs{
    				Value: pulumi.String("string"),
    			},
    		},
    		EventActions: pagerduty.RulesetRuleActionsEventActionArray{
    			&pagerduty.RulesetRuleActionsEventActionArgs{
    				Value: pulumi.String("string"),
    			},
    		},
    		Extractions: pagerduty.RulesetRuleActionsExtractionArray{
    			&pagerduty.RulesetRuleActionsExtractionArgs{
    				Regex:    pulumi.String("string"),
    				Source:   pulumi.String("string"),
    				Target:   pulumi.String("string"),
    				Template: pulumi.String("string"),
    			},
    		},
    		Priorities: pagerduty.RulesetRuleActionsPriorityArray{
    			&pagerduty.RulesetRuleActionsPriorityArgs{
    				Value: pulumi.String("string"),
    			},
    		},
    		Routes: pagerduty.RulesetRuleActionsRouteArray{
    			&pagerduty.RulesetRuleActionsRouteArgs{
    				Value: pulumi.String("string"),
    			},
    		},
    		Severities: pagerduty.RulesetRuleActionsSeverityArray{
    			&pagerduty.RulesetRuleActionsSeverityArgs{
    				Value: pulumi.String("string"),
    			},
    		},
    		Suppresses: pagerduty.RulesetRuleActionsSuppressArray{
    			&pagerduty.RulesetRuleActionsSuppressArgs{
    				ThresholdTimeAmount: pulumi.Int(0),
    				ThresholdTimeUnit:   pulumi.String("string"),
    				ThresholdValue:      pulumi.Int(0),
    				Value:               pulumi.Bool(false),
    			},
    		},
    		Suspends: pagerduty.RulesetRuleActionsSuspendArray{
    			&pagerduty.RulesetRuleActionsSuspendArgs{
    				Value: pulumi.Int(0),
    			},
    		},
    	},
    	CatchAll: pulumi.Bool(false),
    	Conditions: &pagerduty.RulesetRuleConditionsArgs{
    		Operator: pulumi.String("string"),
    		Subconditions: pagerduty.RulesetRuleConditionsSubconditionArray{
    			&pagerduty.RulesetRuleConditionsSubconditionArgs{
    				Operator: pulumi.String("string"),
    				Parameters: pagerduty.RulesetRuleConditionsSubconditionParameterArray{
    					&pagerduty.RulesetRuleConditionsSubconditionParameterArgs{
    						Path:  pulumi.String("string"),
    						Value: pulumi.String("string"),
    					},
    				},
    			},
    		},
    	},
    	Disabled: pulumi.Bool(false),
    	Position: pulumi.Int(0),
    	TimeFrame: &pagerduty.RulesetRuleTimeFrameArgs{
    		ActiveBetweens: pagerduty.RulesetRuleTimeFrameActiveBetweenArray{
    			&pagerduty.RulesetRuleTimeFrameActiveBetweenArgs{
    				EndTime:   pulumi.Int(0),
    				StartTime: pulumi.Int(0),
    			},
    		},
    		ScheduledWeeklies: pagerduty.RulesetRuleTimeFrameScheduledWeeklyArray{
    			&pagerduty.RulesetRuleTimeFrameScheduledWeeklyArgs{
    				Duration:  pulumi.Int(0),
    				StartTime: pulumi.Int(0),
    				Timezone:  pulumi.String("string"),
    				Weekdays: pulumi.IntArray{
    					pulumi.Int(0),
    				},
    			},
    		},
    	},
    	Variables: pagerduty.RulesetRuleVariableArray{
    		&pagerduty.RulesetRuleVariableArgs{
    			Name: pulumi.String("string"),
    			Parameters: pagerduty.RulesetRuleVariableParameterArray{
    				&pagerduty.RulesetRuleVariableParameterArgs{
    					Path:  pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    })
    
    var rulesetRuleResource = new RulesetRule("rulesetRuleResource", RulesetRuleArgs.builder()
        .ruleset("string")
        .actions(RulesetRuleActionsArgs.builder()
            .annotates(RulesetRuleActionsAnnotateArgs.builder()
                .value("string")
                .build())
            .eventActions(RulesetRuleActionsEventActionArgs.builder()
                .value("string")
                .build())
            .extractions(RulesetRuleActionsExtractionArgs.builder()
                .regex("string")
                .source("string")
                .target("string")
                .template("string")
                .build())
            .priorities(RulesetRuleActionsPriorityArgs.builder()
                .value("string")
                .build())
            .routes(RulesetRuleActionsRouteArgs.builder()
                .value("string")
                .build())
            .severities(RulesetRuleActionsSeverityArgs.builder()
                .value("string")
                .build())
            .suppresses(RulesetRuleActionsSuppressArgs.builder()
                .thresholdTimeAmount(0)
                .thresholdTimeUnit("string")
                .thresholdValue(0)
                .value(false)
                .build())
            .suspends(RulesetRuleActionsSuspendArgs.builder()
                .value(0)
                .build())
            .build())
        .catchAll(false)
        .conditions(RulesetRuleConditionsArgs.builder()
            .operator("string")
            .subconditions(RulesetRuleConditionsSubconditionArgs.builder()
                .operator("string")
                .parameters(RulesetRuleConditionsSubconditionParameterArgs.builder()
                    .path("string")
                    .value("string")
                    .build())
                .build())
            .build())
        .disabled(false)
        .position(0)
        .timeFrame(RulesetRuleTimeFrameArgs.builder()
            .activeBetweens(RulesetRuleTimeFrameActiveBetweenArgs.builder()
                .endTime(0)
                .startTime(0)
                .build())
            .scheduledWeeklies(RulesetRuleTimeFrameScheduledWeeklyArgs.builder()
                .duration(0)
                .startTime(0)
                .timezone("string")
                .weekdays(0)
                .build())
            .build())
        .variables(RulesetRuleVariableArgs.builder()
            .name("string")
            .parameters(RulesetRuleVariableParameterArgs.builder()
                .path("string")
                .value("string")
                .build())
            .type("string")
            .build())
        .build());
    
    ruleset_rule_resource = pagerduty.RulesetRule("rulesetRuleResource",
        ruleset="string",
        actions={
            "annotates": [{
                "value": "string",
            }],
            "event_actions": [{
                "value": "string",
            }],
            "extractions": [{
                "regex": "string",
                "source": "string",
                "target": "string",
                "template": "string",
            }],
            "priorities": [{
                "value": "string",
            }],
            "routes": [{
                "value": "string",
            }],
            "severities": [{
                "value": "string",
            }],
            "suppresses": [{
                "threshold_time_amount": 0,
                "threshold_time_unit": "string",
                "threshold_value": 0,
                "value": False,
            }],
            "suspends": [{
                "value": 0,
            }],
        },
        catch_all=False,
        conditions={
            "operator": "string",
            "subconditions": [{
                "operator": "string",
                "parameters": [{
                    "path": "string",
                    "value": "string",
                }],
            }],
        },
        disabled=False,
        position=0,
        time_frame={
            "active_betweens": [{
                "end_time": 0,
                "start_time": 0,
            }],
            "scheduled_weeklies": [{
                "duration": 0,
                "start_time": 0,
                "timezone": "string",
                "weekdays": [0],
            }],
        },
        variables=[{
            "name": "string",
            "parameters": [{
                "path": "string",
                "value": "string",
            }],
            "type": "string",
        }])
    
    const rulesetRuleResource = new pagerduty.RulesetRule("rulesetRuleResource", {
        ruleset: "string",
        actions: {
            annotates: [{
                value: "string",
            }],
            eventActions: [{
                value: "string",
            }],
            extractions: [{
                regex: "string",
                source: "string",
                target: "string",
                template: "string",
            }],
            priorities: [{
                value: "string",
            }],
            routes: [{
                value: "string",
            }],
            severities: [{
                value: "string",
            }],
            suppresses: [{
                thresholdTimeAmount: 0,
                thresholdTimeUnit: "string",
                thresholdValue: 0,
                value: false,
            }],
            suspends: [{
                value: 0,
            }],
        },
        catchAll: false,
        conditions: {
            operator: "string",
            subconditions: [{
                operator: "string",
                parameters: [{
                    path: "string",
                    value: "string",
                }],
            }],
        },
        disabled: false,
        position: 0,
        timeFrame: {
            activeBetweens: [{
                endTime: 0,
                startTime: 0,
            }],
            scheduledWeeklies: [{
                duration: 0,
                startTime: 0,
                timezone: "string",
                weekdays: [0],
            }],
        },
        variables: [{
            name: "string",
            parameters: [{
                path: "string",
                value: "string",
            }],
            type: "string",
        }],
    });
    
    type: pagerduty:RulesetRule
    properties:
        actions:
            annotates:
                - value: string
            eventActions:
                - value: string
            extractions:
                - regex: string
                  source: string
                  target: string
                  template: string
            priorities:
                - value: string
            routes:
                - value: string
            severities:
                - value: string
            suppresses:
                - thresholdTimeAmount: 0
                  thresholdTimeUnit: string
                  thresholdValue: 0
                  value: false
            suspends:
                - value: 0
        catchAll: false
        conditions:
            operator: string
            subconditions:
                - operator: string
                  parameters:
                    - path: string
                      value: string
        disabled: false
        position: 0
        ruleset: string
        timeFrame:
            activeBetweens:
                - endTime: 0
                  startTime: 0
            scheduledWeeklies:
                - duration: 0
                  startTime: 0
                  timezone: string
                  weekdays:
                    - 0
        variables:
            - name: string
              parameters:
                - path: string
                  value: string
              type: string
    

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

    Ruleset string
    The ID of the ruleset that the rule belongs to.
    Actions RulesetRuleActions
    Actions to apply to an event if the conditions match.
    CatchAll bool
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    Conditions RulesetRuleConditions
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    Disabled bool
    Indicates whether the rule is disabled and would therefore not be evaluated.
    Position int
    Position/index of the rule within the ruleset.
    TimeFrame RulesetRuleTimeFrame
    Settings for scheduling the rule.
    Variables List<RulesetRuleVariable>
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    Ruleset string
    The ID of the ruleset that the rule belongs to.
    Actions RulesetRuleActionsArgs
    Actions to apply to an event if the conditions match.
    CatchAll bool
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    Conditions RulesetRuleConditionsArgs
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    Disabled bool
    Indicates whether the rule is disabled and would therefore not be evaluated.
    Position int
    Position/index of the rule within the ruleset.
    TimeFrame RulesetRuleTimeFrameArgs
    Settings for scheduling the rule.
    Variables []RulesetRuleVariableArgs
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    ruleset String
    The ID of the ruleset that the rule belongs to.
    actions RulesetRuleActions
    Actions to apply to an event if the conditions match.
    catchAll Boolean
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions RulesetRuleConditions
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled Boolean
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position Integer
    Position/index of the rule within the ruleset.
    timeFrame RulesetRuleTimeFrame
    Settings for scheduling the rule.
    variables List<RulesetRuleVariable>
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    ruleset string
    The ID of the ruleset that the rule belongs to.
    actions RulesetRuleActions
    Actions to apply to an event if the conditions match.
    catchAll boolean
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions RulesetRuleConditions
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled boolean
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position number
    Position/index of the rule within the ruleset.
    timeFrame RulesetRuleTimeFrame
    Settings for scheduling the rule.
    variables RulesetRuleVariable[]
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    ruleset str
    The ID of the ruleset that the rule belongs to.
    actions RulesetRuleActionsArgs
    Actions to apply to an event if the conditions match.
    catch_all bool
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions RulesetRuleConditionsArgs
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled bool
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position int
    Position/index of the rule within the ruleset.
    time_frame RulesetRuleTimeFrameArgs
    Settings for scheduling the rule.
    variables Sequence[RulesetRuleVariableArgs]
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    ruleset String
    The ID of the ruleset that the rule belongs to.
    actions Property Map
    Actions to apply to an event if the conditions match.
    catchAll Boolean
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions Property Map
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled Boolean
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position Number
    Position/index of the rule within the ruleset.
    timeFrame Property Map
    Settings for scheduling the rule.
    variables List<Property Map>
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.

    Outputs

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

    Get an existing RulesetRule 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?: RulesetRuleState, opts?: CustomResourceOptions): RulesetRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            actions: Optional[RulesetRuleActionsArgs] = None,
            catch_all: Optional[bool] = None,
            conditions: Optional[RulesetRuleConditionsArgs] = None,
            disabled: Optional[bool] = None,
            position: Optional[int] = None,
            ruleset: Optional[str] = None,
            time_frame: Optional[RulesetRuleTimeFrameArgs] = None,
            variables: Optional[Sequence[RulesetRuleVariableArgs]] = None) -> RulesetRule
    func GetRulesetRule(ctx *Context, name string, id IDInput, state *RulesetRuleState, opts ...ResourceOption) (*RulesetRule, error)
    public static RulesetRule Get(string name, Input<string> id, RulesetRuleState? state, CustomResourceOptions? opts = null)
    public static RulesetRule get(String name, Output<String> id, RulesetRuleState 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.
    The following state arguments are supported:
    Actions RulesetRuleActions
    Actions to apply to an event if the conditions match.
    CatchAll bool
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    Conditions RulesetRuleConditions
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    Disabled bool
    Indicates whether the rule is disabled and would therefore not be evaluated.
    Position int
    Position/index of the rule within the ruleset.
    Ruleset string
    The ID of the ruleset that the rule belongs to.
    TimeFrame RulesetRuleTimeFrame
    Settings for scheduling the rule.
    Variables List<RulesetRuleVariable>
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    Actions RulesetRuleActionsArgs
    Actions to apply to an event if the conditions match.
    CatchAll bool
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    Conditions RulesetRuleConditionsArgs
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    Disabled bool
    Indicates whether the rule is disabled and would therefore not be evaluated.
    Position int
    Position/index of the rule within the ruleset.
    Ruleset string
    The ID of the ruleset that the rule belongs to.
    TimeFrame RulesetRuleTimeFrameArgs
    Settings for scheduling the rule.
    Variables []RulesetRuleVariableArgs
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    actions RulesetRuleActions
    Actions to apply to an event if the conditions match.
    catchAll Boolean
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions RulesetRuleConditions
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled Boolean
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position Integer
    Position/index of the rule within the ruleset.
    ruleset String
    The ID of the ruleset that the rule belongs to.
    timeFrame RulesetRuleTimeFrame
    Settings for scheduling the rule.
    variables List<RulesetRuleVariable>
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    actions RulesetRuleActions
    Actions to apply to an event if the conditions match.
    catchAll boolean
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions RulesetRuleConditions
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled boolean
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position number
    Position/index of the rule within the ruleset.
    ruleset string
    The ID of the ruleset that the rule belongs to.
    timeFrame RulesetRuleTimeFrame
    Settings for scheduling the rule.
    variables RulesetRuleVariable[]
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    actions RulesetRuleActionsArgs
    Actions to apply to an event if the conditions match.
    catch_all bool
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions RulesetRuleConditionsArgs
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled bool
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position int
    Position/index of the rule within the ruleset.
    ruleset str
    The ID of the ruleset that the rule belongs to.
    time_frame RulesetRuleTimeFrameArgs
    Settings for scheduling the rule.
    variables Sequence[RulesetRuleVariableArgs]
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.
    actions Property Map
    Actions to apply to an event if the conditions match.
    catchAll Boolean
    Indicates whether the Event Rule is the last Event Rule of the Ruleset that serves as a catch-all. It has limited functionality compared to other rules and always matches.
    conditions Property Map
    Conditions evaluated to check if an event matches this event rule. Is always empty for the catch-all rule, though.
    disabled Boolean
    Indicates whether the rule is disabled and would therefore not be evaluated.
    position Number
    Position/index of the rule within the ruleset.
    ruleset String
    The ID of the ruleset that the rule belongs to.
    timeFrame Property Map
    Settings for scheduling the rule.
    variables List<Property Map>
    Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple variable objects.

    Supporting Types

    RulesetRuleActions, RulesetRuleActionsArgs

    Annotates List<RulesetRuleActionsAnnotate>
    Note added to the event.
    EventActions List<RulesetRuleActionsEventAction>
    An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
    Extractions List<RulesetRuleActionsExtraction>
    Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
    Priorities List<RulesetRuleActionsPriority>
    The ID of the priority applied to the event.
    Routes List<RulesetRuleActionsRoute>
    The ID of the service where the event will be routed.
    Severities List<RulesetRuleActionsSeverity>
    The severity level of the event. Can be either info,warning,error, or critical.
    Suppresses List<RulesetRuleActionsSuppress>
    Controls whether an alert is suppressed (does not create an incident). Note: If a threshold is set, the rule must also have a route action.
    Suspends List<RulesetRuleActionsSuspend>
    An object with a single value field. The value sets the length of time to suspend the resulting alert before triggering. Note: A rule with a suspend action must also have a route action.
    Annotates []RulesetRuleActionsAnnotate
    Note added to the event.
    EventActions []RulesetRuleActionsEventAction
    An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
    Extractions []RulesetRuleActionsExtraction
    Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
    Priorities []RulesetRuleActionsPriority
    The ID of the priority applied to the event.
    Routes []RulesetRuleActionsRoute
    The ID of the service where the event will be routed.
    Severities []RulesetRuleActionsSeverity
    The severity level of the event. Can be either info,warning,error, or critical.
    Suppresses []RulesetRuleActionsSuppress
    Controls whether an alert is suppressed (does not create an incident). Note: If a threshold is set, the rule must also have a route action.
    Suspends []RulesetRuleActionsSuspend
    An object with a single value field. The value sets the length of time to suspend the resulting alert before triggering. Note: A rule with a suspend action must also have a route action.
    annotates List<RulesetRuleActionsAnnotate>
    Note added to the event.
    eventActions List<RulesetRuleActionsEventAction>
    An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
    extractions List<RulesetRuleActionsExtraction>
    Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
    priorities List<RulesetRuleActionsPriority>
    The ID of the priority applied to the event.
    routes List<RulesetRuleActionsRoute>
    The ID of the service where the event will be routed.
    severities List<RulesetRuleActionsSeverity>
    The severity level of the event. Can be either info,warning,error, or critical.
    suppresses List<RulesetRuleActionsSuppress>
    Controls whether an alert is suppressed (does not create an incident). Note: If a threshold is set, the rule must also have a route action.
    suspends List<RulesetRuleActionsSuspend>
    An object with a single value field. The value sets the length of time to suspend the resulting alert before triggering. Note: A rule with a suspend action must also have a route action.
    annotates RulesetRuleActionsAnnotate[]
    Note added to the event.
    eventActions RulesetRuleActionsEventAction[]
    An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
    extractions RulesetRuleActionsExtraction[]
    Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
    priorities RulesetRuleActionsPriority[]
    The ID of the priority applied to the event.
    routes RulesetRuleActionsRoute[]
    The ID of the service where the event will be routed.
    severities RulesetRuleActionsSeverity[]
    The severity level of the event. Can be either info,warning,error, or critical.
    suppresses RulesetRuleActionsSuppress[]
    Controls whether an alert is suppressed (does not create an incident). Note: If a threshold is set, the rule must also have a route action.
    suspends RulesetRuleActionsSuspend[]
    An object with a single value field. The value sets the length of time to suspend the resulting alert before triggering. Note: A rule with a suspend action must also have a route action.
    annotates Sequence[RulesetRuleActionsAnnotate]
    Note added to the event.
    event_actions Sequence[RulesetRuleActionsEventAction]
    An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
    extractions Sequence[RulesetRuleActionsExtraction]
    Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
    priorities Sequence[RulesetRuleActionsPriority]
    The ID of the priority applied to the event.
    routes Sequence[RulesetRuleActionsRoute]
    The ID of the service where the event will be routed.
    severities Sequence[RulesetRuleActionsSeverity]
    The severity level of the event. Can be either info,warning,error, or critical.
    suppresses Sequence[RulesetRuleActionsSuppress]
    Controls whether an alert is suppressed (does not create an incident). Note: If a threshold is set, the rule must also have a route action.
    suspends Sequence[RulesetRuleActionsSuspend]
    An object with a single value field. The value sets the length of time to suspend the resulting alert before triggering. Note: A rule with a suspend action must also have a route action.
    annotates List<Property Map>
    Note added to the event.
    eventActions List<Property Map>
    An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
    extractions List<Property Map>
    Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
    priorities List<Property Map>
    The ID of the priority applied to the event.
    routes List<Property Map>
    The ID of the service where the event will be routed.
    severities List<Property Map>
    The severity level of the event. Can be either info,warning,error, or critical.
    suppresses List<Property Map>
    Controls whether an alert is suppressed (does not create an incident). Note: If a threshold is set, the rule must also have a route action.
    suspends List<Property Map>
    An object with a single value field. The value sets the length of time to suspend the resulting alert before triggering. Note: A rule with a suspend action must also have a route action.

    RulesetRuleActionsAnnotate, RulesetRuleActionsAnnotateArgs

    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleActionsEventAction, RulesetRuleActionsEventActionArgs

    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleActionsExtraction, RulesetRuleActionsExtractionArgs

    Regex string

    The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.

    - OR -

    Source string
    Field where the data is being copied from. Must be a PagerDuty Common Event Format (PD-CEF) field.
    Target string

    Field where the data is being copied to. Must be a PagerDuty Common Event Format (PD-CEF) field.

    NOTE: A rule can have multiple extraction objects attributed to it.

    Template string
    A customized field message. This can also include variables extracted from the payload by using string interpolation.
    Regex string

    The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.

    - OR -

    Source string
    Field where the data is being copied from. Must be a PagerDuty Common Event Format (PD-CEF) field.
    Target string

    Field where the data is being copied to. Must be a PagerDuty Common Event Format (PD-CEF) field.

    NOTE: A rule can have multiple extraction objects attributed to it.

    Template string
    A customized field message. This can also include variables extracted from the payload by using string interpolation.
    regex String

    The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.

    - OR -

    source String
    Field where the data is being copied from. Must be a PagerDuty Common Event Format (PD-CEF) field.
    target String

    Field where the data is being copied to. Must be a PagerDuty Common Event Format (PD-CEF) field.

    NOTE: A rule can have multiple extraction objects attributed to it.

    template String
    A customized field message. This can also include variables extracted from the payload by using string interpolation.
    regex string

    The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.

    - OR -

    source string
    Field where the data is being copied from. Must be a PagerDuty Common Event Format (PD-CEF) field.
    target string

    Field where the data is being copied to. Must be a PagerDuty Common Event Format (PD-CEF) field.

    NOTE: A rule can have multiple extraction objects attributed to it.

    template string
    A customized field message. This can also include variables extracted from the payload by using string interpolation.
    regex str

    The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.

    - OR -

    source str
    Field where the data is being copied from. Must be a PagerDuty Common Event Format (PD-CEF) field.
    target str

    Field where the data is being copied to. Must be a PagerDuty Common Event Format (PD-CEF) field.

    NOTE: A rule can have multiple extraction objects attributed to it.

    template str
    A customized field message. This can also include variables extracted from the payload by using string interpolation.
    regex String

    The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.

    - OR -

    source String
    Field where the data is being copied from. Must be a PagerDuty Common Event Format (PD-CEF) field.
    target String

    Field where the data is being copied to. Must be a PagerDuty Common Event Format (PD-CEF) field.

    NOTE: A rule can have multiple extraction objects attributed to it.

    template String
    A customized field message. This can also include variables extracted from the payload by using string interpolation.

    RulesetRuleActionsPriority, RulesetRuleActionsPriorityArgs

    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleActionsRoute, RulesetRuleActionsRouteArgs

    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleActionsSeverity, RulesetRuleActionsSeverityArgs

    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleActionsSuppress, RulesetRuleActionsSuppressArgs

    ThresholdTimeAmount int
    The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
    ThresholdTimeUnit string
    The seconds,minutes, or hours the threshold_time_amount should be measured.
    ThresholdValue int
    The number of alerts that should be suppressed. Must be greater than 0.
    Value bool
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    ThresholdTimeAmount int
    The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
    ThresholdTimeUnit string
    The seconds,minutes, or hours the threshold_time_amount should be measured.
    ThresholdValue int
    The number of alerts that should be suppressed. Must be greater than 0.
    Value bool
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    thresholdTimeAmount Integer
    The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
    thresholdTimeUnit String
    The seconds,minutes, or hours the threshold_time_amount should be measured.
    thresholdValue Integer
    The number of alerts that should be suppressed. Must be greater than 0.
    value Boolean
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    thresholdTimeAmount number
    The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
    thresholdTimeUnit string
    The seconds,minutes, or hours the threshold_time_amount should be measured.
    thresholdValue number
    The number of alerts that should be suppressed. Must be greater than 0.
    value boolean
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    threshold_time_amount int
    The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
    threshold_time_unit str
    The seconds,minutes, or hours the threshold_time_amount should be measured.
    threshold_value int
    The number of alerts that should be suppressed. Must be greater than 0.
    value bool
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    thresholdTimeAmount Number
    The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
    thresholdTimeUnit String
    The seconds,minutes, or hours the threshold_time_amount should be measured.
    thresholdValue Number
    The number of alerts that should be suppressed. Must be greater than 0.
    value Boolean
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleActionsSuspend, RulesetRuleActionsSuspendArgs

    Value int
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Value int
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value Integer
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value number
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value int
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    value Number
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleConditions, RulesetRuleConditionsArgs

    Operator string
    Operator to combine sub-conditions. Can be and or or.
    Subconditions List<RulesetRuleConditionsSubcondition>
    List of sub-conditions that define the condition.
    Operator string
    Operator to combine sub-conditions. Can be and or or.
    Subconditions []RulesetRuleConditionsSubcondition
    List of sub-conditions that define the condition.
    operator String
    Operator to combine sub-conditions. Can be and or or.
    subconditions List<RulesetRuleConditionsSubcondition>
    List of sub-conditions that define the condition.
    operator string
    Operator to combine sub-conditions. Can be and or or.
    subconditions RulesetRuleConditionsSubcondition[]
    List of sub-conditions that define the condition.
    operator str
    Operator to combine sub-conditions. Can be and or or.
    subconditions Sequence[RulesetRuleConditionsSubcondition]
    List of sub-conditions that define the condition.
    operator String
    Operator to combine sub-conditions. Can be and or or.
    subconditions List<Property Map>
    List of sub-conditions that define the condition.

    RulesetRuleConditionsSubcondition, RulesetRuleConditionsSubconditionArgs

    Operator string
    Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
    Parameters List<RulesetRuleConditionsSubconditionParameter>
    Parameter for the sub-condition. It requires both a path and value to be set.
    Operator string
    Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
    Parameters []RulesetRuleConditionsSubconditionParameter
    Parameter for the sub-condition. It requires both a path and value to be set.
    operator String
    Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
    parameters List<RulesetRuleConditionsSubconditionParameter>
    Parameter for the sub-condition. It requires both a path and value to be set.
    operator string
    Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
    parameters RulesetRuleConditionsSubconditionParameter[]
    Parameter for the sub-condition. It requires both a path and value to be set.
    operator str
    Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
    parameters Sequence[RulesetRuleConditionsSubconditionParameter]
    Parameter for the sub-condition. It requires both a path and value to be set.
    operator String
    Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
    parameters List<Property Map>
    Parameter for the sub-condition. It requires both a path and value to be set.

    RulesetRuleConditionsSubconditionParameter, RulesetRuleConditionsSubconditionParameterArgs

    Path string
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Path string
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path String
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path string
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path str
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path String
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    RulesetRuleTimeFrame, RulesetRuleTimeFrameArgs

    ActiveBetweens List<RulesetRuleTimeFrameActiveBetween>
    Values for executing the rule during a specific time period.
    ScheduledWeeklies List<RulesetRuleTimeFrameScheduledWeekly>
    Values for executing the rule on a recurring schedule.
    ActiveBetweens []RulesetRuleTimeFrameActiveBetween
    Values for executing the rule during a specific time period.
    ScheduledWeeklies []RulesetRuleTimeFrameScheduledWeekly
    Values for executing the rule on a recurring schedule.
    activeBetweens List<RulesetRuleTimeFrameActiveBetween>
    Values for executing the rule during a specific time period.
    scheduledWeeklies List<RulesetRuleTimeFrameScheduledWeekly>
    Values for executing the rule on a recurring schedule.
    activeBetweens RulesetRuleTimeFrameActiveBetween[]
    Values for executing the rule during a specific time period.
    scheduledWeeklies RulesetRuleTimeFrameScheduledWeekly[]
    Values for executing the rule on a recurring schedule.
    active_betweens Sequence[RulesetRuleTimeFrameActiveBetween]
    Values for executing the rule during a specific time period.
    scheduled_weeklies Sequence[RulesetRuleTimeFrameScheduledWeekly]
    Values for executing the rule on a recurring schedule.
    activeBetweens List<Property Map>
    Values for executing the rule during a specific time period.
    scheduledWeeklies List<Property Map>
    Values for executing the rule on a recurring schedule.

    RulesetRuleTimeFrameActiveBetween, RulesetRuleTimeFrameActiveBetweenArgs

    EndTime int
    StartTime int
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    EndTime int
    StartTime int
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    endTime Integer
    startTime Integer
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    endTime number
    startTime number
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    end_time int
    start_time int
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    endTime Number
    startTime Number
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.

    RulesetRuleTimeFrameScheduledWeekly, RulesetRuleTimeFrameScheduledWeeklyArgs

    Duration int
    Length of time the schedule will be active in milliseconds. For example duration = 2 * 60 * 60 * 1000 if you want your rule to apply for 2 hours, from the specified start_time.
    StartTime int
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    Timezone string
    The name of the timezone for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: timezone = "America/Toronto"
    Weekdays List<int>
    An integer array representing which days during the week the rule executes. For example weekdays = [1,3,7] would execute on Monday, Wednesday and Sunday.
    Duration int
    Length of time the schedule will be active in milliseconds. For example duration = 2 * 60 * 60 * 1000 if you want your rule to apply for 2 hours, from the specified start_time.
    StartTime int
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    Timezone string
    The name of the timezone for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: timezone = "America/Toronto"
    Weekdays []int
    An integer array representing which days during the week the rule executes. For example weekdays = [1,3,7] would execute on Monday, Wednesday and Sunday.
    duration Integer
    Length of time the schedule will be active in milliseconds. For example duration = 2 * 60 * 60 * 1000 if you want your rule to apply for 2 hours, from the specified start_time.
    startTime Integer
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    timezone String
    The name of the timezone for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: timezone = "America/Toronto"
    weekdays List<Integer>
    An integer array representing which days during the week the rule executes. For example weekdays = [1,3,7] would execute on Monday, Wednesday and Sunday.
    duration number
    Length of time the schedule will be active in milliseconds. For example duration = 2 * 60 * 60 * 1000 if you want your rule to apply for 2 hours, from the specified start_time.
    startTime number
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    timezone string
    The name of the timezone for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: timezone = "America/Toronto"
    weekdays number[]
    An integer array representing which days during the week the rule executes. For example weekdays = [1,3,7] would execute on Monday, Wednesday and Sunday.
    duration int
    Length of time the schedule will be active in milliseconds. For example duration = 2 * 60 * 60 * 1000 if you want your rule to apply for 2 hours, from the specified start_time.
    start_time int
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    timezone str
    The name of the timezone for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: timezone = "America/Toronto"
    weekdays Sequence[int]
    An integer array representing which days during the week the rule executes. For example weekdays = [1,3,7] would execute on Monday, Wednesday and Sunday.
    duration Number
    Length of time the schedule will be active in milliseconds. For example duration = 2 * 60 * 60 * 1000 if you want your rule to apply for 2 hours, from the specified start_time.
    startTime Number
    A Unix timestamp in milliseconds which is combined with the timezone to determine the time this rule will start on each specified weekday. Note that the date of the timestamp you specify does not matter, except that it lets you determine whether daylight saving time is in effect so that you use the correct UTC offset for the timezone you specify. In practice, you may want to use the time_static resource to generate this value, as demonstrated in the resource.pagerduty_ruleset_rule.foo code example at the top of this page. To generate this timestamp manually, if you want your rule to apply starting at 9:30am in the America/New_York timezone, use your programing language of choice to determine a Unix timestamp that represents 9:30am in that timezone, like 1554989400000.
    timezone String
    The name of the timezone for the given schedule, which will be used to determine UTC offset including adjustment for daylight saving time. For example: timezone = "America/Toronto"
    weekdays List<Number>
    An integer array representing which days during the week the rule executes. For example weekdays = [1,3,7] would execute on Monday, Wednesday and Sunday.

    RulesetRuleVariable, RulesetRuleVariableArgs

    RulesetRuleVariableParameter, RulesetRuleVariableParameterArgs

    Path string
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    Path string
    Value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path String
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path string
    value string
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path str
    value str
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
    path String
    value String
    Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.

    Import

    Ruleset rules can be imported using the related ruleset ID and the ruleset_rule ID separated by a dot, e.g.

    $ pulumi import pagerduty:index/rulesetRule:RulesetRule main a19cdca1-3d5e-4b52-bfea-8c8de04da243.19acac92-027a-4ea0-b06c-bbf516519601
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    PagerDuty pulumi/pulumi-pagerduty
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the pagerduty Terraform Provider.
    pagerduty logo
    PagerDuty v4.17.0 published on Wednesday, Nov 20, 2024 by Pulumi