Data Source: oci_database_management_managed_database_attention_log_counts
This data source provides the list of Managed Database Attention Log Counts in Oracle Cloud Infrastructure Database Management service.
Get the counts of attention logs for the specified Managed Database.
Example Usage
data "oci_database_management_managed_database_attention_log_counts" "test_managed_database_attention_log_counts" {
#Required
managed_database_id = oci_database_management_managed_database.test_managed_database.id
#Optional
group_by = var.managed_database_attention_log_count_group_by
is_regular_expression = var.managed_database_attention_log_count_is_regular_expression
log_search_text = var.managed_database_attention_log_count_log_search_text
time_greater_than_or_equal_to = var.managed_database_attention_log_count_time_greater_than_or_equal_to
time_less_than_or_equal_to = var.managed_database_attention_log_count_time_less_than_or_equal_to
type_filter = var.managed_database_attention_log_count_type_filter
urgency_filter = var.managed_database_attention_log_count_urgency_filter
}
Argument Reference
The following arguments are supported:
group_by
- (Optional) The optional parameter used to group different attention logs.is_regular_expression
- (Optional) The flag to indicate whether the search text is regular expression or not.log_search_text
- (Optional) The optional query parameter to filter the attention or alert logs by search text.managed_database_id
- (Required) The OCID of the Managed Database.time_greater_than_or_equal_to
- (Optional) The optional greater than or equal to timestamp to filter the logs.time_less_than_or_equal_to
- (Optional) The optional less than or equal to timestamp to filter the logs.type_filter
- (Optional) The optional parameter to filter the attention or alert logs by type.urgency_filter
- (Optional) The optional parameter to filter the attention logs by urgency.
Attributes Reference
The following attributes are exported:
attention_log_counts_collection
- The list of attention_log_counts_collection.
ManagedDatabaseAttentionLogCount Reference
The following attributes are exported:
items
- An array of the counts of different urgency or type of attention logs.category
- The category of different attention logs.count
- The count of attention logs with specific category.
managed_database_id
- The OCID of the Managed Database.