apama-analytics-builder-block-sdk

Introduction

This Software Development Kit (SDK) describes how to write blocks for Apama Analytics Builder. Analytics Builder allows users to create “models” by combining a number of blocks, providing parameter values for the blocks, and wiring the blocks together. Models use blocks to implement streaming analytics, for example, to detect anomalous conditions or to generate derived measurements for further analysis. Blocks can implement connectivity to receive data from outside the model, send data outside the model, or to perform processing based on values flowing through the model.

Analytic models run in the Apama correlator, and are managed by the Analytics Builder framework. The framework is responsible for checking that the model wiring is valid, the lifetime of the model, and invoking blocks when values flow through a model.

Blocks can be tested using the PySys test framework that is included in an Apama installation. In order to develop, test and package blocks, you will need a full installation of Apama.

Blocks are implemented in Apama’s Event Processing Language (EPL). This guide assumes a working knowledge of EPL. Refer to the Apama documentation on developing EPL applications and the API Reference for EPL (ApamaDoc). This guide also assumes a working knowledge of the Analytics Builder data model. Refer to the Streaming Analytics guide.

The Analytics Builder block SDK has branches in a GitHub repository. You need to download the appropriate release of the block SDK based on the version of the Cumulocity IoT tenant you are using. Refer to the Releases page of the block SDK. The version of the block SDK should be compatible with the version of the Cumulocity IoT tenant.

Blocks can range from very simple stateless functions to more complex logic. Blocks can make use of:

< Prev: Contents Contents Next: Using Software AG Designer >