Created
August 18, 2018 14:54
-
-
Save kell18/1dc82c94d0ad142c8363a2cd85d9fbd2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"uuid": "test", | |
"source": {same}, | |
"sink": { | |
"jdbcUrl": "jdbc:postgresql://192.168.1.249:5433/mwm?stringtype=unspecified", | |
"tableName": "sm_events_sink_test", | |
"rowSchema": { | |
"fromTime": ["fromTs", "first(toTs(datetime))"], | |
"toTime": ["toTs", "last(toTs(datetime))"], | |
"payload": { | |
"sourceId": "21", | |
"appIdField": "1.as[Int]", | |
"context": { | |
"loco_id": "last(loco_id)" | |
} | |
} | |
}, | |
"driverName": "org.postgresql.Driver", | |
"userName": "clover", | |
"password": "clover", | |
"batchInterval": 500 | |
}, | |
"patterns": [ | |
{ | |
"id": "4991", | |
"sourceCode": "PosKM = 0 andThen SpeedEngine > 0 and (PosKM > 4 for 11 min < 60 sec)", | |
"payload": { | |
"entity_id": "4991", | |
"context": { | |
"avgSpeedEngine": "avg(SpeedEngine)" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment