The action identifier is newrelic.alerts.searchNrqlConditions.
Searches NRQL alert conditions (static or baseline) with optional filtering by name, policy, NRQL query text, or terms operator. Supports cursor-based pagination. Omitting all filters returns all conditions in the account.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Required. The New Relic account to search NRQL conditions in. |
|
name | String | Optional. Filter to conditions with this exact name. |
|
nameLike | String | Optional. Filter to conditions whose name contains this substring. |
|
policyId | String | Optional. Filter to conditions attached to this alert policy. |
|
nrqlQuery | String | Optional. Filter to conditions with this exact NRQL query text. |
|
nrqlQueryLike | String | Optional. Filter to conditions whose NRQL query text contains this substring. |
|
termsOperator | String | Optional. Filter to conditions whose threshold term uses this operator. One of |
|
cursor | String | Optional. Pagination cursor from a prior call's |
|
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 finds NRQL conditions attached to a policy by name fragment.
Workflow example |
|---|
|