mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
55 lines
1.1 KiB
JSON
Executable File
55 lines
1.1 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": "run_plugin",
|
|
"plugin": "SMTP",
|
|
"params": {
|
|
"message": "New device from Google detected."
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |