Add the device or devices that you want to be watched by your custom monitor with the device chooser. Below this, there is a fully functioning code editor built into the event monitor's settings section.
The sample script provided will trigger a randomized alert each time it runs. The code is useful when used as an example to create your own unique script. The result can be set to "Success", "Warning", "Error" or "Critical" followed by a description of the actions taken and their result.