Data Source: oci_log_analytics_namespace_ingest_time_rules
This data source provides the list of Namespace Ingest Time Rules in Oracle Cloud Infrastructure Log Analytics service.
Returns a list of ingest time rules in a compartment. You may limit the number of rules, provide sorting options, and filter the results.
Example Usage
data "oci_log_analytics_namespace_ingest_time_rules" "test_namespace_ingest_time_rules" {
#Required
compartment_id = var.compartment_id
namespace = var.namespace_ingest_time_rule_namespace
#Optional
condition_kind = var.namespace_ingest_time_rule_condition_kind
display_name = var.namespace_ingest_time_rule_display_name
field_name = var.namespace_ingest_time_rule_field_name
field_value = var.namespace_ingest_time_rule_field_value
state = var.namespace_ingest_time_rule_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.condition_kind
- (Optional) The ingest time rule condition kind used for filtering. Only rules with conditions of the specified kind will be returned.display_name
- (Optional) A filter to return rules whose displayName matches in whole or in part the specified value. The match is case-insensitive.field_name
- (Optional) The field name used for filtering. Only rules using the specified field name will be returned.field_value
- (Optional) The field value used for filtering. Only rules using the specified field value will be returned.namespace
- (Required) The Logging Analytics namespace used for the request.state
- (Optional) The rule lifecycle state used for filtering. Currently supported values are ACTIVE and DELETED.
Attributes Reference
The following attributes are exported:
ingest_time_rule_summary_collection
- The list of ingest_time_rule_summary_collection.
NamespaceIngestTimeRule Reference
The following attributes are exported:
actions
- The action(s) to be performed if the ingest time rule condition(s) are satisfied.compartment_id
- The compartment OCID (https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the extracted metric.dimensions
- Additional dimensions to publish for the extracted metric. A valid list contains the source field names whose values are to be published as dimensions. The source name itself is specified using a special macro SOURCE_NAMEmetric_name
- The metric name of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).namespace
- The namespace of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters and underscores (_).resource_group
- The resourceGroup of the extracted metric. A valid value starts with an alphabetical character and includes only alphanumeric characters, periods (.), underscores (_), hyphens (-), and dollar signs ($).type
- Discriminator.
compartment_id
- Compartment Identifier OCID.conditions
- The condition(s) to evaluate for an ingest time rule.additional_conditions
- Optional additional condition(s) to be evaluated.condition_field
- The additional field name to be evaluated.condition_operator
- The operator to be used for evaluating the additional field.condition_value
- The additional field value to be evaluated.
field_name
- The field name to be evaluated.field_operator
- The operator to be used for evaluating the field.field_value
- The field value to be evaluated.kind
- Discriminator.
defined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- Description for this resource.display_name
- The ingest time rule display name.freeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}
id
- The log analytics entity OCID. This ID is a reference used by log analytics features and it represents a resource that is provisioned and managed by the customer on their premises or on the cloud.is_enabled
- A flag indicating whether or not the ingest time rule is enabled.state
- The current state of the ingest time rule.time_created
- The date and time the resource was created, in the format defined by RFC3339.time_updated
- The date and time the resource was last updated, in the format defined by RFC3339.