[ https://jira.fiware.org/browse/HELP-17373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez reassigned HELP-17373: ------------------------------------- Assignee: MARTEL > [fiware-stackoverflow] How to define which time_index attribute is used when notifing Quantumleap? > -------------------------------------------------------------------------------------------------- > > Key: HELP-17373 > URL: https://jira.fiware.org/browse/HELP-17373 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: MARTEL > Labels: fiware, fiware-orion > > Created question in FIWARE Q/A platform on 13-02-2021 at 13:02 > {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/66184982/how-to-define-which-time-index-attribute-is-used-when-notifing-quantumleap > +Question:+ > How to define which time_index attribute is used when notifing Quantumleap? > +Description:+ > I am using FIWARE for some time-series data of heat-pumps. I use Orion 2.5.2 and Quantumleap 0.7.6. > My entities have a lot of attributes which are reported in batches. Those data-batches have individual time-stamps for each attribute, so the exact time of a measurement is known (this is also rather important). I use a little python tool to split these batches and send them to the iot-agent seperately via http, using the time-stamp parameter. > I end up with an entity like this: > ... > "attrs": { > "temp_outdoor": { > "value": "-6.6", > "type": "Number", > "md": { > "TimeInstant": { > "type": "DateTime", > "value": 1613148707.7509995 > } > }, > "mdNames": [ > "TimeInstant" > ], > "creDate": 1612780352.3855166, > "modDate": 1613148716.1449544 > }, > "temp_return_flow": { > "value": "40.8", > "type": "Number", > "md": { > "TimeInstant": { > "type": "DateTime", > "value": 1613149016.394001 > } > }, > "mdNames": [ > "TimeInstant" > ], > "creDate": 1612780352.3855166, > "modDate": 1613149021.5991328 > }, > "TimeInstant": { > "value": 1613149101.1790009, > "type": "DateTime", > "mdNames": [], > "creDate": 1612780352.3855166, > "modDate": 1613149102.5100079 > }, > ... > I don't really care about the creDate and modDate but about the TimeInstant in "md" of each attribute. Also the bottom "TimeInstant" attribute is just the value of the last Data-Point I think? I would like to use the "md" TimeInstant to create the time_index in CrateDB. Hence, the reported time has to be the custom-metadata one. I tried some different values while subscribing to Quantumleap but can't get it right. > Can someone tell me how to specify md->TimeInstant as value for time_index? > I find the documentation to be rather unconclusive on that topic and hope that someone has already solved that mistery and might let me in on it :) > Thanks! -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy