Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Structure of a data collector

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.

Image omitted: pace-data-collector-add-input.jpg
Add data collector input tab.
Image omitted: pace-data-collector-add-output.jpg
Add data collector output tab.

The following image shows a sample data collector:

To debug the data collector script, select the Debugger script icon

Image omitted: pace-debug-icon.jpg
Debugger icon. For more information, see [Script Debugger API](../../api-reference/rest-apis/scriptdebugger-api.md).

The following table lists the data collector function parameters and how they can be used in the script.

Variable nameDescription
InputInputs are used as parameters that help collect the correct data to be used in the policy.
OutputThe 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.