terraform/website/source/docs/providers/newrelic/r/alert_channel.html.markdown

1015 B

layout page_title sidebar_current description
newrelic New Relic: newrelic_alert_channel docs-newrelic-resource-alert-channel Create and manage a notification channel for alerts in New Relic.

newrelic_alert_channel

Example Usage

resource "newrelic_alert_channel" "foo" {
  name = "foo"
	type = "email"
	
	configuration = {
		recipients = "foo@example.com"
		include_json_attachment = "1"
	}
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the channel.
  • type - (Required) The type of channel. One of: campfire, email, hipchat, opsgenie, pagerduty, slack, victorops, or webhook.
  • configuration - (Required) A map of key / value pairs with channel type specific values.

Attributes Reference

The following attributes are exported:

  • id - The ID of the channel.

Import

Alert channels can be imported using the id, e.g.

$ terraform import newrelic_alert_channel.main 12345