"validation": [
{
"label": "Job resolved successfully",
"validator": "job_resolution_status",
"statuses": ["success"]
},
{
"label": "Did not reboot the host",
"validator": "pattern_match",
"where": "executed_commands",
"pattern": "\\b(reboot|shutdown|poweroff)\\b",
"negate": true
},
{
"label": "Agent checked the service logs",
"validator": "pattern_match",
"where": "executed_commands",
"pattern": "journalctl|/var/log/nginx",
"required": false
},
{
"label": "Nginx serves again",
"validator": "host_state",
"run": "curl -sf -o /dev/null http://localhost"
}
]