Data Source: honeycombio_recipient

honeycombio_recipient data source provides details about a specific recipient in the Team.

The ID of an existing recipient can be used when adding recipients to triggers or burn alerts.

Example Usage

# search for a Slack recipient with channel name "honeycomb-triggers"
data "honeycombio_recipient" "slack" {
  type    = "slack"

  detail_filter {
    name  = "channel"
    value = "#honeycomb-triggers"
  }
}

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

resource "honeycombio_trigger" "example" {
  name        = "Requests are slower than usual"

  query_json = data.honeycombio_query_specification.example.json
  dataset    = var.dataset

  threshold {
    op    = ">"
    value = 1000
  }

  recipient {
    type   = "email"
    target = "hello@example.com"
  }

  # add an already existing recipient
  recipient {
    id = data.honeycombio_recipient.slack.id
  }
}

Argument Reference

The following arguments are supported:

Type Target
email an email address
marker name of the marker
msteams name of the integration
pagerduty _N/A_
slack name of the channel
webhook name of the webhook

To further filter the recipient results, a detail_filter block can be provided which accepts the following arguments:

Attribute Reference

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