Files
NetAlertX/test/workflows.json
jokob-sk 7d6855053e wf work
2025-03-14 07:58:29 +11:00

87 lines
1.6 KiB
JSON
Executable File

[
{
"name": "Empty Workflow",
"trigger": {
"object_type": "",
"event_type": ""
},
"conditions": [
],
"actions": [
]
},
{
"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": "devSite",
"operator": "equals",
"value": "Home"
},
{
"field": "devName",
"operator": "contains",
"value": "Motorola"
}
]
}
]
}
],
"actions": [
{
"type": "update_field",
"field": "devIsNew",
"value": "0"
}
]
},
{
"name": "Sample Plugin Object Workflow",
"trigger": {
"object_type": "Plugins_Objects",
"event_type": "create"
},
"conditions": [
{
"logic": "AND",
"conditions": [
{
"field": "Plugin",
"operator": "equals",
"value": "ARPSCAN"
},
{
"field": "Status",
"operator": "equals",
"value": "missing-in-last-scan"
}
]
}
],
"actions": [
]
}
]