title: Terraform Datadog Query Is Invalid
body: <p>I'm trying to test out creating a monitor for google pub sub and am getting an &quot;Invalid Query&quot; error.  This is the query text when i view source of another working monitor, so i'm confused as to why this isn't working.</p>
  <p>Error:  <code>Error: error creating monitor: 400 Bad Request: {&quot;errors&quot;:[&quot;The value provided for parameter 'query' is invalid&quot;]}</code></p>
  <p>Terraform:</p>
  <pre><code>resource &quot;datadog_monitor&quot; &quot;bad_stuff_sub_monitor&quot; {
    name               = &quot;${var.customer_name} Bad Stuff Monitor&quot;
    type               = &quot;metric alert&quot;
    message            = &quot;${var.customer_name} Bad Stuff Topic getting too big. Notify: ${var.datadog_monitor_notify_list}&quot;
    escalation_message = &quot;Escalation message @pagerduty&quot;
  
    query = &quot;avg:gcp.pubsub.subscription.num_undelivered_messages{project_id:terraform_gcp_test}&quot;
  
    thresholds = {
      ok                = 0
      warning           = 1
      warning_recovery  = 0
      critical          = 2
      critical_recovery = 1
    }
  
    notify_no_data    = false
    renotify_interval = 1440
  
    notify_audit = false
    timeout_h    = 60
    include_tags = true
  
    # ignore any changes in silenced value; using silenced is deprecated in favor of downtimes
    lifecycle {
      ignore_changes = [silenced]
    }
  
    tags = [var.customer_name, var.project_name]
  }
  </code></pre>