You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"oci_metering_computation_query""this" {
# compartment_id - (required) is a type of stringcompartment_id=var.compartment_iddynamic"query_definition" {
for_each=var.query_definitioncontent {
# display_name - (required) is a type of stringdisplay_name=query_definition.value["display_name"]
# version - (required) is a type of numberversion=query_definition.value["version"]
dynamic"cost_analysis_ui" {
for_each=query_definition.value.cost_analysis_uicontent {
# graph - (optional) is a type of stringgraph=cost_analysis_ui.value["graph"]
# is_cumulative_graph - (optional) is a type of boolis_cumulative_graph=cost_analysis_ui.value["is_cumulative_graph"]
}
}
dynamic"report_query" {
for_each=query_definition.value.report_querycontent {
# compartment_depth - (optional) is a type of numbercompartment_depth=report_query.value["compartment_depth"]
# date_range_name - (optional) is a type of stringdate_range_name=report_query.value["date_range_name"]
# filter - (optional) is a type of stringfilter=report_query.value["filter"]
# granularity - (required) is a type of stringgranularity=report_query.value["granularity"]
# group_by - (optional) is a type of list of stringgroup_by=report_query.value["group_by"]
# is_aggregate_by_time - (optional) is a type of boolis_aggregate_by_time=report_query.value["is_aggregate_by_time"]
# query_type - (optional) is a type of stringquery_type=report_query.value["query_type"]
# tenant_id - (required) is a type of stringtenant_id=report_query.value["tenant_id"]
# time_usage_ended - (optional) is a type of stringtime_usage_ended=report_query.value["time_usage_ended"]
# time_usage_started - (optional) is a type of stringtime_usage_started=report_query.value["time_usage_started"]
dynamic"forecast" {
for_each=report_query.value.forecastcontent {
# forecast_type - (optional) is a type of stringforecast_type=forecast.value["forecast_type"]
# time_forecast_ended - (required) is a type of stringtime_forecast_ended=forecast.value["time_forecast_ended"]
# time_forecast_started - (optional) is a type of stringtime_forecast_started=forecast.value["time_forecast_started"]
}
}
dynamic"group_by_tag" {
for_each=report_query.value.group_by_tagcontent {
# key - (optional) is a type of stringkey=group_by_tag.value["key"]
# namespace - (optional) is a type of stringnamespace=group_by_tag.value["namespace"]
# value - (optional) is a type of stringvalue=group_by_tag.value["value"]
}
}
}
}
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}