Skip to content

Instantly share code, notes, and snippets.

View pranav-new-relic's full-sized avatar

pranav-new-relic

View GitHub Profile
resource "newrelic_synthetics_monitor" "selfchecks" {
for_each = { for check in var.checks : check.url => check }
type = "SIMPLE"
status = coalesce(each.value.status, upper(var.newrelic_monitor_status))
name = "${var.env}: ${each.value.name}"
uri = "https://${var.subdomain}.${var.dns_domain}${each.value.url}"
period = "EVERY_12_HOURS"
bypass_head_request = true
validation_string = each.value.validation_str
query(
$guid: EntityGuid!,
) { actor { entity(
guid: $guid,
) {
account {
id
name
reportingEventTypes
}