The action identifier is newrelic.alerts.createMutingRule.
Creates a new muting rule to suppress alert notifications for violations matching a condition. Optionally schedules the rule as a recurring or one-time maintenance window.
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 muting rule. |
|
name | String | Required. The name of the muting rule. |
|
enabled | Boolean | Required. Whether the muting rule is active. |
|
condition | Map | Required. The condition group that defines which violations to mute. Requires |
|
description | String | Optional. Free-text description of the muting rule. |
|
actionOnMutingRuleWindowEnded | String | Optional. What happens to open issues when the muting window ends or the rule is disabled. One of |
|
schedule | Map | Optional. The time window during which the rule actively mutes violations. Omit for an always-on rule. Fields: |
|
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 a muting rule that suppresses alerts for a policy during recurring weekend maintenance windows.
Workflow example |
|---|
|