Why an automatic aggregation?


Manual consolidation as explained in How to consolidate data within KAIROS is useful when this kind of operation occurs infrequently. Conversely, if that operation is need frequently, every day for example, the manual operating mode can become tedious.


An example is the following: we are collecting data every day on several nodes and we would like to have a consolidated view of these nodes every day. To overcome this tedious task, we have implemented a mechanism allowing to create automatic aggregates.


How to do this ?


We are going to reuse the example taken in How to consolidate data within KAIROS. The picture is the following:


We have uploaded data into CONSOLIDATE/NODE1/2014-05-19 and CONSOLIDATE/NODE2/2014-05-19. We have explained how to generate "manually" the node CONSOLIDATE/ALL_NODES/2014-05-19.


Now we are going to reach the same objective but with a different way:


a) create a new node under CONSOLIDATE


We have then the following picture:



b) drag NODE1 over the new created node while the "Windows key" is pressed


This leads to the following picture:



The yellow chip of AUTOMATIC_NODE has turned purple


b) drag NODE2 over the new created node while the "Windows key" is pressed


Now to check what happened, we can open AUTOMATIC NODE to have a look to its properties:



Its looks like an aggregation (or consolidation or average) except the node type is "L". We can update everything in the "aggregator" section. 


Let's update the "method" field to "10 minutes":



Before pressing the "Apply aggregator" button, let's check the repository:



There is nothing under AUTOMATIC_NODE.


Now if we press "Apply Aggregator", let's check the repository:



A node has been created under AUTOMATIC_NODE. It's an aggregate and it represents the consolidated view of NODE1/2014-05-19 and NODE2/2014-05-19


Now suppose, we are uploading new data under CONSOLIDATE/NODE1 and CONSOLIDATE/NODE2 like this:



Now if we open again AUTOMATIC_MODE and if we press again "Apply aggregator", we will have:


A new node has been created under AUTOMATIC_NODE.


In fact to synchronize AUTOMATIC_NODE with both NODE1 and NODE2, we have only to push the "apply aggregator" button in AUTOMATIC_NODE.


With this mecanism, data can be uploaded over the water and consolidated data is immediately available.