@notification::setDeviceFilter

Enable or disable specific Device Types for a notification. If this method is not called (i.e., no Device Type is specified), then all available Device Types will be notified.

This needs to be set before a performNotification is performed or the default value will be used.

Syntax:

@notification::setDeviceFilter(String deviceType, Boolean state)
 
OR
 
@notification::setDeviceFilter(List deviceNames)

Parameters:

Returns:

None

Example:

This script illustrates using only email Devices for a notification:

# enable email only
@notification::setDeviceFilter("email", true)
@notification::performNotification () 
 

Typically, the setDeviceFilter method is used in an initial script as illustrated in the following example::

IF (EXISTS($event.deviceFilter ))
  @alert::setDeviceFilter($event.deviceFilter, true)
ENDIF