The action identifier is newrelic.alerts.searchAsNrqlConditions.
Searches classic (legacy) alert conditions in their NRQL-converted format. Supports optional filtering by name, policy, or source product and cursor-based pagination.
The following table describes all available input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
accountId | Int | Required. The New Relic account to search 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 under this policy ID. |
|
sourceProduct | List | Optional. Filter to conditions converted from these source products. One or more of |
|
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 classic conditions by name fragment.
Workflow example |
|---|
|