oci_monitoring_alarm_suppression

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

resource "oci_monitoring_alarm_suppression" "test_alarm_suppression" {
	#Required
	alarm_suppression_target {
		#Required
		target_type = var.alarm_suppression_alarm_suppression_target_target_type

		#Optional
		alarm_id = oci_monitoring_alarm.test_alarm.id
		compartment_id = var.compartment_id
		compartment_id_in_subtree = var.alarm_suppression_alarm_suppression_target_compartment_id_in_subtree
	}
	display_name = var.alarm_suppression_display_name
	time_suppress_from = var.alarm_suppression_time_suppress_from
	time_suppress_until = var.alarm_suppression_time_suppress_until

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	description = var.alarm_suppression_description
	dimensions = var.alarm_suppression_dimensions
	freeform_tags = {"Department"= "Finance"}
	level = var.alarm_suppression_level
	suppression_conditions {
		#Required
		condition_type = var.alarm_suppression_suppression_conditions_condition_type
		suppression_duration = var.alarm_suppression_suppression_conditions_suppression_duration
		suppression_recurrence = var.alarm_suppression_suppression_conditions_suppression_recurrence
	}
}

Argument Reference

The following arguments are supported:

** 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

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Alarm Suppression * update - (Defaults to 20 minutes), when updating the Alarm Suppression * delete - (Defaults to 20 minutes), when destroying the Alarm Suppression

Import

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

$ terraform import oci_monitoring_alarm_suppression.test_alarm_suppression "id"