Skip to content

Invalid on_missing_data value: resolve, valid value is: default #2815

Description

@sharebear

Datadog Terraform Provider Version

v3.53.0

Terraform Version

v1.10.4

What resources or data sources are affected?

  • datadog_monitor

Terraform Configuration Files

resource "datadog_monitor" "my_monitor" {
  include_tags             = false
  notification_preset_name = "hide_all"
  on_missing_data          = "resolve"
  require_full_window      = false
  name                     = "My monitor with resolve on missing data"
  type                     = "query alert"
  query                    = <<EOT
min(last_2h):default_zero(sum:azure.dbforpostgresql_flexibleservers.count{resource_group:qa-temp-rg OR resource_group:prod-temp-rg}) >= 1
EOT
}

Relevant debug or panic output

Error: 1 error occurred:
	* error validating monitor from /api/v1/monitor/validate: 400 Bad Request: {"errors":["Invalid on_missing_data value: resolve; valid value is: default"]}

Expected Behavior

Terraform code should validate

Actual Behavior

Terraform code does not validate

Steps to Reproduce

  1. Use datadog create monitor page to start configuring mointor
  2. Click "Export monitor" -> "Terraform" -> "Copy"
  3. Paste into my code
  4. terraform plan

Important Factoids

Metric being alerted on here is a Gauge ... if that's relevant.

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions