RulesetRule

An event rule allows you to set actions that should be taken on events that meet your designated rule criteria.

Example Usage

using Pulumi;
using Pagerduty = Pulumi.Pagerduty;

class MyStack : Stack
{
    public MyStack()
    {
        var fooTeam = new Pagerduty.Team("fooTeam", new Pagerduty.TeamArgs
        {
        });
        var fooRuleset = new Pagerduty.Ruleset("fooRuleset", new Pagerduty.RulesetArgs
        {
            Team = new Pagerduty.Inputs.RulesetTeamArgs
            {
                Id = fooTeam.Id,
            },
        });
        var fooRulesetRule = new Pagerduty.RulesetRule("fooRulesetRule", new Pagerduty.RulesetRuleArgs
        {
            Ruleset = fooRuleset.Id,
            Position = 0,
            Disabled = false,
            TimeFrame = new Pagerduty.Inputs.RulesetRuleTimeFrameArgs
            {
                ScheduledWeeklies = 
                {
                    new Pagerduty.Inputs.RulesetRuleTimeFrameScheduledWeeklyArgs
                    {
                        Weekdays = 
                        {
                            3,
                            7,
                        },
                        Timezone = "America/Los_Angeles",
                        StartTime = 1000000,
                        Duration = 3600000,
                    },
                },
            },
            Conditions = new Pagerduty.Inputs.RulesetRuleConditionsArgs
            {
                Operator = "and",
                Subconditions = 
                {
                    new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                    {
                        Operator = "contains",
                        Parameters = 
                        {
                            new Pagerduty.Inputs.RulesetRuleConditionsSubconditionParameterArgs
                            {
                                Value = "disk space",
                                Path = "payload.summary",
                            },
                        },
                    },
                    new Pagerduty.Inputs.RulesetRuleConditionsSubconditionArgs
                    {
                        Operator = "contains",
                        Parameters = 
                        {
                            new Pagerduty.Inputs.RulesetRuleConditionsSubconditionParameterArgs
                            {
                                Value = "db",
                                Path = "payload.source",
                            },
                        },
                    },
                },
            },
            Variables = 
            {
                new Pagerduty.Inputs.RulesetRuleVariableArgs
                {
                    Type = "regex",
                    Name = "Src",
                    Parameters = 
                    {
                        new Pagerduty.Inputs.RulesetRuleVariableParameterArgs
                        {
                            Value = "(.*)",
                            Path = "payload.source",
                        },
                    },
                },
            },
            Actions = new Pagerduty.Inputs.RulesetRuleActionsArgs
            {
                Routes = 
                {
                    new Pagerduty.Inputs.RulesetRuleActionsRouteArgs
                    {
                        Value = "P5DTL0K",
                    },
                },
                Severities = 
                {
                    new Pagerduty.Inputs.RulesetRuleActionsSeverityArgs
                    {
                        Value = "warning",
                    },
                },
                Annotates = 
                {
                    new Pagerduty.Inputs.RulesetRuleActionsAnnotateArgs
                    {
                        Value = "From Terraform",
                    },
                },
                Extractions = 
                {
                    new Pagerduty.Inputs.RulesetRuleActionsExtractionArgs
                    {
                        Target = "dedup_key",
                        Source = "details.host",
                        Regex = "(.*)",
                    },
                    new Pagerduty.Inputs.RulesetRuleActionsExtractionArgs
                    {
                        Target = "summary",
                        Template = "Warning: Disk Space Low on {{Src}}",
                    },
                },
            },
        });
    }

}

Coming soon!

import pulumi
import pulumi_pagerduty as pagerduty

foo_team = pagerduty.Team("fooTeam")
foo_ruleset = pagerduty.Ruleset("fooRuleset", team=pagerduty.RulesetTeamArgs(
    id=foo_team.id,
))
foo_ruleset_rule = pagerduty.RulesetRule("fooRulesetRule",
    ruleset=foo_ruleset.id,
    position=0,
    disabled=False,
    time_frame=pagerduty.RulesetRuleTimeFrameArgs(
        scheduled_weeklies=[pagerduty.RulesetRuleTimeFrameScheduledWeeklyArgs(
            weekdays=[
                3,
                7,
            ],
            timezone="America/Los_Angeles",
            start_time="1000000",
            duration=3600000,
        )],
    ),
    conditions=pagerduty.RulesetRuleConditionsArgs(
        operator="and",
        subconditions=[
            pagerduty.RulesetRuleConditionsSubconditionArgs(
                operator="contains",
                parameters=[pagerduty.RulesetRuleConditionsSubconditionParameterArgs(
                    value="disk space",
                    path="payload.summary",
                )],
            ),
            pagerduty.RulesetRuleConditionsSubconditionArgs(
                operator="contains",
                parameters=[pagerduty.RulesetRuleConditionsSubconditionParameterArgs(
                    value="db",
                    path="payload.source",
                )],
            ),
        ],
    ),
    variables=[pagerduty.RulesetRuleVariableArgs(
        type="regex",
        name="Src",
        parameters=[pagerduty.RulesetRuleVariableParameterArgs(
            value="(.*)",
            path="payload.source",
        )],
    )],
    actions=pagerduty.RulesetRuleActionsArgs(
        routes=[pagerduty.RulesetRuleActionsRouteArgs(
            value="P5DTL0K",
        )],
        severities=[pagerduty.RulesetRuleActionsSeverityArgs(
            value="warning",
        )],
        annotates=[pagerduty.RulesetRuleActionsAnnotateArgs(
            value="From Terraform",
        )],
        extractions=[
            pagerduty.RulesetRuleActionsExtractionArgs(
                target="dedup_key",
                source="details.host",
                regex="(.*)",
            ),
            pagerduty.RulesetRuleActionsExtractionArgs(
                target="summary",
                template="Warning: Disk Space Low on {{Src}}",
            ),
        ],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as pagerduty from "@pulumi/pagerduty";

const fooTeam = new pagerduty.Team("fooTeam", {});
const fooRuleset = new pagerduty.Ruleset("fooRuleset", {team: {
    id: fooTeam.id,
}});
const fooRulesetRule = new pagerduty.RulesetRule("fooRulesetRule", {
    ruleset: fooRuleset.id,
    position: 0,
    disabled: "false",
    timeFrame: {
        scheduledWeeklies: [{
            weekdays: [
                3,
                7,
            ],
            timezone: "America/Los_Angeles",
            startTime: "1000000",
            duration: "3600000",
        }],
    },
    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: "P5DTL0K",
        }],
        severities: [{
            value: "warning",
        }],
        annotates: [{
            value: "From Terraform",
        }],
        extractions: [
            {
                target: "dedup_key",
                source: "details.host",
                regex: "(.*)",
            },
            {
                target: "summary",
                template: "Warning: Disk Space Low on {{Src}}",
            },
        ],
    },
});

Create a RulesetRule Resource

new RulesetRule(name: string, args: RulesetRuleArgs, opts?: CustomResourceOptions);
@overload
def RulesetRule(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                actions: Optional[RulesetRuleActionsArgs] = 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)
@overload
def RulesetRule(resource_name: str,
                args: RulesetRuleArgs,
                opts: Optional[ResourceOptions] = None)
func NewRulesetRule(ctx *Context, name string, args RulesetRuleArgs, opts ...ResourceOption) (*RulesetRule, error)
public RulesetRule(string name, RulesetRuleArgs args, CustomResourceOptions? opts = null)
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.

RulesetRule Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The RulesetRule resource accepts the following input properties:

Ruleset string
The ID of the ruleset that the rule belongs to.
Actions RulesetRuleActionsArgs
Actions to apply to an event if the conditions match.
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 List<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.
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 []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.
conditions RulesetRuleConditionsArgs
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 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 str
The ID of the ruleset that the rule belongs to.
actions RulesetRuleActionsArgs
Actions to apply to an event if the conditions match.
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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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,
        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)
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.

The following state arguments are supported:

Actions RulesetRuleActionsArgs
Actions to apply to an event if the conditions match.
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 List<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.
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 []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.
conditions RulesetRuleConditionsArgs
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 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 RulesetRuleActionsArgs
Actions to apply to an event if the conditions match.
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.

Supporting Types

RulesetRuleActions

Annotates List<RulesetRuleActionsAnnotateArgs>
Note added to the event.
EventActions List<RulesetRuleActionsEventActionArgs>
An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
Extractions List<RulesetRuleActionsExtractionArgs>
Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
Priorities List<RulesetRuleActionsPriorityArgs>
The ID of the priority applied to the event.
Routes List<RulesetRuleActionsRouteArgs>
The ID of the service where the event will be routed.
Severities List<RulesetRuleActionsSeverityArgs>
The severity level of the event. Can be either info,error,warning, or critical.
Suppresses List<RulesetRuleActionsSuppressArgs>
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<RulesetRuleActionsSuspendArgs>
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,error,warning, 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 RulesetRuleActionsAnnotateArgs[]
Note added to the event.
eventActions RulesetRuleActionsEventActionArgs[]
An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
extractions RulesetRuleActionsExtractionArgs[]
Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
priorities RulesetRuleActionsPriorityArgs[]
The ID of the priority applied to the event.
routes RulesetRuleActionsRouteArgs[]
The ID of the service where the event will be routed.
severities RulesetRuleActionsSeverityArgs[]
The severity level of the event. Can be either info,error,warning, or critical.
suppresses RulesetRuleActionsSuppressArgs[]
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 RulesetRuleActionsSuspendArgs[]
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[RulesetRuleActionsAnnotateArgs]
Note added to the event.
event_actions Sequence[RulesetRuleActionsEventActionArgs]
An object with a single value field. The value sets whether the resulting alert status is trigger or resolve.
extractions Sequence[RulesetRuleActionsExtractionArgs]
Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
priorities Sequence[RulesetRuleActionsPriorityArgs]
The ID of the priority applied to the event.
routes Sequence[RulesetRuleActionsRouteArgs]
The ID of the service where the event will be routed.
severities Sequence[RulesetRuleActionsSeverityArgs]
The severity level of the event. Can be either info,error,warning, or critical.
suppresses Sequence[RulesetRuleActionsSuppressArgs]
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[RulesetRuleActionsSuspendArgs]
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

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.

RulesetRuleActionsEventAction

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.

RulesetRuleActionsExtraction

Regex string
The conditions that need to be met for the extraction to happen. Must use valid RE2 regular expression syntax.
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.
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.
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.
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.
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.
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.
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.
template str
A customized field message. This can also include variables extracted from the payload by using string interpolation.

RulesetRuleActionsPriority

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.

RulesetRuleActionsRoute

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.

RulesetRuleActionsSeverity

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.

RulesetRuleActionsSuppress

ThresholdTimeAmount int
The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
ThresholdTimeUnit string
The minutes,hours, or days that 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 minutes,hours, or days that 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 number
The number value of the threshold_time_unit before an incident is created. Must be greater than 0.
thresholdTimeUnit string
The minutes,hours, or days that 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 minutes,hours, or days that 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.

RulesetRuleActionsSuspend

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 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.

RulesetRuleConditions

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

RulesetRuleConditionsSubcondition

Operator string
Type of operator to apply to the sub-condition. Can be exists,nexists,equals,nequals,contains,ncontains,matches, or nmatches.
Parameters List<RulesetRuleConditionsSubconditionParameterArgs>
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 RulesetRuleConditionsSubconditionParameterArgs[]
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[RulesetRuleConditionsSubconditionParameterArgs]
Parameter for the sub-condition. It requires both a path and value to be set.

RulesetRuleConditionsSubconditionParameter

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.

RulesetRuleTimeFrame

ActiveBetweens List<RulesetRuleTimeFrameActiveBetweenArgs>
Values for executing the rule during a specific time period.
ScheduledWeeklies List<RulesetRuleTimeFrameScheduledWeeklyArgs>
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 RulesetRuleTimeFrameActiveBetweenArgs[]
Values for executing the rule during a specific time period.
scheduledWeeklies RulesetRuleTimeFrameScheduledWeeklyArgs[]
Values for executing the rule on a recurring schedule.
active_betweens Sequence[RulesetRuleTimeFrameActiveBetweenArgs]
Values for executing the rule during a specific time period.
scheduled_weeklies Sequence[RulesetRuleTimeFrameScheduledWeeklyArgs]
Values for executing the rule on a recurring schedule.

RulesetRuleTimeFrameActiveBetween

EndTime int
Ending of the scheduled time when the rule should execute. Unix timestamp in milliseconds.
StartTime int
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
EndTime int
Ending of the scheduled time when the rule should execute. Unix timestamp in milliseconds.
StartTime int
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
endTime number
Ending of the scheduled time when the rule should execute. Unix timestamp in milliseconds.
startTime number
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
end_time int
Ending of the scheduled time when the rule should execute. Unix timestamp in milliseconds.
start_time int
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.

RulesetRuleTimeFrameScheduledWeekly

Duration int
Length of time the schedule will be active. Unix timestamp in milliseconds.
StartTime int
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
Timezone string
Timezone for the given schedule.
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. Unix timestamp in milliseconds.
StartTime int
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
Timezone string
Timezone for the given schedule.
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 number
Length of time the schedule will be active. Unix timestamp in milliseconds.
startTime number
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
timezone string
Timezone for the given schedule.
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. Unix timestamp in milliseconds.
start_time int
Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a start_time of 0 and a duration of 60,000 then that rule would be active from 00:00 to 00:01. If the start_time was 3,600,000 the it would be active starting at 01:00.
timezone str
Timezone for the given schedule.
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.

RulesetRuleVariable

RulesetRuleVariableParameter

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.

Import

Ruleset rules can be imported using 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

Package Details

Repository
https://github.com/pulumi/pulumi-pagerduty
License
Apache-2.0
Notes
This Pulumi package is based on the pagerduty Terraform Provider.