{
  "name": "Manual proxy health check \u2014 configure secrets before running",
  "active": false,
  "nodes": [
    {
      "parameters": {},
      "id": "manual-trigger",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "={{ $env.MP_HEALTH_URL }}",
        "options": {
          "proxy": "={{ $env.MP_PROXY_URL }}",
          "timeout": 15000,
          "response": {
            "response": {
              "fullResponse": true,
              "neverError": true,
              "responseFormat": "text"
            }
          }
        }
      },
      "id": "http-check",
      "name": "Check through proxy",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        260,
        0
      ],
      "continueOnFail": true
    },
    {
      "parameters": {
        "jsCode": "return $input.all().map(item => {\n  const status = Number(item.json.statusCode || 0);\n  const healthy = !item.json.error && status >= 200 && status < 400;\n  return { json: { checkedAt: new Date().toISOString(), healthy, statusCode: status || null, category: healthy ? \"http_success\" : status ? \"destination_response\" : \"connection_or_configuration_error\" } };\n});"
      },
      "id": "classify-check",
      "name": "Classify without secrets",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        520,
        0
      ]
    }
  ],
  "connections": {
    "Run manually": {
      "main": [
        [
          {
            "node": "Check through proxy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check through proxy": {
      "main": [
        [
          {
            "node": "Classify without secrets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "saveDataSuccessExecution": "none",
    "saveDataErrorExecution": "none"
  },
  "pinData": {},
  "tags": []
}
