-
Notifications
You must be signed in to change notification settings - Fork 0
/
river.toml
75 lines (67 loc) · 2 KB
/
river.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# MySQL address, user and password
# user must have replication privilege in MySQL.
my_addr = "192.168.1.240:3306"
my_user = "root"
my_pass = "NS@2017"
my_charset = "utf8"
server_id = 1001
data_dir = "F:/data"
mysqldump="mysqldump"
# Set true when apatoton use https
# https = false
# apatodon address
addr = "192.168.1.199:8072"
# apatodon user and password
user = "admin"
pass = "12345678"
url="api/v4/login"
sourceType=21301
[[source]]
schema = "apatodon_xgyjy_mj"
tables = ["vehicle","vehicle_traffic_area"]
[[rule]]
schema = "apatodon_xgyjy_mj"
table = "vehicle"
index = "api/v5/sync"
type = "vehicles"
[rule.field]
# Map column `person_id` to apatodon field `personId"`
person_id="personId"
# Map column `person_name` to apatodon field `personName`
person_name="personName"
# Map column `team_id` to apatodon field `teamId`
team_id="teamId"
# Map column `team_name` to apatodon field `teamName`
team_name="teamName"
# Map column `car_type` to apatodon field `carType`
car_type="carType"
# Map column `charge_type` to apatodon field `chargeType`
charge_type="chargeType"
# Map column `plate_color` to apatodon field `plateColor`
plate_color="plateColor"
# Map column `effectived` to apatodon field `effectived`
effectived="effectived"
# Map column `expired` to apatodon field `expired`
expired="expired"
# Map column `buket_id` to apatodon field `buket_id`
buket_id="buketId"
# Map column `sync_flag` to apatodon field `syncFlag`
sync_flag="syncFlag"
# Map column `cluster_id` to apatodon field `clusterId`
cluster_id="clusterId"
[[rule]]
schema = "apatodon_xgyjy_mj"
table = "vehicle_traffic_area"
index = "api/v5/sync"
type = "trafficareas"
[rule.field]
# Map column `vehicle_id` to apatodon field `vehicleId"`
vehicle_id="vehicleId"
# Map column `area_id` to apatodon field `areaId`
area_id="areaId"
# Map column `area_name` to apatodon field `areaName`
area_name="areaName"
# Map column `cluster_id` to apatodon field `clusterId`
cluster_id="clusterId"
# Map column `sync_flag` to apatodon field `syncFlag`
sync_flag="syncFlag"