1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Monitoring
  5. AlarmSuppression
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Monitoring.AlarmSuppression

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This resource provides the Alarm Suppression resource in Oracle Cloud Infrastructure Monitoring service.

    Creates a new alarm suppression at the specified level (alarm-wide or dimension-specific). For more information, see Adding an Alarm-wide Suppression and Adding a Dimension-Specific Alarm Suppression.

    For important limits information, see Limits on Monitoring.

    This call is subject to a Monitoring limit that applies to the total number of requests across all alarm operations. Monitoring might throttle this call to reject an otherwise valid request when the total rate of alarm operations exceeds 10 requests, or transactions, per second (TPS) for a given tenancy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testAlarmSuppression = new oci.monitoring.AlarmSuppression("test_alarm_suppression", {
        alarmSuppressionTarget: {
            targetType: alarmSuppressionAlarmSuppressionTargetTargetType,
            alarmId: testAlarm.id,
            compartmentId: compartmentId,
            compartmentIdInSubtree: alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree,
        },
        displayName: alarmSuppressionDisplayName,
        timeSuppressFrom: alarmSuppressionTimeSuppressFrom,
        timeSuppressUntil: alarmSuppressionTimeSuppressUntil,
        definedTags: {
            "Operations.CostCenter": "42",
        },
        description: alarmSuppressionDescription,
        dimensions: alarmSuppressionDimensions,
        freeformTags: {
            Department: "Finance",
        },
        level: alarmSuppressionLevel,
        suppressionConditions: [{
            conditionType: alarmSuppressionSuppressionConditionsConditionType,
            suppressionDuration: alarmSuppressionSuppressionConditionsSuppressionDuration,
            suppressionRecurrence: alarmSuppressionSuppressionConditionsSuppressionRecurrence,
        }],
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_alarm_suppression = oci.monitoring.AlarmSuppression("test_alarm_suppression",
        alarm_suppression_target={
            "target_type": alarm_suppression_alarm_suppression_target_target_type,
            "alarm_id": test_alarm["id"],
            "compartment_id": compartment_id,
            "compartment_id_in_subtree": alarm_suppression_alarm_suppression_target_compartment_id_in_subtree,
        },
        display_name=alarm_suppression_display_name,
        time_suppress_from=alarm_suppression_time_suppress_from,
        time_suppress_until=alarm_suppression_time_suppress_until,
        defined_tags={
            "Operations.CostCenter": "42",
        },
        description=alarm_suppression_description,
        dimensions=alarm_suppression_dimensions,
        freeform_tags={
            "Department": "Finance",
        },
        level=alarm_suppression_level,
        suppression_conditions=[{
            "condition_type": alarm_suppression_suppression_conditions_condition_type,
            "suppression_duration": alarm_suppression_suppression_conditions_suppression_duration,
            "suppression_recurrence": alarm_suppression_suppression_conditions_suppression_recurrence,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Monitoring"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Monitoring.NewAlarmSuppression(ctx, "test_alarm_suppression", &Monitoring.AlarmSuppressionArgs{
    			AlarmSuppressionTarget: &monitoring.AlarmSuppressionAlarmSuppressionTargetArgs{
    				TargetType:             pulumi.Any(alarmSuppressionAlarmSuppressionTargetTargetType),
    				AlarmId:                pulumi.Any(testAlarm.Id),
    				CompartmentId:          pulumi.Any(compartmentId),
    				CompartmentIdInSubtree: pulumi.Any(alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree),
    			},
    			DisplayName:       pulumi.Any(alarmSuppressionDisplayName),
    			TimeSuppressFrom:  pulumi.Any(alarmSuppressionTimeSuppressFrom),
    			TimeSuppressUntil: pulumi.Any(alarmSuppressionTimeSuppressUntil),
    			DefinedTags: pulumi.StringMap{
    				"Operations.CostCenter": pulumi.String("42"),
    			},
    			Description: pulumi.Any(alarmSuppressionDescription),
    			Dimensions:  pulumi.Any(alarmSuppressionDimensions),
    			FreeformTags: pulumi.StringMap{
    				"Department": pulumi.String("Finance"),
    			},
    			Level: pulumi.Any(alarmSuppressionLevel),
    			SuppressionConditions: monitoring.AlarmSuppressionSuppressionConditionArray{
    				&monitoring.AlarmSuppressionSuppressionConditionArgs{
    					ConditionType:         pulumi.Any(alarmSuppressionSuppressionConditionsConditionType),
    					SuppressionDuration:   pulumi.Any(alarmSuppressionSuppressionConditionsSuppressionDuration),
    					SuppressionRecurrence: pulumi.Any(alarmSuppressionSuppressionConditionsSuppressionRecurrence),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testAlarmSuppression = new Oci.Monitoring.AlarmSuppression("test_alarm_suppression", new()
        {
            AlarmSuppressionTarget = new Oci.Monitoring.Inputs.AlarmSuppressionAlarmSuppressionTargetArgs
            {
                TargetType = alarmSuppressionAlarmSuppressionTargetTargetType,
                AlarmId = testAlarm.Id,
                CompartmentId = compartmentId,
                CompartmentIdInSubtree = alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree,
            },
            DisplayName = alarmSuppressionDisplayName,
            TimeSuppressFrom = alarmSuppressionTimeSuppressFrom,
            TimeSuppressUntil = alarmSuppressionTimeSuppressUntil,
            DefinedTags = 
            {
                { "Operations.CostCenter", "42" },
            },
            Description = alarmSuppressionDescription,
            Dimensions = alarmSuppressionDimensions,
            FreeformTags = 
            {
                { "Department", "Finance" },
            },
            Level = alarmSuppressionLevel,
            SuppressionConditions = new[]
            {
                new Oci.Monitoring.Inputs.AlarmSuppressionSuppressionConditionArgs
                {
                    ConditionType = alarmSuppressionSuppressionConditionsConditionType,
                    SuppressionDuration = alarmSuppressionSuppressionConditionsSuppressionDuration,
                    SuppressionRecurrence = alarmSuppressionSuppressionConditionsSuppressionRecurrence,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Monitoring.AlarmSuppression;
    import com.pulumi.oci.Monitoring.AlarmSuppressionArgs;
    import com.pulumi.oci.Monitoring.inputs.AlarmSuppressionAlarmSuppressionTargetArgs;
    import com.pulumi.oci.Monitoring.inputs.AlarmSuppressionSuppressionConditionArgs;
    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 testAlarmSuppression = new AlarmSuppression("testAlarmSuppression", AlarmSuppressionArgs.builder()
                .alarmSuppressionTarget(AlarmSuppressionAlarmSuppressionTargetArgs.builder()
                    .targetType(alarmSuppressionAlarmSuppressionTargetTargetType)
                    .alarmId(testAlarm.id())
                    .compartmentId(compartmentId)
                    .compartmentIdInSubtree(alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree)
                    .build())
                .displayName(alarmSuppressionDisplayName)
                .timeSuppressFrom(alarmSuppressionTimeSuppressFrom)
                .timeSuppressUntil(alarmSuppressionTimeSuppressUntil)
                .definedTags(Map.of("Operations.CostCenter", "42"))
                .description(alarmSuppressionDescription)
                .dimensions(alarmSuppressionDimensions)
                .freeformTags(Map.of("Department", "Finance"))
                .level(alarmSuppressionLevel)
                .suppressionConditions(AlarmSuppressionSuppressionConditionArgs.builder()
                    .conditionType(alarmSuppressionSuppressionConditionsConditionType)
                    .suppressionDuration(alarmSuppressionSuppressionConditionsSuppressionDuration)
                    .suppressionRecurrence(alarmSuppressionSuppressionConditionsSuppressionRecurrence)
                    .build())
                .build());
    
        }
    }
    
    resources:
      testAlarmSuppression:
        type: oci:Monitoring:AlarmSuppression
        name: test_alarm_suppression
        properties:
          alarmSuppressionTarget:
            targetType: ${alarmSuppressionAlarmSuppressionTargetTargetType}
            alarmId: ${testAlarm.id}
            compartmentId: ${compartmentId}
            compartmentIdInSubtree: ${alarmSuppressionAlarmSuppressionTargetCompartmentIdInSubtree}
          displayName: ${alarmSuppressionDisplayName}
          timeSuppressFrom: ${alarmSuppressionTimeSuppressFrom}
          timeSuppressUntil: ${alarmSuppressionTimeSuppressUntil}
          definedTags:
            Operations.CostCenter: '42'
          description: ${alarmSuppressionDescription}
          dimensions: ${alarmSuppressionDimensions}
          freeformTags:
            Department: Finance
          level: ${alarmSuppressionLevel}
          suppressionConditions:
            - conditionType: ${alarmSuppressionSuppressionConditionsConditionType}
              suppressionDuration: ${alarmSuppressionSuppressionConditionsSuppressionDuration}
              suppressionRecurrence: ${alarmSuppressionSuppressionConditionsSuppressionRecurrence}
    

    Create AlarmSuppression Resource

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

    Constructor syntax

    new AlarmSuppression(name: string, args: AlarmSuppressionArgs, opts?: CustomResourceOptions);
    @overload
    def AlarmSuppression(resource_name: str,
                         args: AlarmSuppressionInitArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlarmSuppression(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         alarm_suppression_target: Optional[_monitoring.AlarmSuppressionAlarmSuppressionTargetArgs] = None,
                         display_name: Optional[str] = None,
                         time_suppress_from: Optional[str] = None,
                         time_suppress_until: Optional[str] = None,
                         defined_tags: Optional[Mapping[str, str]] = None,
                         description: Optional[str] = None,
                         dimensions: Optional[Mapping[str, str]] = None,
                         freeform_tags: Optional[Mapping[str, str]] = None,
                         level: Optional[str] = None,
                         suppression_conditions: Optional[Sequence[_monitoring.AlarmSuppressionSuppressionConditionArgs]] = None)
    func NewAlarmSuppression(ctx *Context, name string, args AlarmSuppressionArgs, opts ...ResourceOption) (*AlarmSuppression, error)
    public AlarmSuppression(string name, AlarmSuppressionArgs args, CustomResourceOptions? opts = null)
    public AlarmSuppression(String name, AlarmSuppressionArgs args)
    public AlarmSuppression(String name, AlarmSuppressionArgs args, CustomResourceOptions options)
    
    type: oci:Monitoring:AlarmSuppression
    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 AlarmSuppressionArgs
    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 AlarmSuppressionInitArgs
    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 AlarmSuppressionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlarmSuppressionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlarmSuppressionArgs
    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 alarmSuppressionResource = new Oci.Monitoring.AlarmSuppression("alarmSuppressionResource", new()
    {
        AlarmSuppressionTarget = new Oci.Monitoring.Inputs.AlarmSuppressionAlarmSuppressionTargetArgs
        {
            TargetType = "string",
            AlarmId = "string",
            CompartmentId = "string",
            CompartmentIdInSubtree = false,
        },
        DisplayName = "string",
        TimeSuppressFrom = "string",
        TimeSuppressUntil = "string",
        DefinedTags = 
        {
            { "string", "string" },
        },
        Description = "string",
        Dimensions = 
        {
            { "string", "string" },
        },
        FreeformTags = 
        {
            { "string", "string" },
        },
        Level = "string",
        SuppressionConditions = new[]
        {
            new Oci.Monitoring.Inputs.AlarmSuppressionSuppressionConditionArgs
            {
                ConditionType = "string",
                SuppressionDuration = "string",
                SuppressionRecurrence = "string",
            },
        },
    });
    
    example, err := Monitoring.NewAlarmSuppression(ctx, "alarmSuppressionResource", &Monitoring.AlarmSuppressionArgs{
    	AlarmSuppressionTarget: &monitoring.AlarmSuppressionAlarmSuppressionTargetArgs{
    		TargetType:             pulumi.String("string"),
    		AlarmId:                pulumi.String("string"),
    		CompartmentId:          pulumi.String("string"),
    		CompartmentIdInSubtree: pulumi.Bool(false),
    	},
    	DisplayName:       pulumi.String("string"),
    	TimeSuppressFrom:  pulumi.String("string"),
    	TimeSuppressUntil: pulumi.String("string"),
    	DefinedTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Dimensions: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	FreeformTags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Level: pulumi.String("string"),
    	SuppressionConditions: monitoring.AlarmSuppressionSuppressionConditionArray{
    		&monitoring.AlarmSuppressionSuppressionConditionArgs{
    			ConditionType:         pulumi.String("string"),
    			SuppressionDuration:   pulumi.String("string"),
    			SuppressionRecurrence: pulumi.String("string"),
    		},
    	},
    })
    
    var alarmSuppressionResource = new AlarmSuppression("alarmSuppressionResource", AlarmSuppressionArgs.builder()
        .alarmSuppressionTarget(AlarmSuppressionAlarmSuppressionTargetArgs.builder()
            .targetType("string")
            .alarmId("string")
            .compartmentId("string")
            .compartmentIdInSubtree(false)
            .build())
        .displayName("string")
        .timeSuppressFrom("string")
        .timeSuppressUntil("string")
        .definedTags(Map.of("string", "string"))
        .description("string")
        .dimensions(Map.of("string", "string"))
        .freeformTags(Map.of("string", "string"))
        .level("string")
        .suppressionConditions(AlarmSuppressionSuppressionConditionArgs.builder()
            .conditionType("string")
            .suppressionDuration("string")
            .suppressionRecurrence("string")
            .build())
        .build());
    
    alarm_suppression_resource = oci.monitoring.AlarmSuppression("alarmSuppressionResource",
        alarm_suppression_target={
            "target_type": "string",
            "alarm_id": "string",
            "compartment_id": "string",
            "compartment_id_in_subtree": False,
        },
        display_name="string",
        time_suppress_from="string",
        time_suppress_until="string",
        defined_tags={
            "string": "string",
        },
        description="string",
        dimensions={
            "string": "string",
        },
        freeform_tags={
            "string": "string",
        },
        level="string",
        suppression_conditions=[{
            "condition_type": "string",
            "suppression_duration": "string",
            "suppression_recurrence": "string",
        }])
    
    const alarmSuppressionResource = new oci.monitoring.AlarmSuppression("alarmSuppressionResource", {
        alarmSuppressionTarget: {
            targetType: "string",
            alarmId: "string",
            compartmentId: "string",
            compartmentIdInSubtree: false,
        },
        displayName: "string",
        timeSuppressFrom: "string",
        timeSuppressUntil: "string",
        definedTags: {
            string: "string",
        },
        description: "string",
        dimensions: {
            string: "string",
        },
        freeformTags: {
            string: "string",
        },
        level: "string",
        suppressionConditions: [{
            conditionType: "string",
            suppressionDuration: "string",
            suppressionRecurrence: "string",
        }],
    });
    
    type: oci:Monitoring:AlarmSuppression
    properties:
        alarmSuppressionTarget:
            alarmId: string
            compartmentId: string
            compartmentIdInSubtree: false
            targetType: string
        definedTags:
            string: string
        description: string
        dimensions:
            string: string
        displayName: string
        freeformTags:
            string: string
        level: string
        suppressionConditions:
            - conditionType: string
              suppressionDuration: string
              suppressionRecurrence: string
        timeSuppressFrom: string
        timeSuppressUntil: string
    

    AlarmSuppression 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 AlarmSuppression resource accepts the following input properties:

    AlarmSuppressionTarget AlarmSuppressionAlarmSuppressionTarget
    The target of the alarm suppression.
    DisplayName string
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    TimeSuppressFrom string
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    TimeSuppressUntil string

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags Dictionary<string, string>
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    Description string

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    Dimensions Dictionary<string, string>

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    Level string

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    SuppressionConditions List<AlarmSuppressionSuppressionCondition>
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    AlarmSuppressionTarget AlarmSuppressionAlarmSuppressionTargetArgs
    The target of the alarm suppression.
    DisplayName string
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    TimeSuppressFrom string
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    TimeSuppressUntil string

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DefinedTags map[string]string
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    Description string

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    Dimensions map[string]string

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    Level string

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    SuppressionConditions []AlarmSuppressionSuppressionConditionArgs
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    alarmSuppressionTarget AlarmSuppressionAlarmSuppressionTarget
    The target of the alarm suppression.
    displayName String
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    timeSuppressFrom String
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    timeSuppressUntil String

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String,String>
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description String

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions Map<String,String>

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level String

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    suppressionConditions List<AlarmSuppressionSuppressionCondition>
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    alarmSuppressionTarget AlarmSuppressionAlarmSuppressionTarget
    The target of the alarm suppression.
    displayName string
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    timeSuppressFrom string
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    timeSuppressUntil string

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags {[key: string]: string}
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description string

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions {[key: string]: string}

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level string

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    suppressionConditions AlarmSuppressionSuppressionCondition[]
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    alarm_suppression_target monitoring.AlarmSuppressionAlarmSuppressionTargetArgs
    The target of the alarm suppression.
    display_name str
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    time_suppress_from str
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    time_suppress_until str

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    defined_tags Mapping[str, str]
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description str

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions Mapping[str, str]

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level str

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    suppression_conditions Sequence[monitoring.AlarmSuppressionSuppressionConditionArgs]
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    alarmSuppressionTarget Property Map
    The target of the alarm suppression.
    displayName String
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    timeSuppressFrom String
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    timeSuppressUntil String

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    definedTags Map<String>
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description String

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions Map<String>

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level String

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    suppressionConditions List<Property Map>
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]

    Outputs

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

    CompartmentId string
    The OCID of the compartment containing the alarm suppression.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the alarm suppression. Example: DELETED
    TimeCreated string
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    TimeUpdated string
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    CompartmentId string
    The OCID of the compartment containing the alarm suppression.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    The current lifecycle state of the alarm suppression. Example: DELETED
    TimeCreated string
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    TimeUpdated string
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    compartmentId String
    The OCID of the compartment containing the alarm suppression.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the alarm suppression. Example: DELETED
    timeCreated String
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    timeUpdated String
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    compartmentId string
    The OCID of the compartment containing the alarm suppression.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    The current lifecycle state of the alarm suppression. Example: DELETED
    timeCreated string
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    timeUpdated string
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    compartment_id str
    The OCID of the compartment containing the alarm suppression.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    The current lifecycle state of the alarm suppression. Example: DELETED
    time_created str
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    time_updated str
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    compartmentId String
    The OCID of the compartment containing the alarm suppression.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    The current lifecycle state of the alarm suppression. Example: DELETED
    timeCreated String
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    timeUpdated String
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z

    Look up Existing AlarmSuppression Resource

    Get an existing AlarmSuppression 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?: AlarmSuppressionState, opts?: CustomResourceOptions): AlarmSuppression
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_suppression_target: Optional[_monitoring.AlarmSuppressionAlarmSuppressionTargetArgs] = None,
            compartment_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            dimensions: Optional[Mapping[str, str]] = None,
            display_name: Optional[str] = None,
            freeform_tags: Optional[Mapping[str, str]] = None,
            level: Optional[str] = None,
            state: Optional[str] = None,
            suppression_conditions: Optional[Sequence[_monitoring.AlarmSuppressionSuppressionConditionArgs]] = None,
            time_created: Optional[str] = None,
            time_suppress_from: Optional[str] = None,
            time_suppress_until: Optional[str] = None,
            time_updated: Optional[str] = None) -> AlarmSuppression
    func GetAlarmSuppression(ctx *Context, name string, id IDInput, state *AlarmSuppressionState, opts ...ResourceOption) (*AlarmSuppression, error)
    public static AlarmSuppression Get(string name, Input<string> id, AlarmSuppressionState? state, CustomResourceOptions? opts = null)
    public static AlarmSuppression get(String name, Output<String> id, AlarmSuppressionState 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:
    AlarmSuppressionTarget AlarmSuppressionAlarmSuppressionTarget
    The target of the alarm suppression.
    CompartmentId string
    The OCID of the compartment containing the alarm suppression.
    DefinedTags Dictionary<string, string>
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    Description string

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    Dimensions Dictionary<string, string>

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    DisplayName string
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    Level string

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    State string
    The current lifecycle state of the alarm suppression. Example: DELETED
    SuppressionConditions List<AlarmSuppressionSuppressionCondition>
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    TimeCreated string
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    TimeSuppressFrom string
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    TimeSuppressUntil string

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeUpdated string
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    AlarmSuppressionTarget AlarmSuppressionAlarmSuppressionTargetArgs
    The target of the alarm suppression.
    CompartmentId string
    The OCID of the compartment containing the alarm suppression.
    DefinedTags map[string]string
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    Description string

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    Dimensions map[string]string

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    DisplayName string
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    Level string

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    State string
    The current lifecycle state of the alarm suppression. Example: DELETED
    SuppressionConditions []AlarmSuppressionSuppressionConditionArgs
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    TimeCreated string
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    TimeSuppressFrom string
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    TimeSuppressUntil string

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeUpdated string
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    alarmSuppressionTarget AlarmSuppressionAlarmSuppressionTarget
    The target of the alarm suppression.
    compartmentId String
    The OCID of the compartment containing the alarm suppression.
    definedTags Map<String,String>
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description String

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions Map<String,String>

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    displayName String
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level String

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    state String
    The current lifecycle state of the alarm suppression. Example: DELETED
    suppressionConditions List<AlarmSuppressionSuppressionCondition>
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    timeCreated String
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    timeSuppressFrom String
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    timeSuppressUntil String

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeUpdated String
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    alarmSuppressionTarget AlarmSuppressionAlarmSuppressionTarget
    The target of the alarm suppression.
    compartmentId string
    The OCID of the compartment containing the alarm suppression.
    definedTags {[key: string]: string}
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description string

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions {[key: string]: string}

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    displayName string
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level string

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    state string
    The current lifecycle state of the alarm suppression. Example: DELETED
    suppressionConditions AlarmSuppressionSuppressionCondition[]
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    timeCreated string
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    timeSuppressFrom string
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    timeSuppressUntil string

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeUpdated string
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    alarm_suppression_target monitoring.AlarmSuppressionAlarmSuppressionTargetArgs
    The target of the alarm suppression.
    compartment_id str
    The OCID of the compartment containing the alarm suppression.
    defined_tags Mapping[str, str]
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description str

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions Mapping[str, str]

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    display_name str
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level str

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    state str
    The current lifecycle state of the alarm suppression. Example: DELETED
    suppression_conditions Sequence[monitoring.AlarmSuppressionSuppressionConditionArgs]
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    time_created str
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    time_suppress_from str
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    time_suppress_until str

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    time_updated str
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z
    alarmSuppressionTarget Property Map
    The target of the alarm suppression.
    compartmentId String
    The OCID of the compartment containing the alarm suppression.
    definedTags Map<String>
    Usage of predefined tag keys. These predefined keys are scoped to namespaces. Example: {"Operations.CostCenter": "42"}
    description String

    Human-readable reason for this alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.

    Oracle recommends including tracking information for the event or associated work, such as a ticket number.

    Example: Planned outage due to change IT-1234.

    dimensions Map<String>

    A filter to suppress only alarm state entries that include the set of specified dimension key-value pairs. If you specify {"availabilityDomain": "phx-ad-1"} and the alarm state entry corresponds to the set {"availabilityDomain": "phx-ad-1" and "resourceId": "instance.region1.phx.exampleuniqueID"}, then this alarm will be included for suppression.

    This is required only when the value of level is DIMENSION. If required, the value cannot be an empty object. Only a single value is allowed per key. No grouping of multiple values is allowed under the same key. Maximum characters (after serialization): 4000. This maximum satisfies typical use cases. The response for an exceeded maximum is HTTP 400 with an "dimensions values are too long" message.

    displayName String
    A user-friendly name for the alarm suppression. It does not have to be unique, and it's changeable. Avoid entering confidential information.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"Department": "Finance"}
    level String

    The level of this alarm suppression. ALARM indicates a suppression of the entire alarm, regardless of dimension. DIMENSION indicates a suppression configured for specified dimensions.

    Defaut: DIMENSION

    state String
    The current lifecycle state of the alarm suppression. Example: DELETED
    suppressionConditions List<Property Map>
    Array of all preconditions for alarm suppression. Example: [{ conditionType: "RECURRENCE", suppressionRecurrence: "FRQ=DAILY;BYHOUR=10", suppressionDuration: "PT1H" }]
    timeCreated String
    The date and time the alarm suppression was created. Format defined by RFC3339. Example: 2018-02-01T01:02:29.600Z
    timeSuppressFrom String
    The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T01:02:29.600Z
    timeSuppressUntil String

    The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: 2023-02-01T02:02:29.600Z

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeUpdated String
    The date and time the alarm suppression was last updated (deleted). Format defined by RFC3339. Example: 2018-02-03T01:02:29.600Z

    Supporting Types

    AlarmSuppressionAlarmSuppressionTarget, AlarmSuppressionAlarmSuppressionTargetArgs

    TargetType string
    The type of the alarm suppression target.
    AlarmId string
    The OCID of the alarm that is the target of the alarm suppression.
    CompartmentId string
    The OCID of the compartment or tenancy that is the target of the alarm suppression. Example: ocid1.compartment.oc1..exampleuniqueID
    CompartmentIdInSubtree bool
    When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
    TargetType string
    The type of the alarm suppression target.
    AlarmId string
    The OCID of the alarm that is the target of the alarm suppression.
    CompartmentId string
    The OCID of the compartment or tenancy that is the target of the alarm suppression. Example: ocid1.compartment.oc1..exampleuniqueID
    CompartmentIdInSubtree bool
    When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
    targetType String
    The type of the alarm suppression target.
    alarmId String
    The OCID of the alarm that is the target of the alarm suppression.
    compartmentId String
    The OCID of the compartment or tenancy that is the target of the alarm suppression. Example: ocid1.compartment.oc1..exampleuniqueID
    compartmentIdInSubtree Boolean
    When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
    targetType string
    The type of the alarm suppression target.
    alarmId string
    The OCID of the alarm that is the target of the alarm suppression.
    compartmentId string
    The OCID of the compartment or tenancy that is the target of the alarm suppression. Example: ocid1.compartment.oc1..exampleuniqueID
    compartmentIdInSubtree boolean
    When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
    target_type str
    The type of the alarm suppression target.
    alarm_id str
    The OCID of the alarm that is the target of the alarm suppression.
    compartment_id str
    The OCID of the compartment or tenancy that is the target of the alarm suppression. Example: ocid1.compartment.oc1..exampleuniqueID
    compartment_id_in_subtree bool
    When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.
    targetType String
    The type of the alarm suppression target.
    alarmId String
    The OCID of the alarm that is the target of the alarm suppression.
    compartmentId String
    The OCID of the compartment or tenancy that is the target of the alarm suppression. Example: ocid1.compartment.oc1..exampleuniqueID
    compartmentIdInSubtree Boolean
    When true, the alarm suppression targets all alarms under all compartments and subcompartments of the tenancy specified. The parameter can only be set to true when compartmentId is the tenancy OCID (the tenancy is the root compartment). When false, the alarm suppression targets only the alarms under the specified compartment.

    AlarmSuppressionSuppressionCondition, AlarmSuppressionSuppressionConditionArgs

    ConditionType string
    Type of suppression condition.
    SuppressionDuration string
    Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
    SuppressionRecurrence string
    Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:

    • FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
    • BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU.
    • BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.
    ConditionType string
    Type of suppression condition.
    SuppressionDuration string
    Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
    SuppressionRecurrence string
    Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:

    • FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
    • BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU.
    • BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.
    conditionType String
    Type of suppression condition.
    suppressionDuration String
    Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
    suppressionRecurrence String
    Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:

    • FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
    • BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU.
    • BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.
    conditionType string
    Type of suppression condition.
    suppressionDuration string
    Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
    suppressionRecurrence string
    Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:

    • FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
    • BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU.
    • BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.
    condition_type str
    Type of suppression condition.
    suppression_duration str
    Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
    suppression_recurrence str
    Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:

    • FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
    • BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU.
    • BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.
    conditionType String
    Type of suppression condition.
    suppressionDuration String
    Duration of the recurring suppression. Specified as a string in ISO 8601 format. Minimum: PT1M (1 minute). Maximum: PT24H (24 hours).
    suppressionRecurrence String
    Frequency and start time of the recurring suppression. The format follows the iCalendar specification (RFC 5545, section 3.3.10). Supported rule parts:

    • FREQ: Frequency of the recurring suppression: WEEKLY or DAILY only.
    • BYDAY: Comma separated days. Use with weekly suppressions only. Supported values: MO, TU, WE, TH, FR, SA ,SU.
    • BYHOUR, BYMINUTE, BYSECOND: Start time in UTC, after timeSuppressFrom value. Default is 00:00:00 UTC after timeSuppressFrom.

    Import

    AlarmSuppressions can be imported using the id, e.g.

    $ pulumi import oci:Monitoring/alarmSuppression:AlarmSuppression test_alarm_suppression "id"
    

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

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi