oci_log_analytics_namespace_ingest_time_rule

This resource provides the Namespace Ingest Time Rule resource in Oracle Cloud Infrastructure Log Analytics service.

Creates a new ingest time rule in the specified compartment. You may also specify optional information such as description, defined tags, and free-form tags.

Example Usage

resource "oci_log_analytics_namespace_ingest_time_rule" "test_namespace_ingest_time_rule" {
	#Required
	actions {
		#Required
		compartment_id = var.compartment_id
		metric_name = oci_monitoring_metric.test_metric.name
		namespace = var.namespace_ingest_time_rule_actions_namespace
		type = var.namespace_ingest_time_rule_actions_type

		#Optional
		dimensions = var.namespace_ingest_time_rule_actions_dimensions
		resource_group = var.namespace_ingest_time_rule_actions_resource_group
	}
	compartment_id = var.compartment_id
	conditions {
		#Required
		field_name = var.namespace_ingest_time_rule_conditions_field_name
		field_operator = var.namespace_ingest_time_rule_conditions_field_operator
		field_value = var.namespace_ingest_time_rule_conditions_field_value
		kind = var.namespace_ingest_time_rule_conditions_kind

		#Optional
		additional_conditions {
			#Required
			condition_field = var.namespace_ingest_time_rule_conditions_additional_conditions_condition_field
			condition_operator = var.namespace_ingest_time_rule_conditions_additional_conditions_condition_operator
			condition_value = var.namespace_ingest_time_rule_conditions_additional_conditions_condition_value
		}
	}
	display_name = var.namespace_ingest_time_rule_display_name
	namespace = var.namespace_ingest_time_rule_namespace

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	description = var.namespace_ingest_time_rule_description
	freeform_tags = {"bar-key"= "value"}
}

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 Namespace Ingest Time Rule * update - (Defaults to 20 minutes), when updating the Namespace Ingest Time Rule * delete - (Defaults to 20 minutes), when destroying the Namespace Ingest Time Rule

Import

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

$ terraform import oci_log_analytics_namespace_ingest_time_rule.test_namespace_ingest_time_rule "namespaces/{namespaceName}/ingestTimeRules/{ingestTimeRuleId}"