breezy-piano-61073
08/31/2021, 9:22 PMimport pulumi
import pulumi_newrelic as newrelic
foo_monitor = newrelic.synthetics.get_monitor(name="foo")
foo_alert_condition = newrelic.synthetics.AlertCondition("fooAlertCondition",
policy_id=newrelic_alert_policy["foo"]["id"],
monitor_id=foo_monitor.id,
runbook_url="<https://www.example.com>")
I was wondering what “newrelic_alert_policy” is. A function, variable? It isn’t defined in the example.
All I’m trying to do is create a simple alert for some simple synthetic monitors I’ve put together.