Update-RedgateMonitorAlertSuppressionWindow
Published 18 April 2024
Updates an alert suppression window.
Syntax
Update-RedgateMonitorAlertSuppressionWindow [-AlertSuppressionWindow] <BaseAlertSuppressionWindow> [<CommonParameters>]
Description
Updates an alert suppression window previously retrieved using Get-AlertSuppressionWindow.
Parameters
-AlertSuppressionWindow
<BaseAlertSuppressionWindow>
Alert suppression window to be updated
Aliases | None |
Required? | true |
Position? | 1 |
Default Value | None |
Accept Pipeline Input | True (ByValue) |
Accept Wildcard Characters | false |
-ProgressAction
<ActionPreference>
{{ Fill ProgressAction Description }}
Aliases | None |
Required? | false |
Position? | named |
Default Value | None |
Accept Pipeline Input | False |
Accept Wildcard Characters | false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see http://technet.microsoft.com/en-us/library/hh847884.aspx.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
[AlertSuppressionWindow] The alert suppression window to modify. See Get-RedgateMonitorAlertSuppressionWindow.
Return values
The output type is the type of the objects that the cmdlet emits.
-
[AlertSuppressionWindow] Passthrough of the AlertSuppressionWindow parameter.
Examples
-------------------------- EXAMPLE 1 --------------------------
# Removes all targets from a window. $baseMonitor = Get-RedgateMonitorBaseMonitor -Name 'us2.server' $window = $baseMonitor | Get-RedgateMonitorAlertSuppressionWindow -Name 'Weekend maintenance' $window.Targets = @() $window | Update-RedgateMonitorAlertSuppressionWindow