DataDog / terraform-provider-datadog

Terraform Datadog provider
https://www.terraform.io/docs/providers/datadog/
Mozilla Public License 2.0
399 stars 375 forks source link

`widget.timeseries_definition.request.query.slo_query.slo_query_type` doesn't support `time_slice` option #2411

Closed smartfin closed 2 months ago

smartfin commented 4 months ago

Datadog Terraform Provider Version

v3.39.0

Terraform Version

v1.5.7

What resources or data sources are affected?

widget.timeseries_definition.request.query.slo_query, and every resource that has slo_query_type field

Terraform Configuration Files

widget {
        timeseries_definition {
          title = "SLO Status"

          request {
            display_type = "area"

            formula {
              formula_expression = "query1"
              style {
                palette = "green"
              }
            }
            query {
              slo_query {
                name           = "query1"
                data_source    = "slo"
                measure        = "slo_status"
                slo_id         = datadog_service_level_objective.sli_response_time_p95.id
                slo_query_type = "metric"
                group_mode     = "overall"
              }
            }
          }
        }
      }

Relevant debug or panic output

No response

Expected Behavior

slo_query_type should support value time_slice to display timeseries charts for SLO that has type time_slice

Actual Behavior

Widget is created but it doesn't show any data

Steps to Reproduce

No response

Important Factoids

No response

References

No response

pablito-perez commented 2 months ago

fixed in this release: https://github.com/DataDog/terraform-provider-datadog/releases/tag/v3.42.0