pagerduty.RulesetRule
Explore with Pulumi AI
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
Ruleset
Rule Actions - 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
Ruleset
Rule Conditions - 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 RulesetRule Time Frame - Settings for scheduling the rule.
- Variables
List<Ruleset
Rule Variable> - 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
Ruleset
Rule Actions Args - 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
Ruleset
Rule Conditions Args - 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 RulesetRule Time Frame Args - Settings for scheduling the rule.
- Variables
[]Ruleset
Rule Variable Args - 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
Ruleset
Rule Actions - Actions to apply to an event if the conditions match.
- catch
All 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
Ruleset
Rule Conditions - 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.
- time
Frame RulesetRule Time Frame - Settings for scheduling the rule.
- variables
List<Ruleset
Rule Variable> - 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
Ruleset
Rule Actions - Actions to apply to an event if the conditions match.
- catch
All 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
Ruleset
Rule Conditions - 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.
- time
Frame RulesetRule Time Frame - Settings for scheduling the rule.
- variables
Ruleset
Rule Variable[] - 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
Ruleset
Rule Actions Args - 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
Ruleset
Rule Conditions Args - 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 RulesetRule Time Frame Args - Settings for scheduling the rule.
- variables
Sequence[Ruleset
Rule Variable Args] - 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.
- catch
All 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.
- time
Frame 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.
- Actions
Ruleset
Rule Actions - 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
Ruleset
Rule Conditions - 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.
- Time
Frame RulesetRule Time Frame - Settings for scheduling the rule.
- Variables
List<Ruleset
Rule Variable> - Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple
variable
objects.
- Actions
Ruleset
Rule Actions Args - 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
Ruleset
Rule Conditions Args - 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.
- Time
Frame RulesetRule Time Frame Args - Settings for scheduling the rule.
- Variables
[]Ruleset
Rule Variable Args - Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple
variable
objects.
- actions
Ruleset
Rule Actions - Actions to apply to an event if the conditions match.
- catch
All 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
Ruleset
Rule Conditions - 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.
- time
Frame RulesetRule Time Frame - Settings for scheduling the rule.
- variables
List<Ruleset
Rule Variable> - Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple
variable
objects.
- actions
Ruleset
Rule Actions - Actions to apply to an event if the conditions match.
- catch
All 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
Ruleset
Rule Conditions - 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.
- time
Frame RulesetRule Time Frame - Settings for scheduling the rule.
- variables
Ruleset
Rule Variable[] - Populate variables from event payloads and use those variables in other event actions. NOTE: A rule can have multiple
variable
objects.
- actions
Ruleset
Rule Actions Args - 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
Ruleset
Rule Conditions Args - 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 RulesetRule Time Frame Args - Settings for scheduling the rule.
- variables
Sequence[Ruleset
Rule Variable Args] - 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.
- catch
All 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.
- time
Frame 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<Ruleset
Rule Actions Annotate> - Note added to the event.
- Event
Actions List<RulesetRule Actions Event Action> - An object with a single
value
field. The value sets whether the resulting alert status istrigger
orresolve
. - Extractions
List<Ruleset
Rule Actions Extraction> - Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
- Priorities
List<Ruleset
Rule Actions Priority> - The ID of the priority applied to the event.
- Routes
List<Ruleset
Rule Actions Route> - The ID of the service where the event will be routed.
- Severities
List<Ruleset
Rule Actions Severity> - The severity level of the event. Can be either
info
,warning
,error
, orcritical
. - Suppresses
List<Ruleset
Rule Actions Suppress> - 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<Ruleset
Rule Actions Suspend> - 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 asuspend
action must also have aroute
action.
- Annotates
[]Ruleset
Rule Actions Annotate - Note added to the event.
- Event
Actions []RulesetRule Actions Event Action - An object with a single
value
field. The value sets whether the resulting alert status istrigger
orresolve
. - Extractions
[]Ruleset
Rule Actions Extraction - Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
- Priorities
[]Ruleset
Rule Actions Priority - The ID of the priority applied to the event.
- Routes
[]Ruleset
Rule Actions Route - The ID of the service where the event will be routed.
- Severities
[]Ruleset
Rule Actions Severity - The severity level of the event. Can be either
info
,warning
,error
, orcritical
. - Suppresses
[]Ruleset
Rule Actions Suppress - 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
[]Ruleset
Rule Actions Suspend - 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 asuspend
action must also have aroute
action.
- annotates
List<Ruleset
Rule Actions Annotate> - Note added to the event.
- event
Actions List<RulesetRule Actions Event Action> - An object with a single
value
field. The value sets whether the resulting alert status istrigger
orresolve
. - extractions
List<Ruleset
Rule Actions Extraction> - Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
- priorities
List<Ruleset
Rule Actions Priority> - The ID of the priority applied to the event.
- routes
List<Ruleset
Rule Actions Route> - The ID of the service where the event will be routed.
- severities
List<Ruleset
Rule Actions Severity> - The severity level of the event. Can be either
info
,warning
,error
, orcritical
. - suppresses
List<Ruleset
Rule Actions Suppress> - 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<Ruleset
Rule Actions Suspend> - 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 asuspend
action must also have aroute
action.
- annotates
Ruleset
Rule Actions Annotate[] - Note added to the event.
- event
Actions RulesetRule Actions Event Action[] - An object with a single
value
field. The value sets whether the resulting alert status istrigger
orresolve
. - extractions
Ruleset
Rule Actions Extraction[] - Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
- priorities
Ruleset
Rule Actions Priority[] - The ID of the priority applied to the event.
- routes
Ruleset
Rule Actions Route[] - The ID of the service where the event will be routed.
- severities
Ruleset
Rule Actions Severity[] - The severity level of the event. Can be either
info
,warning
,error
, orcritical
. - suppresses
Ruleset
Rule Actions Suppress[] - 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
Ruleset
Rule Actions Suspend[] - 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 asuspend
action must also have aroute
action.
- annotates
Sequence[Ruleset
Rule Actions Annotate] - Note added to the event.
- event_
actions Sequence[RulesetRule Actions Event Action] - An object with a single
value
field. The value sets whether the resulting alert status istrigger
orresolve
. - extractions
Sequence[Ruleset
Rule Actions Extraction] - Allows you to copy important data from one event field to another. Extraction objects may use either of the following field structures:
- priorities
Sequence[Ruleset
Rule Actions Priority] - The ID of the priority applied to the event.
- routes
Sequence[Ruleset
Rule Actions Route] - The ID of the service where the event will be routed.
- severities
Sequence[Ruleset
Rule Actions Severity] - The severity level of the event. Can be either
info
,warning
,error
, orcritical
. - suppresses
Sequence[Ruleset
Rule Actions Suppress] - 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[Ruleset
Rule Actions Suspend] - 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 asuspend
action must also have aroute
action.
- annotates List<Property Map>
- Note added to the event.
- event
Actions List<Property Map> - An object with a single
value
field. The value sets whether the resulting alert status istrigger
orresolve
. - 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
, orcritical
. - 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 asuspend
action must also have aroute
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
- Threshold
Time intAmount - The number value of the
threshold_time_unit
before an incident is created. Must be greater than 0. - Threshold
Time stringUnit - The
seconds
,minutes
, orhours
thethreshold_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.
- Threshold
Time intAmount - The number value of the
threshold_time_unit
before an incident is created. Must be greater than 0. - Threshold
Time stringUnit - The
seconds
,minutes
, orhours
thethreshold_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.
- threshold
Time IntegerAmount - The number value of the
threshold_time_unit
before an incident is created. Must be greater than 0. - threshold
Time StringUnit - The
seconds
,minutes
, orhours
thethreshold_time_amount
should be measured. - threshold
Value 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.
- threshold
Time numberAmount - The number value of the
threshold_time_unit
before an incident is created. Must be greater than 0. - threshold
Time stringUnit - The
seconds
,minutes
, orhours
thethreshold_time_amount
should be measured. - threshold
Value 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_ intamount - The number value of the
threshold_time_unit
before an incident is created. Must be greater than 0. - threshold_
time_ strunit - The
seconds
,minutes
, orhours
thethreshold_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.
- threshold
Time NumberAmount - The number value of the
threshold_time_unit
before an incident is created. Must be greater than 0. - threshold
Time StringUnit - The
seconds
,minutes
, orhours
thethreshold_time_amount
should be measured. - threshold
Value 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
oror
. - Subconditions
List<Ruleset
Rule Conditions Subcondition> - List of sub-conditions that define the condition.
- Operator string
- Operator to combine sub-conditions. Can be
and
oror
. - Subconditions
[]Ruleset
Rule Conditions Subcondition - List of sub-conditions that define the condition.
- operator String
- Operator to combine sub-conditions. Can be
and
oror
. - subconditions
List<Ruleset
Rule Conditions Subcondition> - List of sub-conditions that define the condition.
- operator string
- Operator to combine sub-conditions. Can be
and
oror
. - subconditions
Ruleset
Rule Conditions Subcondition[] - List of sub-conditions that define the condition.
- operator str
- Operator to combine sub-conditions. Can be
and
oror
. - subconditions
Sequence[Ruleset
Rule Conditions Subcondition] - List of sub-conditions that define the condition.
- operator String
- Operator to combine sub-conditions. Can be
and
oror
. - 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
, ornmatches
. - Parameters
List<Ruleset
Rule Conditions Subcondition Parameter> - Parameter for the sub-condition. It requires both a
path
andvalue
to be set.
- Operator string
- Type of operator to apply to the sub-condition. Can be
exists
,nexists
,equals
,nequals
,contains
,ncontains
,matches
, ornmatches
. - Parameters
[]Ruleset
Rule Conditions Subcondition Parameter - Parameter for the sub-condition. It requires both a
path
andvalue
to be set.
- operator String
- Type of operator to apply to the sub-condition. Can be
exists
,nexists
,equals
,nequals
,contains
,ncontains
,matches
, ornmatches
. - parameters
List<Ruleset
Rule Conditions Subcondition Parameter> - Parameter for the sub-condition. It requires both a
path
andvalue
to be set.
- operator string
- Type of operator to apply to the sub-condition. Can be
exists
,nexists
,equals
,nequals
,contains
,ncontains
,matches
, ornmatches
. - parameters
Ruleset
Rule Conditions Subcondition Parameter[] - Parameter for the sub-condition. It requires both a
path
andvalue
to be set.
- operator str
- Type of operator to apply to the sub-condition. Can be
exists
,nexists
,equals
,nequals
,contains
,ncontains
,matches
, ornmatches
. - parameters
Sequence[Ruleset
Rule Conditions Subcondition Parameter] - Parameter for the sub-condition. It requires both a
path
andvalue
to be set.
- operator String
- Type of operator to apply to the sub-condition. Can be
exists
,nexists
,equals
,nequals
,contains
,ncontains
,matches
, ornmatches
. - parameters List<Property Map>
- Parameter for the sub-condition. It requires both a
path
andvalue
to be set.
RulesetRuleConditionsSubconditionParameter, RulesetRuleConditionsSubconditionParameterArgs
RulesetRuleTimeFrame, RulesetRuleTimeFrameArgs
- Active
Betweens List<RulesetRule Time Frame Active Between> - Values for executing the rule during a specific time period.
- Scheduled
Weeklies List<RulesetRule Time Frame Scheduled Weekly> - Values for executing the rule on a recurring schedule.
- Active
Betweens []RulesetRule Time Frame Active Between - Values for executing the rule during a specific time period.
- Scheduled
Weeklies []RulesetRule Time Frame Scheduled Weekly - Values for executing the rule on a recurring schedule.
- active
Betweens List<RulesetRule Time Frame Active Between> - Values for executing the rule during a specific time period.
- scheduled
Weeklies List<RulesetRule Time Frame Scheduled Weekly> - Values for executing the rule on a recurring schedule.
- active
Betweens RulesetRule Time Frame Active Between[] - Values for executing the rule during a specific time period.
- scheduled
Weeklies RulesetRule Time Frame Scheduled Weekly[] - Values for executing the rule on a recurring schedule.
- active_
betweens Sequence[RulesetRule Time Frame Active Between] - Values for executing the rule during a specific time period.
- scheduled_
weeklies Sequence[RulesetRule Time Frame Scheduled Weekly] - Values for executing the rule on a recurring schedule.
- active
Betweens List<Property Map> - Values for executing the rule during a specific time period.
- scheduled
Weeklies List<Property Map> - Values for executing the rule on a recurring schedule.
RulesetRuleTimeFrameActiveBetween, RulesetRuleTimeFrameActiveBetweenArgs
- 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 specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 Integer - start
Time Integer - A Unix timestamp in milliseconds which is combined with the
timezone
to determine the time this rule will start on each specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 number - start
Time number - A Unix timestamp in milliseconds which is combined with the
timezone
to determine the time this rule will start on each specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 Number - start
Time Number - A Unix timestamp in milliseconds which is combined with the
timezone
to determine the time this rule will start on each specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedstart_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 specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedstart_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 specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedstart_time
. - start
Time Integer - A Unix timestamp in milliseconds which is combined with the
timezone
to determine the time this rule will start on each specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedstart_time
. - start
Time number - A Unix timestamp in milliseconds which is combined with the
timezone
to determine the time this rule will start on each specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedstart_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 specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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 specifiedstart_time
. - start
Time Number - A Unix timestamp in milliseconds which is combined with the
timezone
to determine the time this rule will start on each specifiedweekday
. 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 thetime_static
resource to generate this value, as demonstrated in theresource.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 theAmerica/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
- Name string
- Parameters
List<Ruleset
Rule Variable Parameter> - Type string
- Name string
- Parameters
[]Ruleset
Rule Variable Parameter - Type string
- name String
- parameters
List<Ruleset
Rule Variable Parameter> - type String
- name string
- parameters
Ruleset
Rule Variable Parameter[] - type string
- name String
- parameters List<Property Map>
- type String
RulesetRuleVariableParameter, RulesetRuleVariableParameterArgs
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.