[
{
"id": "001",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"Sos": {}
}
}
},
{
"id": "002",
"level": 2,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"Battery": {
"battery": 74
}
}
}
},
{
"id": "003",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceInside": {
"fences": [
1,
2
]
}
}
}
},
{
"id": "004",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceOutside": {
"fences": [
1,
2
]
}
}
}
},
{
"id": "005",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceOutside": {
"fences": [
1,
2
]
}
}
}
},
{
"id": "006",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceEnter": {
"fence": 1
}
}
}
},
{
"id": "007",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceExit": {
"fence": 1
}
}
}
},
{
"id": "008",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceStay": {
"fence": 1,
"duration": 60000
}
}
}
},
{
"id": "009",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceLeave": {
"fences": [
1,
2
],
"duration": 60000
}
}
}
},
{
"id": "011",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"FenceInside": {
"fence": 1,
"count": 5
}
}
}
}
},
{
"id": "012",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"FenceOutside": {
"fence": 1,
"count": 5
}
}
}
}
},
{
"id": "013",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"FenceCongestion": {
"count": 5,
"max_distance": 5,
"fences": [
0,
1
]
}
}
}
}
},
{
"id": "014",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"AreaCongestion": {
"count": 5,
"max_distance": 5,
"areas": [
0,
1
]
}
}
}
}
},
{
"id": "021",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Custom": {
"expr": "!(prev > curr || prev >= 100.0) && curr >= 100.0",
"index": 0
}
}
}
]curl --location --request PUT '/alarm/rules' \
--header 'Content-Type: application/json' \
--data '[
{
"id": "001",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"Sos": {}
}
}
},
{
"id": "002",
"level": 2,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"Battery": {
"battery": 74
}
}
}
},
{
"id": "003",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceInside": {
"fences": [
1,
2
]
}
}
}
},
{
"id": "004",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceOutside": {
"fences": [
1,
2
]
}
}
}
},
{
"id": "005",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceOutside": {
"fences": [
1,
2
]
}
}
}
},
{
"id": "006",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceEnter": {
"fence": 1
}
}
}
},
{
"id": "007",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceExit": {
"fence": 1
}
}
}
},
{
"id": "008",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceStay": {
"fence": 1,
"duration": 60000
}
}
}
},
{
"id": "009",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Individual": {
"FenceLeave": {
"fences": [
1,
2
],
"duration": 60000
}
}
}
},
{
"id": "011",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"FenceInside": {
"fence": 1,
"count": 5
}
}
}
}
},
{
"id": "012",
"level": 3,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"FenceOutside": {
"fence": 1,
"count": 5
}
}
}
}
},
{
"id": "013",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"FenceCongestion": {
"count": 5,
"max_distance": 5,
"fences": [
0,
1
]
}
}
}
}
},
{
"id": "014",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Collective": {
"check_interval_ms": 5000,
"data": {
"AreaCongestion": {
"count": 5,
"max_distance": 5,
"areas": [
0,
1
]
}
}
}
}
},
{
"id": "021",
"level": 4,
"time_window_ms": 15000,
"cron": null,
"data": {
"Custom": {
"expr": "!(prev > curr || prev >= 100.0) && curr >= 100.0",
"index": 0
}
}
}
]'