Redgate Monitor 14

Help for older versions available.

Where are you using Redgate Monitor? (pick the closest answer)

Get-RedgateMonitorAlertSuppressionWindow

Gets the current alert suppression windows.

Syntax

  1. Get-RedgateMonitorAlertSuppressionWindow [[-BaseMonitor] <BaseMonitor>] [[-Name] <string>] [<CommonParameters>]
  2.  

Description

Gets the current alert suppression window for a specified [BaseMonitor] or for all base monitors.

Parameters

-BaseMonitor <BaseMonitor>

Only windows from the given base monitor will be returned, if not provided all windows will be returned.

Aliases None
Required? false
Position? 1
Default Value None
Accept Pipeline Input True (ByValue)
Accept Wildcard Characters false

-Name <String>

Name of the desired window. It might return multiple items with the same name from different base monitors.

Aliases None
Required? false
Position? 2
Default Value None
Accept Pipeline Input False
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.

  • [BaseMonitor] See Get-RedgateMonitorBaseMonitor.

Return values

The output type is the type of the objects that the cmdlet emits.

  • [AlertSuppressionWindow]

Examples

-------------------------- EXAMPLE 1 --------------------------

  1. # Retrieve all alert suppression windows across all base monitors.
  2. $windows = Get-AlertSuppressionWindow

-------------------------- EXAMPLE 2 --------------------------

  1. # Retrieve one or more named windows with the given name from all base monitors.
  2. $windows = Get-AlertSuppressionWindow -Name 'Weekend maintenance'

-------------------------- EXAMPLE 3 --------------------------

  1. # Retrieve a single named window from a base monitor.
  2. $baseMonitor = Get-RedgateMonitorBaseMonitor -Name 'us2.server'
  3. $weekendWindow = $baseMonitor | Get-AlertSuppressionWindow -Name 'Weekend maintenance'


Didn't find what you were looking for?