Data Source: oci_database_management_managed_database_optimizer_statistics_collection_aggregations

This data source provides the list of Managed Database Optimizer Statistics Collection Aggregations in Oracle Cloud Infrastructure Database Management service.

Gets a list of the optimizer statistics collection operations per hour, grouped by task or object status for the specified Managed Database. You must specify a value for the GroupByQueryParam to determine whether the data should be grouped by task status or task object status. Optionally, you can specify a date-time range (of seven days) to obtain collection aggregations within the specified time range. If the date-time range is not specified, then the operations in the last seven days are listed. You can further filter the results by providing the optional type of TaskTypeQueryParam. If the task type if not provided, then both Auto and Manual tasks are considered for aggregation.

Example Usage

data "oci_database_management_managed_database_optimizer_statistics_collection_aggregations" "test_managed_database_optimizer_statistics_collection_aggregations" {
    #Required
    group_type = var.managed_database_optimizer_statistics_collection_aggregation_group_type
    managed_database_id = oci_database_management_managed_database.test_managed_database.id

    #Optional
    end_time_less_than_or_equal_to = var.managed_database_optimizer_statistics_collection_aggregation_end_time_less_than_or_equal_to
    start_time_greater_than_or_equal_to = var.managed_database_optimizer_statistics_collection_aggregation_start_time_greater_than_or_equal_to
    task_type = var.managed_database_optimizer_statistics_collection_aggregation_task_type
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

ManagedDatabaseOptimizerStatisticsCollectionAggregation Reference

The following attributes are exported: