mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Flows + settings metadata work
This commit is contained in:
61
pialert/flows/unmark_new.json
Normal file
61
pialert/flows/unmark_new.json
Normal file
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"name":"unmark_new",
|
||||
"triggers": [
|
||||
{
|
||||
"type": "new",
|
||||
"object":
|
||||
{
|
||||
"type": "db.row",
|
||||
"target": "Devices"
|
||||
}
|
||||
}
|
||||
],
|
||||
"steps": [
|
||||
{
|
||||
"step_type":"wait",
|
||||
"params": [
|
||||
{
|
||||
"days": 3,
|
||||
"hours": 0,
|
||||
"minutes": 0,
|
||||
"seconds": 0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_type":"condition",
|
||||
"params": [
|
||||
{
|
||||
"left": {
|
||||
"value": "triggers[0].object['dev_NewDevice']",
|
||||
"use_quotes": true,
|
||||
"js_template": "'{value}'.toString()"
|
||||
},
|
||||
"operator": {
|
||||
"value" : "==",
|
||||
"data_type": "boolean"
|
||||
},
|
||||
"right": {
|
||||
"value": true,
|
||||
"use_quotes": false,
|
||||
"js_template": "'{value}'.toString()"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"step_type":"action",
|
||||
"params": [
|
||||
{
|
||||
"type": "plugin",
|
||||
"params":
|
||||
{
|
||||
"name": "UNMRK_NEW",
|
||||
"CMD": "db.row"
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user