@device::disableDevice

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.

Syntax:

@device::disableDevice()

Parameters:

None

Returns:

None

Example:

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