Disables the associated Device. This method has the same effect as clearing the "Active" check box on the Device details page in the xMatters web user interface.
@device::disableDevice()
None
None
The following code illustrates how to disable a Device recipient from within scripting:
@device = @event::getRecipient($response.recipient_target)
$category =@device::getRecipientCategory()
IF($category == "DEVICE")
@device::disableDevice()
ELSE
@script::log("Recipient not Device " & $response.recipient_target )
ENDIF