Data Source: oci_metering_computation_usage_carbon_emissions_query
This data source provides details about a specific Usage Carbon Emissions Query resource in Oracle Cloud Infrastructure Metering Computation service.
Returns the carbon emissions usage saved query.
Example Usage
data "oci_metering_computation_usage_carbon_emissions_query" "test_usage_carbon_emissions_query" {
	#Required
	usage_carbon_emissions_query_id = oci_metering_computation_usage_carbon_emissions_query.test_usage_carbon_emissions_query.id
}
Argument Reference
The following arguments are supported:
- usage_carbon_emissions_query_id- (Required) The query unique OCID.
Attributes Reference
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 carbon emissions usage report.- compartment_depth- The compartment depth level.
- date_range_name- The user interface date range, for example, LAST_THREE_MONTHS. Overrides the timeUsageStarted and timeUsageEnded properties.
- emission_calculation_method- Specifies the method used for emission calculation, such as POWER_BASED or SPEND_BASED
- emission_type- Specifies the type of emission, such as MARKET_BASED or LOCATION_BASED.
- granularity- The carbon emission granularity. DAILY - Daily data aggregation. MONTHLY - Monthly data aggregation.
- 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 costs over the query time period are summed.
- 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.