This data source provides the list of Usage Carbon Emissions Queries in Oracle Cloud Infrastructure Metering Computation service.
Returns the usage carbon emissions saved query list.
data "oci_metering_computation_usage_carbon_emissions_queries" "test_usage_carbon_emissions_queries" {
#Required
compartment_id = var.compartment_id
}
The following arguments are supported:
compartment_id
- (Required) The compartment ID in which to list resources.The following attributes are exported:
usage_carbon_emissions_query_collection
- The list of usage_carbon_emissions_query_collection.The following attributes are exported:
compartment_id
- The compartment OCID.id
- The query OCID.query_definition
- The common fields for queries.
cost_analysis_ui
- The common fields for Cost Analysis UI rendering.
graph
- The graph type.is_cumulative_graph
- A cumulative graph.display_name
- The query display name. Avoid entering confidential information.report_query
- The request of the generated usage carbon emissions report.
compartment_depth
- The compartment depth level.date_range_name
- The UI date range, for example, LAST_THREE_MONTHS. It will override timeUsageStarted and timeUsageEnded properties.group_by
- Specifies what to aggregate the result by. For example: ["tagNamespace", "tagKey", "tagValue", "service", "skuName", "skuPartNumber", "unit", "compartmentName", "compartmentPath", "compartmentId", "platform", "region", "logicalAd", "resourceId", "tenantId", "tenantName"]
group_by_tag
- GroupBy a specific tagKey. Provide the tagNamespace and tagKey in the tag object. Only supports one tag in the list. For example: [{"namespace":"oracle", "key":"createdBy"]
key
- The tag key.namespace
- The tag namespace.value
- The tag value.is_aggregate_by_time
- Specifies whether aggregated by time. If isAggregateByTime is true, all usage or cost over the query time period will be added up.tenant_id
- Tenant ID.time_usage_ended
- The usage end time.time_usage_started
- The usage start time.usage_carbon_emissions_query_filter
- The filter object for query usage.version
- The saved query version.