The transform script process will process a payload using a particular GoLang script. The yaegi interpreter will be used to execute the script and the scripts will be located in a special scripts directory.
The purpose of the process is to allow users to rapidly add support for new analytics platforms by issuing a new script.
When the ProcessType is set to TransformScriptProcess, a parent field named TransformScriptProcessConfiguration must be populated with one or more pairs of Name and Value fields as shown below. You may have any number of Name and Value pairs as you wish. If you enter items that are not correctly paired, the process will be invalid and the pipeline will not start.
Fields | Description | Valid Values |
ScriptName | The name of the script file |
|
Example Transform Script Process File
{
"Name": "Script Transform",
"Id": "bb399413-3c2d-4b45-a85e-bf4c95c9bbc0",
"ScriptTransformConfiguration": {
"ScriptName":”TimeSeriesToDataDog”
},
"ProcessType": "ScriptTransform"
}