Example
This example demonstrates how to use the JSON Context Provider to read context data from a JSON file and Join it with high-frequency sensor data(simulated).
Refer to configuration to understand all configuration options of this Agent.
Step 1: Add the Agent
Drag the Agent onto the canvas and rename the Agent. Link the output endpoint to the join.
Save the Data Stream.
Step 2: Configure General
Select the Agent and click Configure. In this case, keep the default Collection.
Step 3: Configure Settings
Specify a path to a JSON file that contains context data.
Fill in the payload definition as per the contents of the file.
Apply the changes.
Step 4: Results
Save the Data Stream and publish it.
Let's look at the Live Data View. Observe that the context was successfully read and joined with sensor data. A complete example and the files used are provided below.
Files
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.
Last updated