Sets the priority of the notification to be used for the filtering of Devices according to each User's Priority Threshold settings. The default priority value for a notification is MEDIUM.
Availability: This method is available in xMatters version 5.0 and later.
Users can set a minimum priority level of notifications for each of their Devices using the Priority Threshold setting in the xMatters web user interface. When resolving the notification, only notifications that meet or exceed the specified priority threshold are delivered to the Device.
@notification::setDeviceThreshold(String priority)
(String) priority: the priority to assign to this notification; possible values are HIGH, MEDIUM, and LOW, or the corresponding short forms of H, M, and L. If the value does not match one of the possible values or its corresponding short form , the notification is set to the default priority of MEDIUM.
None
This script illustrates using setDeviceThreshold to set a HIGH priority for a notification:
# Set Notification Priority to HIGH
@alert::setDeviceThreshold("HIGH")