{
 "id": "gffailalert00001",
 "name": "Failure alert",
 "nodes": [
  {
   "name": "Any workflow failed",
   "type": "n8n-nodes-base.errorTrigger",
   "typeVersion": 1,
   "position": [
    0,
    300
   ],
   "parameters": {}
  },
  {
   "name": "Report to monitor",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    220,
    300
   ],
   "retryOnFail": true,
   "maxTries": 3,
   "waitBetweenTries": 1000,
   "parameters": {
    "method": "POST",
    "url": "http://127.0.0.1:8771/monitor/alerts",
    "sendBody": true,
    "specifyBody": "json",
    "jsonBody": "={{ JSON.stringify({workflow:$json.workflow.name, execution:$json.execution.id, node:$json.execution.lastNodeExecuted, error:$json.execution.error.message}) }}",
    "options": {}
   }
  }
 ],
 "connections": {
  "Any workflow failed": {
   "main": [
    [
     {
      "node": "Report to monitor",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "executionOrder": "v1",
  "saveDataSuccessExecution": "all",
  "saveDataErrorExecution": "all",
  "saveManualExecutions": true
 },
 "active": false,
 "pinData": {}
}
