{
  "name": "Webhook Health Monitor",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 15
            }
          ]
        }
      },
      "id": "b1a1c8e0-1111-4a2b-9c3d-000000000001",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [240, 300]
    },
    {
      "parameters": {
        "url": "={{$env[\"WEBHOOK_HEALTHCHECK_URL\"]}}",
        "options": {
          "timeout": 10000
        }
      },
      "id": "b1a1c8e0-1111-4a2b-9c3d-000000000002",
      "name": "Ping Webhook",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [460, 300],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "b1a1c8e0-1111-4a2b-9c3d-000000000003",
              "leftValue": "={{$json[\"statusCode\"]}}",
              "rightValue": 200,
              "operator": {
                "type": "number",
                "operation": "notEquals"
              }
            }
          ],
          "combinator": "and"
        }
      },
      "id": "b1a1c8e0-1111-4a2b-9c3d-000000000004",
      "name": "Is Down?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "authentication": "webhook",
        "text": "=Webhook health check failed: {{$env[\"WEBHOOK_HEALTHCHECK_URL\"]}} returned {{$json[\"statusCode\"]}}",
        "options": {}
      },
      "id": "b1a1c8e0-1111-4a2b-9c3d-000000000005",
      "name": "Alert Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [900, 220]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Ping Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ping Webhook": {
      "main": [
        [
          {
            "node": "Is Down?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Down?": {
      "main": [
        [
          {
            "node": "Alert Slack",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": false
  },
  "id": "webhook-health-monitor",
  "tags": [
    {
      "name": "QA Suite"
    }
  ]
}
