The action identifier is newrelic.alerts.updateBaselineNrqlCondition.
Updates an existing baseline NRQL alert condition. Every field except accountId and id is optional — only the fields you provide are changed; omitted fields keep their current value.
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 condition. |
|
id | String | Required. The ID of the baseline condition to update. |
|
name | String | Optional. New name for the condition. Omit to leave unchanged. |
|
nrqlQuery | String | Optional. New NRQL query to evaluate. Omit to leave unchanged. |
|
nrqlDataAccountId | Int | Optional. Account to run the NRQL query against if different from |
|
enabled | Boolean | Optional. Whether the condition is active. Set |
|
baselineDirection | String | Optional. New deviation direction. One of |
|
signalSeasonality | String | Optional. New seasonality setting. One of |
|
terms | List | Optional. Replaces the condition's thresholds. Omit to leave unchanged. Each entry: |
|
description | String | Optional. New description. Omit to leave unchanged. |
|
runbookUrl | String | Optional. New runbook URL. Omit to leave unchanged. |
|
titleTemplate | String | Optional. New violation title template. Omit to leave unchanged. |
|
violationTimeLimitSeconds | Int | Optional. Force-closes open violations after this many seconds. |
|
signal | Map | Optional. Advanced signal and streaming settings. See |
|
expiration | Map | Optional. Loss-of-signal settings. See |
|
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 changes the deviation direction on a baseline condition to upper only.
Workflow example |
|---|
|