mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
51 lines
1.0 KiB
JSON
Executable File
51 lines
1.0 KiB
JSON
Executable File
[
|
|
{
|
|
"name": "Sample Device Update Workflow",
|
|
"trigger": {
|
|
"object_type": "Devices",
|
|
"event_type": "update"
|
|
},
|
|
"conditions": [
|
|
{
|
|
"logic": "AND",
|
|
"conditions": [
|
|
{
|
|
"field": "devVendor",
|
|
"operator": "contains",
|
|
"value": "Google"
|
|
},
|
|
{
|
|
"field": "devIsNew",
|
|
"operator": "equals",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"logic": "OR",
|
|
"conditions": [
|
|
{
|
|
"field": "devIsNew",
|
|
"operator": "equals",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"field": "devName",
|
|
"operator": "contains",
|
|
"value": "Google"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "update_field",
|
|
"field": "devIsNew",
|
|
"value": "0"
|
|
},
|
|
{
|
|
"type": "delete_device"
|
|
}
|
|
]
|
|
}
|
|
] |