JavascriptProbe - Global
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The JavascriptProbe script include provides methods for using the JavascriptProbe on the MID Server.
Use these methods in server scripts to send a probe to the MID Server For more information, see Create a JavaScript Probe activity.
JavascriptProbe - JavascriptProbe(String midServer)
Creates an instance of the JavascriptProbe.
Name | Type | Description |
---|---|---|
midServer | String | The MID server name |
Example
The following example shows how to use an instance of JavascriptProbe.
JavascriptProbe - addParameter(String name, String value)
Adds a parameter with the specified value to the probe.
Name | Type | Description |
---|---|---|
name | String | The parameter name |
value | String | The parameter's value |
Type | Description |
---|---|
void |
Example
JavascriptProbe - create()
Creates the probe for the current MID server, puts it on the output queue, and sets its state to "ready".
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
Example
JavascriptProbe - setJavascript(String script)
Adds a script to the probe.
Name | Type | Description |
---|---|---|
script | String | The script to add to the probe |
Type | Description |
---|---|
void |
Example
JavascriptProbe - setName(String name)
Sets the name of the JavascriptProbe
Name | Type | Description |
---|---|---|
name | String | The name to give the JavascriptProbe. |
Type | Description |
---|---|
void |
Example
JavascriptProbe - setSource(String ip)
Sets the source of the probe.
Name | Type | Description |
---|---|---|
ip | String | The IP address of the target probe. |
Type | Description |
---|---|
void |