Manuel Imperiale
b18c9e79dc
NOISSUE - Add timestamp transformation rules for specifc JSON fields ( #1514 )
...
* NOISSUE - Add timestamp transformation rules for specifc JSON fields
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Add tests and defaults
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Created
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix READMEs
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix Config file
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Improve the timestamp Config structure
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix typos
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix smpp
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix reviews
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm duplicated Unmarshal
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Extract the error var
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Fix review
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Return error if time field transformation fails
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2021-12-14 11:17:23 +01:00
Burak Sekili
5ac1203b55
MF-1421 - Make flattening of JSON transformer only available on InfluxDB ( #1432 )
...
* MF-1421 - Add a flag for making flattening JSON transformer optional
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add test cases for JSON transformer without flattening
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Add a comment for Transform
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Separate TestTransformJSON into two tests
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Replace flatten flag
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
* Remove unnecessary flattening while reading a message
Signed-off-by: Burak Sekili <buraksekili@gmail.com>
2021-07-22 11:20:47 +02:00
Dušan Borovčanin
0a89f1dae1
Fix JSON Transformer empty format handling ( #1429 )
...
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2021-06-22 12:32:16 +02:00
Dušan Borovčanin
e326494166
MF-1264 - Add support for JSON readers ( #1295 )
...
* MF-1254 - Create universal JSON writer (#1260 )
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add JSON support to Readers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influx Reader tests
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix messages format query
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Postgres reader
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Cassandra Readers and writers
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Mongo reader
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Extract utility method to the JSON transformer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influx and Postgres count
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update JSON transformer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix Influxdb Reader total count
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Refactor init.go for Cassandra writer
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Create a Payload type
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add comments for defaults
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix variable declarations
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Replace interface{} with a new type
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Don't set channel just to overwrite it later
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix range search
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Rename Messages field
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
Co-authored-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-12-30 15:43:04 +01:00