Using the context object with Performance Monitors
- Last Updated: December 11, 2024
- 1 minute read
- WhatsUp Gold
- Version 2024
The context object provides an interface for your script to interact with WhatsUp Gold.
All methods and properties are retrieved using the Context namespace.
Methods | Method description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
This method allows for a message to be written to the WhatsUp Gold debug log. Example JScript
VBScript
|
||||||||||||||||||||||||||||||||||||
|
|
This method allows you to store a value in the INMSerialize object. This value is retained across polls. (This method is for Active Script only.) Example JScript
|
||||||||||||||||||||||||||||||||||||
|
|
This method allows you to store a value in the INMSerialize object. This value is retained across polls. (This method is for PowerShell only.) |
||||||||||||||||||||||||||||||||||||
|
|
This method allows for a result code and result message to be set. This is how you can tell the WhatsUp Gold system if the monitor succeeds or fails. Every script should call SetResult. If SetResult is not called, the script is always assumed to have succeeded. Example JScript
VBScript
|
||||||||||||||||||||||||||||||||||||
|
|
This method allows the code to grab a reference variable to be used in the monitor. Example JScript
A reference variable "A" would have had to have been created. |
||||||||||||||||||||||||||||||||||||
|
|
This method allows you to graph a value. Example JScript
|
||||||||||||||||||||||||||||||||||||
|
|
This method offers access to any of the device properties listed below. These names are case sensitive.
Example JScript
|