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.No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by