Example
The following examples can be found on this page:
This example demonstrates how to use the Action Agent to send stream data to the Boon Amber platform and print its raw JSON response.
Drag the Boon Amber Action Agent onto the canvas and rename it. Link the input endpoint to the stream data, the output endpoint to the printer, and save the Data Stream.

Select the Agent and click Configure. In this case, keep the default Collection.

Fill in the Base URL and select a Metadata File. In this case, select the base URL, and upload the Metadata File.

Enter the authentication details. In this case, keep the default authentication type (Boon Amber) and select a username and password.

Select the operation and result entity (defined in the uploaded Metadata File). In this case, set the operation to 'Post Stream' and the result entity to 'Raw JSON'.

The input mapping is populated when you select an operation. Map one of the parent Agent's output attributes to each parameter, which is fetched from the metadata file.
In this case, select SensorId and Data.

Apply the changes, save the Data Stream, and publish it.

Let's look at the Live Data View. Observe that the response string from the Boon Amber is printed as well as its input payload.

File | Link | Security Key |
---|---|---|
Data Stream | Boon Amber Action Agent Example.xuc | C0mp|ex123 |
Metadata | Boon Amber Metadata.json | |
This example demonstrates how to use the Action Agent to write stream data to the Boon Amber platform and return the deserialized data from its response. It makes use of the JSON Deserializer and Calculated Field Agents to properly format the output.
Drag the Boon Amber Action Agent onto the canvas and rename it. Link the input endpoint to the stream data, the output endpoint to the deserializer, and save the Data Stream.

Select the Agent and click Configure. In this case, keep the default Collection.

Fill in the Base URL and select a Metadata File. In this case, select the base URL, and upload the Metadata File.

Enter the authentication details. In this case, keep the default authentication type (Boon Amber) and select a username and password.

Select the operation and result entity (defined in the uploaded Metadata File). In this case, set the operation to 'Post Stream' and the result entity to 'Raw JSON'.

The input mapping is populated when you select an operation. Map one of the parent Agent's output attributes to each parameter, which is fetched from the metadata file. In this case, select SensorId and Data.

Apply the changes, save the Data Stream, and publish it.

Let's look at the Live Data View. Observe that the values from the Boon Amber response string are deserialized and printed as well as its input payload.

File | Link | Security Key |
---|---|---|
Data Stream | Boon Amber Action Agent Advanced Example.xuc | C0mp|ex123 |
Metadata | Boon Amber Metadata.json | |
Last modified 5mo ago