InspectProbe Class
Inspect and manipulate variables on the monitored server.
This class monitors the variable specified by the key.
The key is evaluated to determine the variable to monitor, so it may be a complex key starting at global scope. If the key isn't specified, it monitors all variables in the global scope.
If the key points to an object of type Backbone.Model, this probe will update the value in real time, triggered on the change event. Otherwise it will update the value as it notices changes, while polling on the specified polling interval (default: 1 second).
Constructor
InspectProbe
-
[initParams]
-
model
Parameters:
-
[initParams]
Object optional- Initialization parameters
-
[key=null]
String optionalA global variable name or expression
-
[depth=2]
Integer optionalIf the key points to an object, this is the depth to traverse the object for changes. Default=2, or 1 if key='window'.
-
[pollInterval]
Integer optional(from PollingProbe) Polling interval in milliseconds. Default: null
-
[cronPattern]
String optional(from PollingProbe) Crontab syle polling pattern. Default once per second: "* * * * * *"
-
model
Object- Monitor data model elements
-
value
- The value of the element being inspected
-
isModel
- Is the value a Backbone.Model?