AlertMutingRule

Import

Alert conditions can be imported using a composite ID of <account_id>:<muting_rule_id>, e.g.

 $ pulumi import newrelic:index/alertMutingRule:AlertMutingRule foo 538291:6789035

Create a AlertMutingRule Resource

new AlertMutingRule(name: string, args: AlertMutingRuleArgs, opts?: CustomResourceOptions);
@overload
def AlertMutingRule(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    account_id: Optional[int] = None,
                    condition: Optional[AlertMutingRuleConditionArgs] = None,
                    description: Optional[str] = None,
                    enabled: Optional[bool] = None,
                    name: Optional[str] = None,
                    schedule: Optional[AlertMutingRuleScheduleArgs] = None)
@overload
def AlertMutingRule(resource_name: str,
                    args: AlertMutingRuleArgs,
                    opts: Optional[ResourceOptions] = None)
func NewAlertMutingRule(ctx *Context, name string, args AlertMutingRuleArgs, opts ...ResourceOption) (*AlertMutingRule, error)
public AlertMutingRule(string name, AlertMutingRuleArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args AlertMutingRuleArgs
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 AlertMutingRuleArgs
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 AlertMutingRuleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AlertMutingRuleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

AlertMutingRule Resource Properties

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

Inputs

The AlertMutingRule resource accepts the following input properties:

Condition Pulumi.NewRelic.Inputs.AlertMutingRuleConditionArgs
The condition that defines which violations to target. See Nested condition blocks below for details.
Enabled bool
Whether the MutingRule is enabled.
AccountId int
The account id of the MutingRule.
Description string
The description of the MutingRule.
Name string
The name of the MutingRule.
Schedule Pulumi.NewRelic.Inputs.AlertMutingRuleScheduleArgs
Specify a schedule for enabling the MutingRule. See Schedule below for details
Condition AlertMutingRuleCondition
The condition that defines which violations to target. See Nested condition blocks below for details.
Enabled bool
Whether the MutingRule is enabled.
AccountId int
The account id of the MutingRule.
Description string
The description of the MutingRule.
Name string
The name of the MutingRule.
Schedule AlertMutingRuleSchedule
Specify a schedule for enabling the MutingRule. See Schedule below for details
condition AlertMutingRuleConditionArgs
The condition that defines which violations to target. See Nested condition blocks below for details.
enabled boolean
Whether the MutingRule is enabled.
accountId number
The account id of the MutingRule.
description string
The description of the MutingRule.
name string
The name of the MutingRule.
schedule AlertMutingRuleScheduleArgs
Specify a schedule for enabling the MutingRule. See Schedule below for details
condition AlertMutingRuleConditionArgs
The condition that defines which violations to target. See Nested condition blocks below for details.
enabled bool
Whether the MutingRule is enabled.
account_id int
The account id of the MutingRule.
description str
The description of the MutingRule.
name str
The name of the MutingRule.
schedule AlertMutingRuleScheduleArgs
Specify a schedule for enabling the MutingRule. See Schedule below for details

Outputs

All input properties are implicitly available as output properties. Additionally, the AlertMutingRule resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing AlertMutingRule Resource

Get an existing AlertMutingRule 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?: AlertMutingRuleState, opts?: CustomResourceOptions): AlertMutingRule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[int] = None,
        condition: Optional[AlertMutingRuleConditionArgs] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        name: Optional[str] = None,
        schedule: Optional[AlertMutingRuleScheduleArgs] = None) -> AlertMutingRule
func GetAlertMutingRule(ctx *Context, name string, id IDInput, state *AlertMutingRuleState, opts ...ResourceOption) (*AlertMutingRule, error)
public static AlertMutingRule Get(string name, Input<string> id, AlertMutingRuleState? 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:

AccountId int
The account id of the MutingRule.
Condition Pulumi.NewRelic.Inputs.AlertMutingRuleConditionArgs
The condition that defines which violations to target. See Nested condition blocks below for details.
Description string
The description of the MutingRule.
Enabled bool
Whether the MutingRule is enabled.
Name string
The name of the MutingRule.
Schedule Pulumi.NewRelic.Inputs.AlertMutingRuleScheduleArgs
Specify a schedule for enabling the MutingRule. See Schedule below for details
AccountId int
The account id of the MutingRule.
Condition AlertMutingRuleCondition
The condition that defines which violations to target. See Nested condition blocks below for details.
Description string
The description of the MutingRule.
Enabled bool
Whether the MutingRule is enabled.
Name string
The name of the MutingRule.
Schedule AlertMutingRuleSchedule
Specify a schedule for enabling the MutingRule. See Schedule below for details
accountId number
The account id of the MutingRule.
condition AlertMutingRuleConditionArgs
The condition that defines which violations to target. See Nested condition blocks below for details.
description string
The description of the MutingRule.
enabled boolean
Whether the MutingRule is enabled.
name string
The name of the MutingRule.
schedule AlertMutingRuleScheduleArgs
Specify a schedule for enabling the MutingRule. See Schedule below for details
account_id int
The account id of the MutingRule.
condition AlertMutingRuleConditionArgs
The condition that defines which violations to target. See Nested condition blocks below for details.
description str
The description of the MutingRule.
enabled bool
Whether the MutingRule is enabled.
name str
The name of the MutingRule.
schedule AlertMutingRuleScheduleArgs
Specify a schedule for enabling the MutingRule. See Schedule below for details

Supporting Types

AlertMutingRuleCondition

Conditions List<Pulumi.NewRelic.Inputs.AlertMutingRuleConditionConditionArgs>
The individual MutingRuleConditions within the group. See Nested conditions blocks below for details.
Operator string
The operator used to combine all the MutingRuleConditions within the group.
Conditions []AlertMutingRuleConditionCondition
The individual MutingRuleConditions within the group. See Nested conditions blocks below for details.
Operator string
The operator used to combine all the MutingRuleConditions within the group.
conditions AlertMutingRuleConditionConditionArgs[]
The individual MutingRuleConditions within the group. See Nested conditions blocks below for details.
operator string
The operator used to combine all the MutingRuleConditions within the group.
conditions Sequence[AlertMutingRuleConditionConditionArgs]
The individual MutingRuleConditions within the group. See Nested conditions blocks below for details.
operator str
The operator used to combine all the MutingRuleConditions within the group.

AlertMutingRuleConditionCondition

Attribute string
The attribute on a violation.
Operator string
The operator used to compare the attribute’s value with the supplied value(s)
Values List<string>
The value(s) to compare against the attribute’s value.
Attribute string
The attribute on a violation.
Operator string
The operator used to compare the attribute’s value with the supplied value(s)
Values []string
The value(s) to compare against the attribute’s value.
attribute string
The attribute on a violation.
operator string
The operator used to compare the attribute’s value with the supplied value(s)
values string[]
The value(s) to compare against the attribute’s value.
attribute str
The attribute on a violation.
operator str
The operator used to compare the attribute’s value with the supplied value(s)
values Sequence[str]
The value(s) to compare against the attribute’s value.

AlertMutingRuleSchedule

TimeZone string
EndRepeat string
The datetime stamp when the muting rule schedule stops repeating. This is in local ISO 8601 format without an offset. Example: ‘2020-07-10T15:00:00’. Conflicts with repeat_count
EndTime string
The datetime stamp that represents when the muting rule ends. This is in local ISO 8601 format without an offset. Example: ‘2020-07-15T14:30:00’
Repeat string
The frequency the muting rule schedule repeats. If it does not repeat, omit this field. Options are DAILY, WEEKLY, MONTHLY
RepeatCount int
The number of times the muting rule schedule repeats. This includes the original schedule. For example, a repeatCount of 2 will recur one time. Conflicts with end_repeat
StartTime string
The datetime stamp that represents when the muting rule starts. This is in local ISO 8601 format without an offset. Example: ‘2020-07-08T14:30:00’
WeeklyRepeatDays List<string>
The day(s) of the week that a muting rule should repeat when the repeat field is set to ‘WEEKLY’. Example: [‘MONDAY’, ‘WEDNESDAY’]
TimeZone string
EndRepeat string
The datetime stamp when the muting rule schedule stops repeating. This is in local ISO 8601 format without an offset. Example: ‘2020-07-10T15:00:00’. Conflicts with repeat_count
EndTime string
The datetime stamp that represents when the muting rule ends. This is in local ISO 8601 format without an offset. Example: ‘2020-07-15T14:30:00’
Repeat string
The frequency the muting rule schedule repeats. If it does not repeat, omit this field. Options are DAILY, WEEKLY, MONTHLY
RepeatCount int
The number of times the muting rule schedule repeats. This includes the original schedule. For example, a repeatCount of 2 will recur one time. Conflicts with end_repeat
StartTime string
The datetime stamp that represents when the muting rule starts. This is in local ISO 8601 format without an offset. Example: ‘2020-07-08T14:30:00’
WeeklyRepeatDays []string
The day(s) of the week that a muting rule should repeat when the repeat field is set to ‘WEEKLY’. Example: [‘MONDAY’, ‘WEDNESDAY’]
timeZone string
endRepeat string
The datetime stamp when the muting rule schedule stops repeating. This is in local ISO 8601 format without an offset. Example: ‘2020-07-10T15:00:00’. Conflicts with repeat_count
endTime string
The datetime stamp that represents when the muting rule ends. This is in local ISO 8601 format without an offset. Example: ‘2020-07-15T14:30:00’
repeat string
The frequency the muting rule schedule repeats. If it does not repeat, omit this field. Options are DAILY, WEEKLY, MONTHLY
repeatCount number
The number of times the muting rule schedule repeats. This includes the original schedule. For example, a repeatCount of 2 will recur one time. Conflicts with end_repeat
startTime string
The datetime stamp that represents when the muting rule starts. This is in local ISO 8601 format without an offset. Example: ‘2020-07-08T14:30:00’
weeklyRepeatDays string[]
The day(s) of the week that a muting rule should repeat when the repeat field is set to ‘WEEKLY’. Example: [‘MONDAY’, ‘WEDNESDAY’]
time_zone str
end_repeat str
The datetime stamp when the muting rule schedule stops repeating. This is in local ISO 8601 format without an offset. Example: ‘2020-07-10T15:00:00’. Conflicts with repeat_count
end_time str
The datetime stamp that represents when the muting rule ends. This is in local ISO 8601 format without an offset. Example: ‘2020-07-15T14:30:00’
repeat str
The frequency the muting rule schedule repeats. If it does not repeat, omit this field. Options are DAILY, WEEKLY, MONTHLY
repeat_count int
The number of times the muting rule schedule repeats. This includes the original schedule. For example, a repeatCount of 2 will recur one time. Conflicts with end_repeat
start_time str
The datetime stamp that represents when the muting rule starts. This is in local ISO 8601 format without an offset. Example: ‘2020-07-08T14:30:00’
weekly_repeat_days Sequence[str]
The day(s) of the week that a muting rule should repeat when the repeat field is set to ‘WEEKLY’. Example: [‘MONDAY’, ‘WEDNESDAY’]

Package Details

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