The action identifier is newrelic.alerts.createPolicy.
Creates a new alert policy. A policy groups related alert conditions and controls how violations create incidents.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Required. The New Relic account in which to create the policy. Must be a positive integer. |
|
name | String | Required. The name of the policy. |
|
incidentPreference | String | Required. Determines how incidents are created for violations. 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 creates an alert policy and captures the new policy ID for use in subsequent steps.
Workflow example |
|---|
|