Deep Intelligence Documentation

Real time data sources

External data sources are an alternative to regular data sources when you want real time insertions, instead of the batch task-based system that applies to regular sources.

The main use cases are:

It is important to know that real time data sources have certain restrictions:

Real time insertions

In order to insert instances in real time, you have two methods:

Fist option: Using MQTT

For that, you can get the connection details clicking the MQTT button next to the source top bar.

MQTT button

You may insert instances by publishing messages in the given channel, with the given credentials.

Each message must contain a single instance, and it must be JSON encoded as an array, with the data values in order:

Second option: Using the API

We provide an HTTP API to do the same function as publishing messages via MQTT.

Check the documentation here (documented with Swagger):

Clearing data

By default, when creating the real time data source, you can configure the maximum age of the instances before being automatically deleted.

However, this may not be enough. In case you reach the limit for a data source, click the More options button (next to the MQTT button) and select the option Clear data. You will be able to select a range of dates to remove instances.

Real time visualizations

In order to visualize data in real time, you may use a visualization type inside the Real time category. Those visualizations can receive data in real time and smoothly reflect the changes. Any other visualization type will fully refresh when using it with real time data sources.

Real time visualizations

You can also create your own custom real time visualizations if you need a fully customizable visualization type that the built-in ones cannot provide.

For receiving data in real time, you must enable the Real time option in the last tab of the visualization configuration.

Each time the source is updated, the visualization will receive via WebSocket a certain number of the most recent instances. Depending on how fast your source updates, you may choose a bigger or lower number of instances to receive.

Real time visualizations