summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-07-10Handle query result and prepare to forward by APIRomain Forlot3-30/+97
First draft to be able to read at regular interval the TSDB InfluxDB. This prepare a JSON object formated to be handled as an input argument from a regular call to the API verb 'write' Then it is only needed to call the remote verb to forward all the results Change-Id: I80076dd9cf00ba43075d37dd4d15180e63e37289 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fully handle array of metrics to be writen in DBRomain Forlot3-44/+49
Move a function code. Change-Id: I35a90e08e7019e634676915858aa0a666d46f711 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Improve writer/reader processingRomain Forlot11-144/+261
- Handle indefinite number and kind of tags and fields for a metric - Include only once header files - Cleaning and ordering code Change-Id: I14a4f0e6e1626971bff73ce7d9ac067bda69cfc4 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Utility function to return nanosecond timestampRomain Forlot2-0/+11
Change-Id: I73261cae3ed9b4d449e2b83b0578ddd2c5df89f1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: function name collision.Romain Forlot2-3/+3
Change-Id: Ia4498401e34602b614b137bd22a420bca779c044 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add simple chained management libRomain Forlot3-0/+135
Change-Id: I9aa2e5c4da375a124a6be43d5738414b80e0567e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Splitting code source, cleaning.Romain Forlot8-124/+328
Change-Id: I97c2a409d05ceb9babb23c23fbf818316d01419b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Introduce thread management for future reading jobRomain Forlot5-28/+44
Change-Id: I1d47aef85c4a90d10d7cd5f85c357e9e35664836 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10TSDB handling isolation.Romain Forlot5-165/+270
Isolate API from DB Backend so you could rely on different TSDB backend Change-Id: Ie74347e8175c7e0ed508f6b1e61a1c504b2a2ebb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: alloc pb for post_dataRomain Forlot1-8/+5
Change-Id: Ic6fdeb8d3a3e2ca4aa33775fb6566df19407e1df Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add project skeletonRomain Forlot4-0/+510
Change-Id: Ieae59a0c66c9a9f7500f56e33cc0a98d572c0621 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>