Resource: honeycombio_query

Creates a query in a dataset.

Queries can be used by triggers and boards, or be executed via the Query Data API.

Example Usage

variable "dataset" {
  type = string
}

data "honeycombio_query_specification" "test_query" {
  calculation {
    op     = "AVG"
    column = "duration_ms"
  }

  filter {
    column = "duration_ms"
    op     = ">"
    value  = "200"
  }
}

resource "honeycombio_query" "test_query" {
  dataset    = var.dataset
  query_json = data.honeycombio_query_specification.test_query.json
}

Argument Reference

The following arguments are supported:

Attribute Reference

In addition to all arguments above, the following attributes are exported:

Import

Querys can be imported using a combination of the dataset name and their ID, e.g.

$ terraform import honeycombio_query.my_query my-dataset/bj8BwOa1uRz