Skip to content

Commit 34698be

Browse files
fix(notifications): added servicenow app channel option to valid notification channels list (#2716)
1 parent 13689fe commit 34698be

3 files changed

+14
-1
lines changed

newrelic/resource_newrelic_notifications_channel.go

+1
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ func listValidNotificationsChannelTypes() []string {
207207
string(notifications.AiNotificationsChannelTypeTypes.WEBHOOK),
208208
string(notifications.AiNotificationsChannelTypeTypes.EMAIL),
209209
string(notifications.AiNotificationsChannelTypeTypes.SERVICENOW_INCIDENTS),
210+
string(notifications.AiNotificationsChannelTypeTypes.SERVICE_NOW_APP),
210211
string(notifications.AiNotificationsChannelTypeTypes.PAGERDUTY_ACCOUNT_INTEGRATION),
211212
string(notifications.AiNotificationsChannelTypeTypes.PAGERDUTY_SERVICE_INTEGRATION),
212213
string(notifications.AiNotificationsChannelTypeTypes.JIRA_CLASSIC),

newrelic/resource_newrelic_workflow.go

+1
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ func listValidWorkflowsDestinationTypes() []string {
578578
string(workflows.AiWorkflowsDestinationTypeTypes.PAGERDUTY_ACCOUNT_INTEGRATION),
579579
string(workflows.AiWorkflowsDestinationTypeTypes.PAGERDUTY_SERVICE_INTEGRATION),
580580
string(workflows.AiWorkflowsDestinationTypeTypes.SERVICE_NOW),
581+
string(workflows.AiWorkflowsDestinationTypeTypes.SERVICE_NOW_APP),
581582
string(workflows.AiWorkflowsDestinationTypeTypes.WEBHOOK),
582583
string(workflows.AiWorkflowsDestinationTypeTypes.MOBILE_PUSH),
583584
string(workflows.AiWorkflowsDestinationTypeTypes.SLACK),

website/docs/r/notification_channel.html.markdown

+12-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following arguments are supported:
3939

4040
* `account_id` - (Optional) Determines the New Relic account where the notification channel will be created. Defaults to the account associated with the API key used.
4141
* `name` - (Required) The name of the channel.
42-
* `type` - (Required) The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
42+
* `type` - (Required) The type of channel. One of: `EMAIL`, `SERVICENOW_INCIDENTS`, `SERVICE_NOW_APP`, `WEBHOOK`, `JIRA_CLASSIC`, `MOBILE_PUSH`, `EVENT_BRIDGE`, `SLACK` and `SLACK_COLLABORATION`, `PAGERDUTY_ACCOUNT_INTEGRATION` or `PAGERDUTY_SERVICE_INTEGRATION`.
4343
* `destination_id` - (Required) The id of the destination.
4444
* `product` - (Required) The type of product. One of: `DISCUSSIONS`, `ERROR_TRACKING` or `IINT` (workflows).
4545
* `property` - A nested block that describes a notification channel property. See [Nested property blocks](#nested-property-blocks) below for details.
@@ -60,6 +60,7 @@ Each notification channel type supports a specific set of arguments for the `pro
6060
* `SERVICENOW_INCIDENTS`
6161
* `description` - (Optional) Free text that represents a description.
6262
* `short_description` - (Optional) Free text that represents a short description.
63+
* `SERVICE_NOW_APP` - No Properties.
6364
* `JIRA_CLASSIC`, `JIRA_NEXTGEN`
6465
* `project` - (Required) Identifier that specifies jira project id.
6566
* `issuetype` - (Required) Identifier that specifies the issue type id.
@@ -112,6 +113,16 @@ resource "newrelic_notification_channel" "foo" {
112113
}
113114
}
114115
```
116+
##### [ServiceNowApp](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#servicenowapp)
117+
```hcl
118+
resource "newrelic_notification_channel" "foo" {
119+
account_id = 12345678
120+
name = "servicenow-app-example"
121+
type = "SERVICE_NOW_APP"
122+
destination_id = "00b6bd1d-ac06-4d3d-bd72-49551e70f7a8"
123+
product = "IINT"
124+
}
125+
```
115126

116127
##### [Email](https://docs.newrelic.com/docs/apis/nerdgraph/examples/nerdgraph-api-notifications-channels/#email)
117128
```hcl

0 commit comments

Comments
 (0)