-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.json
More file actions
76 lines (76 loc) · 2.4 KB
/
example.json
File metadata and controls
76 lines (76 loc) · 2.4 KB
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
76
[
{
"setting": "device_list",
"value":
[
{
"id": "1",
"type": "aliyun",
"url": "https://iot.cn-shanghai.aliyuncs.com/?Action=QueryDevicePropertyStatus&ProductKey=abc123456&DeviceName=gps1&Format=JSON&Version=2018-01-20&AccessKeyId=YourAccessKeyID&SignatureMethod=HMAC-SHA1&SignatureVersion=1.0&RegionId=cn-shanghai",
"alert_yellow": 0.1,
"alert_orange": 0.2,
"alert_red": 0.3
}
]
},
{
"setting": "request_cycle",
"access-key-secret": "Your_Access_Key_Secret",
"huawei_iam_username": "iam_user",
"huawei_iam_password": "iam_pass",
"huawei_iam_domain": "domain",
"huawei_iam_area": "cn-east-3",
"value":
[
{
"编号": "1-1",
"经度偏移/m": "{1:经度偏移量}",
"纬度偏移/m": "{1:纬度偏移量}",
"海拔偏移/m": "{1:海拔偏移量}",
"X偏移/°": "{1:桥面x1倾斜情况}",
"Y偏移/°": "{1:桥面y1倾斜情况}",
"Z偏移/°": "{1:桥面z1倾斜情况}",
"最后更新时间": "{1:time}"
},
{
"编号": "1-2",
"经度偏移/m": "{1:经度偏移量}",
"纬度偏移/m": "{1:纬度偏移量}",
"海拔偏移/m": "{1:海拔偏移量}",
"X偏移/°": "{1:桥面x2倾斜情况}",
"Y偏移/°": "{1:桥面y2倾斜情况}",
"Z偏移/°": "{1:桥面z2倾斜情况}",
"最后更新时间": "{1:time}"
}
]
},
{
"setting": "api",
"port": "5200",
"access-key-secret": "Your_Access_Key_Secret",
"huawei_iam_username": "iam_user",
"huawei_iam_password": "iam_pass",
"huawei_iam_domain": "domain",
"huawei_iam_area": "cn-east-3"
},
{
"setting": "mail",
"host": "smtp.gmail.com",
"port": 25,
"sender": "your_mail@gmail.com",
"password": "Your_Password",
"alert_level": 1,
"format":
{
"subject": "{alert.bridge_name} - {alert.test_point}形变已达到{alert.level}等级",
"content": "管理员您好,检测到有桥梁形变程度已经达到{alert.level}等级,已严重影响通行安全,请及时查看监测系统做出决策!\n{alert.bridge_name} - {alert.test_point}形变已达到{alert.level}({alert.data})\n\n此邮件为系统自动发送,请勿回复。"
},
"receivers":
[
{
"name": "管理员",
"email": "admin_mail@gmail.com"
}
]
}
]