Skip to content

Instantly share code, notes, and snippets.

@kell18
Created August 18, 2018 14:54
Show Gist options
  • Save kell18/1dc82c94d0ad142c8363a2cd85d9fbd2 to your computer and use it in GitHub Desktop.
Save kell18/1dc82c94d0ad142c8363a2cd85d9fbd2 to your computer and use it in GitHub Desktop.
{
"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