The action identifier is newrelic.alerts.updatePolicy.
Updates an existing alert policy. You can change the policy name, incident preference, or both. Omitting a field leaves it unchanged.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Required. The New Relic account that owns the policy. |
|
id | String | Required. The ID of the policy to update. |
|
name | String | Optional. New name for the policy. Omit to leave unchanged. |
|
incidentPreference | String | Optional. New incident preference. Omit to leave unchanged. One of |
|
selectors | List | Optional. JQ selectors to extract values from the response. | |
The following table describes all output fields returned by this action.
Output | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Error message on failure. |
data | Map | NerdGraph response. Use |
The following example renames an alert policy.
Workflow example |
|---|
|