Creates a query annotation in a dataset.
variable "dataset" {
type = string
}
data "honeycombio_query_specification" "test_query" {
calculation {
op = "AVG"
column = "duration_ms"
}
filter {
column = "duration_ms"
op = ">"
value = 10
}
}
resource "honeycombio_query" "test_query" {
dataset = var.dataset
query_json = data.honeycombio_query_specification.test_query.json
}
resource "honeycombio_query_annotation" "test_annotation" {
dataset = var.dataset
query_id = honeycombio_query.test_query.id
name = "My Cool Query"
description = "Describes my cool query (optional)"
}
The following arguments are supported:
dataset
- (Required) The dataset this query annotation is added to. Use __all__
for Environment-wide query annotations.query_id
- (Required) The ID of the query that the annotation will be created on. Note that a query can have more than one annotation.name
- (Required) The name of the query annotation that will display in the Honeycomb UI.description
- (Optional) The description for the query annotation.In addition to all arguments above, the following attributes are exported:
id
- ID of the query annotation. Useful for adding it to a board.Query annotations cannot be imported.