The action identifier is newrelic.alerts.updateMutingRule.
Updates an existing muting rule. Every field except accountId and id is optional — only the fields you provide are changed.
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 muting rule. |
|
id | String | Required. The ID of the muting rule to update. |
|
name | String | Optional. New name for the muting rule. Omit to leave unchanged. |
|
enabled | Boolean | Optional. Whether the muting rule is active. Set |
|
condition | Map | Optional. New condition group. See |
|
description | String | Optional. New description. Omit to leave unchanged. |
|
actionOnMutingRuleWindowEnded | String | Optional. Action on rule end or disable. One of |
|
schedule | Map | Optional. New schedule. 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 disables a muting rule after a deploy window ends.
Workflow example |
|---|
|