1. Packages
  2. New Relic
  3. API Docs
  4. AlertMutingRule
New Relic v5.23.0 published on Wednesday, Apr 24, 2024 by Pulumi

newrelic.AlertMutingRule

Explore with Pulumi AI

newrelic logo
New Relic v5.23.0 published on Wednesday, Apr 24, 2024 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as newrelic from "@pulumi/newrelic";
    
    const foo = new newrelic.AlertMutingRule("foo", {
        name: "Example Muting Rule",
        enabled: true,
        description: "muting rule test.",
        condition: {
            conditions: [
                {
                    attribute: "product",
                    operator: "EQUALS",
                    values: ["APM"],
                },
                {
                    attribute: "targetId",
                    operator: "EQUALS",
                    values: ["Muted"],
                },
            ],
            operator: "AND",
        },
        schedule: {
            startTime: "2021-01-28T15:30:00",
            endTime: "2021-01-28T16:30:00",
            timeZone: "America/Los_Angeles",
            repeat: "WEEKLY",
            weeklyRepeatDays: [
                "MONDAY",
                "WEDNESDAY",
                "FRIDAY",
            ],
            repeatCount: 42,
        },
    });
    
    import pulumi
    import pulumi_newrelic as newrelic
    
    foo = newrelic.AlertMutingRule("foo",
        name="Example Muting Rule",
        enabled=True,
        description="muting rule test.",
        condition=newrelic.AlertMutingRuleConditionArgs(
            conditions=[
                newrelic.AlertMutingRuleConditionConditionArgs(
                    attribute="product",
                    operator="EQUALS",
                    values=["APM"],
                ),
                newrelic.AlertMutingRuleConditionConditionArgs(
                    attribute="targetId",
                    operator="EQUALS",
                    values=["Muted"],
                ),
            ],
            operator="AND",
        ),
        schedule=newrelic.AlertMutingRuleScheduleArgs(
            start_time="2021-01-28T15:30:00",
            end_time="2021-01-28T16:30:00",
            time_zone="America/Los_Angeles",
            repeat="WEEKLY",
            weekly_repeat_days=[
                "MONDAY",
                "WEDNESDAY",
                "FRIDAY",
            ],
            repeat_count=42,
        ))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := newrelic.NewAlertMutingRule(ctx, "foo", &newrelic.AlertMutingRuleArgs{
    			Name:        pulumi.String("Example Muting Rule"),
    			Enabled:     pulumi.Bool(true),
    			Description: pulumi.String("muting rule test."),
    			Condition: &newrelic.AlertMutingRuleConditionArgs{
    				Conditions: newrelic.AlertMutingRuleConditionConditionArray{
    					&newrelic.AlertMutingRuleConditionConditionArgs{
    						Attribute: pulumi.String("product"),
    						Operator:  pulumi.String("EQUALS"),
    						Values: pulumi.StringArray{
    							pulumi.String("APM"),
    						},
    					},
    					&newrelic.AlertMutingRuleConditionConditionArgs{
    						Attribute: pulumi.String("targetId"),
    						Operator:  pulumi.String("EQUALS"),
    						Values: pulumi.StringArray{
    							pulumi.String("Muted"),
    						},
    					},
    				},
    				Operator: pulumi.String("AND"),
    			},
    			Schedule: &newrelic.AlertMutingRuleScheduleArgs{
    				StartTime: pulumi.String("2021-01-28T15:30:00"),
    				EndTime:   pulumi.String("2021-01-28T16:30:00"),
    				TimeZone:  pulumi.String("America/Los_Angeles"),
    				Repeat:    pulumi.String("WEEKLY"),
    				WeeklyRepeatDays: pulumi.StringArray{
    					pulumi.String("MONDAY"),
    					pulumi.String("WEDNESDAY"),
    					pulumi.String("FRIDAY"),
    				},
    				RepeatCount: pulumi.Int(42),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using NewRelic = Pulumi.NewRelic;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new NewRelic.AlertMutingRule("foo", new()
        {
            Name = "Example Muting Rule",
            Enabled = true,
            Description = "muting rule test.",
            Condition = new NewRelic.Inputs.AlertMutingRuleConditionArgs
            {
                Conditions = new[]
                {
                    new NewRelic.Inputs.AlertMutingRuleConditionConditionArgs
                    {
                        Attribute = "product",
                        Operator = "EQUALS",
                        Values = new[]
                        {
                            "APM",
                        },
                    },
                    new NewRelic.Inputs.AlertMutingRuleConditionConditionArgs
                    {
                        Attribute = "targetId",
                        Operator = "EQUALS",
                        Values = new[]
                        {
                            "Muted",
                        },
                    },
                },
                Operator = "AND",
            },
            Schedule = new NewRelic.Inputs.AlertMutingRuleScheduleArgs
            {
                StartTime = "2021-01-28T15:30:00",
                EndTime = "2021-01-28T16:30:00",
                TimeZone = "America/Los_Angeles",
                Repeat = "WEEKLY",
                WeeklyRepeatDays = new[]
                {
                    "MONDAY",
                    "WEDNESDAY",
                    "FRIDAY",
                },
                RepeatCount = 42,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.newrelic.AlertMutingRule;
    import com.pulumi.newrelic.AlertMutingRuleArgs;
    import com.pulumi.newrelic.inputs.AlertMutingRuleConditionArgs;
    import com.pulumi.newrelic.inputs.AlertMutingRuleScheduleArgs;
    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 AlertMutingRule("foo", AlertMutingRuleArgs.builder()        
                .name("Example Muting Rule")
                .enabled(true)
                .description("muting rule test.")
                .condition(AlertMutingRuleConditionArgs.builder()
                    .conditions(                
                        AlertMutingRuleConditionConditionArgs.builder()
                            .attribute("product")
                            .operator("EQUALS")
                            .values("APM")
                            .build(),
                        AlertMutingRuleConditionConditionArgs.builder()
                            .attribute("targetId")
                            .operator("EQUALS")
                            .values("Muted")
                            .build())
                    .operator("AND")
                    .build())
                .schedule(AlertMutingRuleScheduleArgs.builder()
                    .startTime("2021-01-28T15:30:00")
                    .endTime("2021-01-28T16:30:00")
                    .timeZone("America/Los_Angeles")
                    .repeat("WEEKLY")
                    .weeklyRepeatDays(                
                        "MONDAY",
                        "WEDNESDAY",
                        "FRIDAY")
                    .repeatCount(42)
                    .build())
                .build());
    
        }
    }
    
    resources:
      foo:
        type: newrelic:AlertMutingRule
        properties:
          name: Example Muting Rule
          enabled: true
          description: muting rule test.
          condition:
            conditions:
              - attribute: product
                operator: EQUALS
                values:
                  - APM
              - attribute: targetId
                operator: EQUALS
                values:
                  - Muted
            operator: AND
          schedule:
            startTime: 2021-01-28T15:30:00
            endTime: 2021-01-28T16:30:00
            timeZone: America/Los_Angeles
            repeat: WEEKLY
            weeklyRepeatDays:
              - MONDAY
              - WEDNESDAY
              - FRIDAY
            repeatCount: 42
    

    Create AlertMutingRule Resource

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

    Constructor syntax

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

    Example

    The following reference example uses placeholder values for all input properties.

    var alertMutingRuleResource = new NewRelic.AlertMutingRule("alertMutingRuleResource", new()
    {
        Condition = new NewRelic.Inputs.AlertMutingRuleConditionArgs
        {
            Conditions = new[]
            {
                new NewRelic.Inputs.AlertMutingRuleConditionConditionArgs
                {
                    Attribute = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            Operator = "string",
        },
        Enabled = false,
        AccountId = 0,
        Description = "string",
        Name = "string",
        Schedule = new NewRelic.Inputs.AlertMutingRuleScheduleArgs
        {
            TimeZone = "string",
            EndRepeat = "string",
            EndTime = "string",
            Repeat = "string",
            RepeatCount = 0,
            StartTime = "string",
            WeeklyRepeatDays = new[]
            {
                "string",
            },
        },
    });
    
    example, err := newrelic.NewAlertMutingRule(ctx, "alertMutingRuleResource", &newrelic.AlertMutingRuleArgs{
    	Condition: &newrelic.AlertMutingRuleConditionArgs{
    		Conditions: newrelic.AlertMutingRuleConditionConditionArray{
    			&newrelic.AlertMutingRuleConditionConditionArgs{
    				Attribute: pulumi.String("string"),
    				Operator:  pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		Operator: pulumi.String("string"),
    	},
    	Enabled:     pulumi.Bool(false),
    	AccountId:   pulumi.Int(0),
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Schedule: &newrelic.AlertMutingRuleScheduleArgs{
    		TimeZone:    pulumi.String("string"),
    		EndRepeat:   pulumi.String("string"),
    		EndTime:     pulumi.String("string"),
    		Repeat:      pulumi.String("string"),
    		RepeatCount: pulumi.Int(0),
    		StartTime:   pulumi.String("string"),
    		WeeklyRepeatDays: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var alertMutingRuleResource = new AlertMutingRule("alertMutingRuleResource", AlertMutingRuleArgs.builder()        
        .condition(AlertMutingRuleConditionArgs.builder()
            .conditions(AlertMutingRuleConditionConditionArgs.builder()
                .attribute("string")
                .operator("string")
                .values("string")
                .build())
            .operator("string")
            .build())
        .enabled(false)
        .accountId(0)
        .description("string")
        .name("string")
        .schedule(AlertMutingRuleScheduleArgs.builder()
            .timeZone("string")
            .endRepeat("string")
            .endTime("string")
            .repeat("string")
            .repeatCount(0)
            .startTime("string")
            .weeklyRepeatDays("string")
            .build())
        .build());
    
    alert_muting_rule_resource = newrelic.AlertMutingRule("alertMutingRuleResource",
        condition=newrelic.AlertMutingRuleConditionArgs(
            conditions=[newrelic.AlertMutingRuleConditionConditionArgs(
                attribute="string",
                operator="string",
                values=["string"],
            )],
            operator="string",
        ),
        enabled=False,
        account_id=0,
        description="string",
        name="string",
        schedule=newrelic.AlertMutingRuleScheduleArgs(
            time_zone="string",
            end_repeat="string",
            end_time="string",
            repeat="string",
            repeat_count=0,
            start_time="string",
            weekly_repeat_days=["string"],
        ))
    
    const alertMutingRuleResource = new newrelic.AlertMutingRule("alertMutingRuleResource", {
        condition: {
            conditions: [{
                attribute: "string",
                operator: "string",
                values: ["string"],
            }],
            operator: "string",
        },
        enabled: false,
        accountId: 0,
        description: "string",
        name: "string",
        schedule: {
            timeZone: "string",
            endRepeat: "string",
            endTime: "string",
            repeat: "string",
            repeatCount: 0,
            startTime: "string",
            weeklyRepeatDays: ["string"],
        },
    });
    
    type: newrelic:AlertMutingRule
    properties:
        accountId: 0
        condition:
            conditions:
                - attribute: string
                  operator: string
                  values:
                    - string
            operator: string
        description: string
        enabled: false
        name: string
        schedule:
            endRepeat: string
            endTime: string
            repeat: string
            repeatCount: 0
            startTime: string
            timeZone: string
            weeklyRepeatDays:
                - string
    

    AlertMutingRule Resource Properties

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

    Inputs

    The AlertMutingRule resource accepts the following input properties:

    Condition Pulumi.NewRelic.Inputs.AlertMutingRuleCondition
    The condition that defines which incidents to target.
    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.AlertMutingRuleSchedule
    The time window when the MutingRule should actively mute incidents.
    Condition AlertMutingRuleConditionArgs
    The condition that defines which incidents to target.
    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 AlertMutingRuleScheduleArgs
    The time window when the MutingRule should actively mute incidents.
    condition AlertMutingRuleCondition
    The condition that defines which incidents to target.
    enabled Boolean
    Whether the MutingRule is enabled.
    accountId Integer
    The account id of the MutingRule..
    description String
    The description of the MutingRule.
    name String
    The name of the MutingRule.
    schedule AlertMutingRuleSchedule
    The time window when the MutingRule should actively mute incidents.
    condition AlertMutingRuleCondition
    The condition that defines which incidents to target.
    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 AlertMutingRuleSchedule
    The time window when the MutingRule should actively mute incidents.
    condition AlertMutingRuleConditionArgs
    The condition that defines which incidents to target.
    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
    The time window when the MutingRule should actively mute incidents.
    condition Property Map
    The condition that defines which incidents to target.
    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 Property Map
    The time window when the MutingRule should actively mute incidents.

    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 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 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)
    public static AlertMutingRule get(String name, Output<String> id, AlertMutingRuleState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId int
    The account id of the MutingRule..
    Condition Pulumi.NewRelic.Inputs.AlertMutingRuleCondition
    The condition that defines which incidents to target.
    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.AlertMutingRuleSchedule
    The time window when the MutingRule should actively mute incidents.
    AccountId int
    The account id of the MutingRule..
    Condition AlertMutingRuleConditionArgs
    The condition that defines which incidents to target.
    Description string
    The description of the MutingRule.
    Enabled bool
    Whether the MutingRule is enabled.
    Name string
    The name of the MutingRule.
    Schedule AlertMutingRuleScheduleArgs
    The time window when the MutingRule should actively mute incidents.
    accountId Integer
    The account id of the MutingRule..
    condition AlertMutingRuleCondition
    The condition that defines which incidents to target.
    description String
    The description of the MutingRule.
    enabled Boolean
    Whether the MutingRule is enabled.
    name String
    The name of the MutingRule.
    schedule AlertMutingRuleSchedule
    The time window when the MutingRule should actively mute incidents.
    accountId number
    The account id of the MutingRule..
    condition AlertMutingRuleCondition
    The condition that defines which incidents to target.
    description string
    The description of the MutingRule.
    enabled boolean
    Whether the MutingRule is enabled.
    name string
    The name of the MutingRule.
    schedule AlertMutingRuleSchedule
    The time window when the MutingRule should actively mute incidents.
    account_id int
    The account id of the MutingRule..
    condition AlertMutingRuleConditionArgs
    The condition that defines which incidents to target.
    description str
    The description of the MutingRule.
    enabled bool
    Whether the MutingRule is enabled.
    name str
    The name of the MutingRule.
    schedule AlertMutingRuleScheduleArgs
    The time window when the MutingRule should actively mute incidents.
    accountId Number
    The account id of the MutingRule..
    condition Property Map
    The condition that defines which incidents to target.
    description String
    The description of the MutingRule.
    enabled Boolean
    Whether the MutingRule is enabled.
    name String
    The name of the MutingRule.
    schedule Property Map
    The time window when the MutingRule should actively mute incidents.

    Supporting Types

    AlertMutingRuleCondition, AlertMutingRuleConditionArgs

    Conditions List<Pulumi.NewRelic.Inputs.AlertMutingRuleConditionCondition>
    The individual MutingRuleConditions within the group.
    Operator string
    The operator used to combine all the MutingRuleConditions within the group.
    Conditions []AlertMutingRuleConditionCondition
    The individual MutingRuleConditions within the group.
    Operator string
    The operator used to combine all the MutingRuleConditions within the group.
    conditions List<AlertMutingRuleConditionCondition>
    The individual MutingRuleConditions within the group.
    operator String
    The operator used to combine all the MutingRuleConditions within the group.
    conditions AlertMutingRuleConditionCondition[]
    The individual MutingRuleConditions within the group.
    operator string
    The operator used to combine all the MutingRuleConditions within the group.
    conditions Sequence[AlertMutingRuleConditionCondition]
    The individual MutingRuleConditions within the group.
    operator str
    The operator used to combine all the MutingRuleConditions within the group.
    conditions List<Property Map>
    The individual MutingRuleConditions within the group.
    operator String
    The operator used to combine all the MutingRuleConditions within the group.

    AlertMutingRuleConditionCondition, AlertMutingRuleConditionConditionArgs

    Attribute string
    The attribute on an incident.
    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 an incident.
    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 an incident.
    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 an incident.
    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 an incident.
    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.
    attribute String
    The attribute on an incident.
    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.

    AlertMutingRuleSchedule, AlertMutingRuleScheduleArgs

    TimeZone string
    The time zone that applies to the MutingRule schedule.
    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
    The time zone that applies to the MutingRule schedule.
    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
    The time zone that applies to the MutingRule schedule.
    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 Integer
    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
    The time zone that applies to the MutingRule schedule.
    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
    The time zone that applies to the MutingRule schedule.
    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']
    timeZone String
    The time zone that applies to the MutingRule schedule.
    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 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']

    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
    

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

    Package Details

    Repository
    New Relic pulumi/pulumi-newrelic
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the newrelic Terraform Provider.
    newrelic logo
    New Relic v5.23.0 published on Wednesday, Apr 24, 2024 by Pulumi