The Blocks Section

The blocks section is used to initialize the blocks that will be used by the Cloud Gateway. Think of each as a block of functionality. There are two main types of blocks in the Cloud Gateway. One that can send data to Predix Time Series service, and one that can send data to Predix Event Hub service.

Every block must have a type and config field in the configuration file. The type field defines what type of block is to be instantiated. The config section defines the configuration fields for that block and will look different depending on the type of the block. This config section is passed to the block when it is instantiated.

In the following example, two blocks are defined; one named block1 of type timeseries, and another named block2 of type eventhub.
{
    "blocks": {
        "block1": {
            "type": "timeseries",
            "config": {
                ...
            }
        },
        "block2": {
            "type": "eventhub",
            "config": {
                ...
            }
        },
        ...
    }
}