< Back

Set-NotificationTrigger

Sun Jan 19, 2020 5:44 pm

NAME Set-NotificationTrigger



SYNOPSIS

Modifies a notification trigger on a PRTG Server.





SYNTAX

Set-NotificationTrigger [-Parameters] <TriggerParameters> [<CommonParameters>]





DESCRIPTION

The Set-NotificationTrigger cmdlet updates an existing notification trigger defined on an object in PRTG. When

editing a notification trigger, you must first create a TriggerParameters object that defines the settings you

wish to modify. TriggerParameters can be created from an existing notification trigger or created from scratch.



For more information on creating TriggerParameters, see New-NotificationTriggerParameters



For information on how to quickly edit a single trigger property, see Edit-NotificationTriggerProperty.





PARAMETERS

-Parameters <TriggerParameters>

The parameters to use to modify a NotificationTrigger.



Required? true

Position? 0

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

PrtgAPI.Parameters.TriggerParameters

The parameters to use to modify a NotificationTrigger.





OUTPUTS



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



C:\\> $triggerParams = Get-Probe | Get-Trigger -Type State | New-TriggerParameters

C:\\> $triggerParams.RepeatInterval = 20

C:\\> $triggerParams.OffNotificationAction = $null



C:\\> $triggerParams | Set-NotificationTrigger



Set the repeat interval of the notification to trigger to every 20 minutes, and remove the off notification

action. This example assumes there is exactly one probe in the system with exactly one state notification trigger

defined on it.



RELATED LINKS

Online version: https://github.com/lordmilko/PrtgAPI/wi ... s#modify-1

New-NotificationTriggerParameters

Edit-NotificationTriggerProperty

Get-NotificationTrigger