aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-07-10Use latest version of submodules and update READMESebastien Douheret5-2/+2
Add "--name=afb-harvester" option to launch command that is now requested to be able to load right config.json file on a native host. Changes of afb-helpers: (f9f7e1e - Thierry Bultel) Fixed compilation warnings with gcc-7.2.0 (c0c40af - Sebastien Douheret) Fixed spelling Changes of conf.d/app-templates: (e400fb3 - Sebastien Douheret) Fixed spelling. Changes of app-controller-submodule: (4a72302 - Thierry Bultel) Fixed compilation warnings with gcc-7.2.0 (4b4a05d - Jonathan Aillet) Add an external field to CtlConfigT (a070489 - Romain Forlot) Make action item from a LUA action mandatory (dcc27f2 - Romain Forlot) Handle no prefix given (a68eba9 - Romain Forlot) Good usage of strncat and strncpy (2acfbf2 - Romain Forlot) Update to the new JSON syntax (d02408c - Romain Forlot) Detect failure at OnLoad action calls (fd225dd - Romain Forlot) Improve reliability and function calls (61c95f1 - Romain Forlot) Make action item from a LUA action mandatory (9e9fb2b - Romain Forlot) Handle no prefix given (eaa3ada - Romain Forlot) Good usage of strncat and strncpy (c973ff0 - Romain Forlot) Update to the new JSON syntax (3d971b4 - Romain Forlot) Detect failure at OnLoad action calls (3899ade - Romain Forlot) Improve reliability and function calls Change-Id: I04f58a0c4263de99d167266c6ca67cddfee3dca4 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Improved perf (define concatenate as inline function).Sebastien Douheret3-25/+31
Change-Id: If682e464346078b7254fbc10123e82787e089011 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Update READMESebastien Douheret3-11/+49
Change-Id: Iac523214e776b8f3e7bf7479a3774c46c84df398 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-07-10Added a quickstart READMERomain Forlot1-0/+67
Change-Id: I75097671a20e20817a95ec6b857f78c91f93d3b1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: not retrieve timestamp from argumentsRomain Forlot1-2/+4
Change-Id: I7aaaa4c544428899d7e383b3bbd2ae29312ca15b Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: missing NULL array terminatorRomain Forlot1-1/+1
Make to sure to allocate enough space to store a NULL pointer at the termination of the pointer array. Then it could be browsed correctly Change-Id: I6d13ba63715e688cd8fdc634ceabb9d3ec84eb87 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix logging messages.Romain Forlot1-1/+3
Change-Id: I9cc4e031947f5f8c161f8732fc049762b738d994 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update submodulesRomain Forlot3-0/+0
Change-Id: Ib86c621d717292be639233130940c8d19c1eda46 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update vscode settingsRomain Forlot3-2/+6
Change-Id: Ifc1d5bd7c2aedda4ebddb789cc96133167d2e8d3 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Convert the binding to use the controllerRomain Forlot20-223/+484
Ease Time series DB abstraction layer by using Dyn API that implemente the API defined by the JSON schema. Change-Id: I67de4fbca10048201fdd2da683732a5f4f5b5368 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update helpersRomain Forlot1-0/+0
Change-Id: I5e5ff813474a7dd1eb82d033b1164786bafa4cdb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix memory leak and avoid compile warningRomain Forlot7-17/+16
Change-Id: Ib0bcba9daad456f63c0ea704e1fa87f44b6acc98 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Update submoduleRomain Forlot1-0/+0
Change-Id: I1ed97e152b009191ace02fd4805258557b7f4820 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10WIP TBFRomain Forlot1-9/+14
Memory Issue Change-Id: Iedec08f6f070df369b761f38724b3e11a29df7dc Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix: filling the series lists.Romain Forlot1-6/+7
Change-Id: I9d114d61e785449d438e1455ac3e64c69aba30fe Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10vscodeRomain Forlot1-2/+1
Change-Id: I5b29a90c9233cae0bc96bb24bf10eaade87c44a2
2018-07-10Update submoduleRomain Forlot2-0/+0
Change-Id: I1ed97e152b009191ace02fd4805258557b7f4820 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Externalize Curl dependency within afb-helpersRomain Forlot2-2/+31
Change-Id: I50a4c6f440730a8776f7bb5c58c756c35bca5db8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Improve vscode workspace settingsRomain Forlot2-5/+2
2 debug mode: - One first run which clean any trace of timestamp record on disk - the other which keep timestamp file Cleaning Change-Id: I80f1d8e4ad574c14b3312da0e8691c49ed17e9fb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Externalize Curl dependency within afb-helpersRomain Forlot2-1/+3
Change-Id: I50a4c6f440730a8776f7bb5c58c756c35bca5db8 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Use news wrap curl functions.Romain Forlot2-2/+2
Change-Id: Idb05592f1deca3db9017c2717a5cc77d8880da2d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Fix wrong handling of metrics argumentsRomain Forlot1-7/+21
Always handle arguments as an array even if we receive a simple JSON object. This imply using an intermediary variable Change-Id: I0af8fdcd87e4d3f94d88d64ff7195f6c78002635 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Concatenation separator for curl wrap configurableRomain Forlot1-1/+1
Change-Id: I682744080325335c1228ca84486f07725636729a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
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 Forlot12-145/+265
- 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-10Improve vscode workspace settingsRomain Forlot4-2/+47
2 debug mode: - One first run which clean any trace of timestamp record on disk - the other which keep timestamp file Cleaning Change-Id: I80f1d8e4ad574c14b3312da0e8691c49ed17e9fb Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Splitting code source, cleaning.Romain Forlot10-126/+337
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-10Update submoduleRomain Forlot1-0/+0
Change-Id: Ie025fbbd127e67ce24dbcbcc574336fc4d586417 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 Forlot16-3/+982
Change-Id: Ieae59a0c66c9a9f7500f56e33cc0a98d572c0621 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Add project skeletonRomain Forlot3-0/+6
Change-Id: Ieae59a0c66c9a9f7500f56e33cc0a98d572c0621 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
2018-07-10Initial commitRomain Forlot1-0/+201
Change-Id: Idab10d63eb64f5bfc379969abfd2dcead1d81216 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>