oci_stack_monitoring_monitoring_template

This resource provides the Monitoring Template resource in Oracle Cloud Infrastructure Stack Monitoring service.

Creates a new monitoring template for a given compartment.

Example Usage

resource "oci_stack_monitoring_monitoring_template" "test_monitoring_template" {
	#Required
	compartment_id = var.compartment_id
	destinations = var.monitoring_template_destinations
	display_name = var.monitoring_template_display_name
	members {
		#Required
		id = var.monitoring_template_members_id
		type = var.monitoring_template_members_type

		#Optional
		composite_type = var.monitoring_template_members_composite_type
	}

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.monitoring_template_description
	freeform_tags = {"bar-key"= "value"}
	is_alarms_enabled = var.monitoring_template_is_alarms_enabled
	is_split_notification_enabled = var.monitoring_template_is_split_notification_enabled
	message_format = var.monitoring_template_message_format
	repeat_notification_duration = var.monitoring_template_repeat_notification_duration
}

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 Monitoring Template * update - (Defaults to 20 minutes), when updating the Monitoring Template * delete - (Defaults to 20 minutes), when destroying the Monitoring Template

Import

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

$ terraform import oci_stack_monitoring_monitoring_template.test_monitoring_template "id"