RulesetRule
An event rule allows you to set actions that should be taken on events that meet your designated rule criteria.
Create a RulesetRule Resource
new RulesetRule(name: string, args: RulesetRuleArgs, opts?: CustomResourceOptions);def RulesetRule(resource_name, opts=None, actions=None, conditions=None, disabled=None, position=None, ruleset=None, time_frame=None, __props__=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.
- opts ResourceOptions
- A bag of options that control this 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
Ruleset
Rule Actions Args Actions to apply to an event if the conditions match.
- 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.
- 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.
- 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.
- 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.
- 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.
- ruleset str
The ID of the ruleset that the rule belongs to.
- actions
Dict[Ruleset
Rule Actions] Actions to apply to an event if the conditions match.
- conditions
Dict[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 float
Position/index of the rule within the ruleset.
- time_
frame Dict[RulesetRule Time Frame] Settings for scheduling the rule.
Outputs
All input properties are implicitly available as output properties. Additionally, the RulesetRule resource produces the following output properties:
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): RulesetRulestatic get(resource_name, id, opts=None, actions=None, conditions=None, disabled=None, position=None, ruleset=None, time_frame=None, __props__=None);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
Ruleset
Rule Actions Args Actions to apply to an event if the conditions match.
- 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.
- Actions
Ruleset
Rule Actions Actions to apply to an event if the conditions match.
- 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.
- actions
Ruleset
Rule Actions Actions to apply to an event if the conditions match.
- 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.
- actions
Dict[Ruleset
Rule Actions] Actions to apply to an event if the conditions match.
- conditions
Dict[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 float
Position/index of the rule within the ruleset.
- ruleset str
The ID of the ruleset that the rule belongs to.
- time_
frame Dict[RulesetRule Time Frame] Settings for scheduling the rule.
Supporting Types
RulesetRuleActions
- Annotates
List<Ruleset
Rule Actions Annotate Args> Note added to the event.
- Event
Actions List<RulesetRule Actions Event Action Args> - Extractions
List<Ruleset
Rule Actions Extraction Args> Allows you to copy important data from one event field to another. Extraction rules must use valid RE2 regular expression syntax. Extraction objects consist of the following fields:
- Priorities
List<Ruleset
Rule Actions Priority Args> The ID of the priority applied to the event.
- Routes
List<Ruleset
Rule Actions Route Args> The ID of the service where the event will be routed.
- Severities
List<Ruleset
Rule Actions Severity Args> The severity level of the event. Can be either
info,error,warning, orcritical.- Suppresses
List<Ruleset
Rule Actions Suppress Args> Controls whether an alert is suppressed (does not create an incident).
- Annotates
[]Ruleset
Rule Actions Annotate Note added to the event.
- Event
Actions []RulesetRule Actions Event Action - Extractions
[]Ruleset
Rule Actions Extraction Allows you to copy important data from one event field to another. Extraction rules must use valid RE2 regular expression syntax. Extraction objects consist of the following fields:
- 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,error,warning, orcritical.- Suppresses
[]Ruleset
Rule Actions Suppress Controls whether an alert is suppressed (does not create an incident).
- annotates
Ruleset
Rule Actions Annotate[] Note added to the event.
- event
Actions RulesetRule Actions Event Action[] - extractions
Ruleset
Rule Actions Extraction[] Allows you to copy important data from one event field to another. Extraction rules must use valid RE2 regular expression syntax. Extraction objects consist of the following fields:
- 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,error,warning, orcritical.- suppresses
Ruleset
Rule Actions Suppress[] Controls whether an alert is suppressed (does not create an incident).
- annotates
List[Ruleset
Rule Actions Annotate] Note added to the event.
- event
Actions List[RulesetRule Actions Event Action] - extractions
List[Ruleset
Rule Actions Extraction] Allows you to copy important data from one event field to another. Extraction rules must use valid RE2 regular expression syntax. Extraction objects consist of the following fields:
- 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,error,warning, orcritical.- suppresses
List[Ruleset
Rule Actions Suppress] Controls whether an alert is suppressed (does not create an incident).
RulesetRuleActionsAnnotate
RulesetRuleActionsEventAction
RulesetRuleActionsExtraction
RulesetRuleActionsPriority
RulesetRuleActionsRoute
RulesetRuleActionsSeverity
RulesetRuleActionsSuppress
- Threshold
Time intAmount The number value of the
threshold_time_unitbefore an incident is created.- Threshold
Time stringUnit The
minutes,hours, ordaysthat thethreshold_time_amountshould be measured.- Threshold
Value int The number of alerts that should be suppressed.
- 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_unitbefore an incident is created.- Threshold
Time stringUnit The
minutes,hours, ordaysthat thethreshold_time_amountshould be measured.- Threshold
Value int The number of alerts that should be suppressed.
- 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_unitbefore an incident is created.- threshold
Time stringUnit The
minutes,hours, ordaysthat thethreshold_time_amountshould be measured.- threshold
Value number The number of alerts that should be suppressed.
- value boolean
Boolean value that indicates if the alert should be suppressed before the indicated threshold values are met.
- threshold
Time floatAmount The number value of the
threshold_time_unitbefore an incident is created.- threshold
Time strUnit The
minutes,hours, ordaysthat thethreshold_time_amountshould be measured.- threshold
Value float The number of alerts that should be suppressed.
- value bool
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
andoror.- Subconditions
List<Ruleset
Rule Conditions Subcondition Args> List of sub-conditions that define the the condition.
- Operator string
Operator to combine sub-conditions. Can be
andoror.- Subconditions
[]Ruleset
Rule Conditions Subcondition List of sub-conditions that define the the condition.
- operator string
Operator to combine sub-conditions. Can be
andoror.- subconditions
Ruleset
Rule Conditions Subcondition[] List of sub-conditions that define the the condition.
- operator str
Operator to combine sub-conditions. Can be
andoror.- subconditions
List[Ruleset
Rule Conditions Subcondition] 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, ornmatches.- Parameters
List<Ruleset
Rule Conditions Subcondition Parameter Args> Parameter for the sub-condition. It requires both a
pathandvalueto 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
pathandvalueto 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
pathandvalueto be set.
- operator str
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
pathandvalueto be set.
RulesetRuleConditionsSubconditionParameter
RulesetRuleTimeFrame
- Active
Betweens List<RulesetRule Time Frame Active Between Args> Values for executing the rule during a specific time period.
- Scheduled
Weeklies List<RulesetRule Time Frame Scheduled Weekly Args> 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 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.
RulesetRuleTimeFrameActiveBetween
- 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_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01: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_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01:00.
- end
Time number Ending of the scheduled time when the rule should execute. Unix timestamp in milliseconds.
- start
Time number Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a
start_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01:00.
- end_
time float Ending of the scheduled time when the rule should execute. Unix timestamp in milliseconds.
- start_
time float Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a
start_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01:00.
RulesetRuleTimeFrameScheduledWeekly
- 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_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01: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.
- Start
Time int Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a
start_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01: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.
- start
Time number Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a
start_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01: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 float
Length of time the schedule will be active. Unix timestamp in milliseconds.
- start_
time float Time when the schedule will start. Unix timestamp in milliseconds. For example, if you have a rule with a
start_timeof0and adurationof60,000then that rule would be active from00:00to00:01. If thestart_timewas3,600,000the it would be active starting at01:00.- timezone str
Timezone for the given schedule.
- 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-pagerduty
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
pagerdutyTerraform Provider.