Hello Pulumi/python people! Trying to create an A...
# python
b
Hello Pulumi/python people! Trying to create an AlertCondition using some of the example code on this page There is some code in the Example Usage section, under the python tab that contains the following:
Copy code
import 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.