» newrelic_synthetics_monitor
Use this data source to get information about a specific synthetics monitor in New Relic. This can then be used to set up a synthetics alert condition.
» Example Usage
data "newrelic_synthetics_monitor" "bar" {
name = "bar"
}
resource "newrelic_synthetics_alert_condition" "baz" {
policy_id = "${newrelic_alert_policy.foo.id}"
name = "baz"
monitor_id = "${data.newrelic_synthetics_monitor.bar.id}"
runbook_url = "https://www.example.com"
}
» Argument Reference
The following arguments are supported:
-
name
- (Required) The name of the synthetics monitor in New Relic.
» Attributes Reference
-
id
- The ID of the synthetics monitor.