This section describes the structure of a PaCE data collector.

When you create a data collector, you can add inputs and outputs in the Javascript code. In the Data sources tab, select Add to create the inputs and outputs you want to add to your data collector. The following images show the pop-up window that will show up when you select Add under the Input or Output tab.
Add data collector input tab.


Add data collector output tab.

The following image shows a sample data collector:
Data collector script.

To debug the data collector script, select the Debugger script icon Debugger icon. For more information, see Script Debugger API.

The following table lists the data collector function parameters and how they can be used in the script.
Variable name Description
Input Inputs are used as parameters that help collect the correct data to be used in the policy.
Output The parameter is used to pass the output of the data collector. Outputs are used to specify output variables that can be used in the policy logic.

Refer to the Data type descriptions topic to see a list of the supported data types for the inputs and outputs.