Data Source: honeycombio_query_result

The query_result data source allows you to execute Honeycomb queries via the Query Data API. As this data source is a wrapper around the Query Data API all of its documented restrictions apply.

Example Usage

data "honeycombio_query_specification" "example" {
  time_range = 7200

  calculation {
    op = "COUNT"
  }
}

data "honeycombio_query_result" "example" {
  dataset    = var.dataset
  query_json = data.honeycombio_query_specification.example.json
}

output "event_count" {
  value = format(
    "There have been %d events in the last %d seconds.",
    data.honeycombio_query_result.example.results[0]["COUNT"],
    data.honeycombio_query_specification.example.time_range
  )
}

Argument Reference

The following arguments are supported:

Attribute Reference

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