fiware-cygnus icon indicating copy to clipboard operation
fiware-cygnus copied to clipboard

Can Cygnus-LD support sending aggregate data (max, min, sum, per hour, per day, etc) to PostgreSQL?

Open Emiltzav opened this issue 4 years ago • 2 comments

Hello everyone! I'm using Cygnus-LD (Cygnus supporting NGSI-LD) to transfer NGSI-LD data from Orion-LD to PostgreSQL, but they are raw data (not aggregate). I would like to ask If there is a way to make Cygnus-LD send aggregate data (max, min, sum, per hour, per day, etc) to PostgreSQL like Cygnus does with the NGSI-STH Sink (it sends aggregate data to MongoDB from where STH Comet can retrieve them in the form of aggregate data, i.e. statistics such as average, sum, etc). I can't find a parameter (so far) in NGSILDPostgreSQLSink to make this happen.

Emiltzav avatar Oct 25 '20 18:10 Emiltzav

Maybe @anmunoz (author of the NGSI-LD support in Cygnus) could provide some feedback on this.

fgalan avatar Oct 30 '20 13:10 fgalan

Hi,

At this moment the aggregation is not implemented yet. Maybe in a future release, we can include this feature.

anmunoz avatar Nov 19 '20 17:11 anmunoz