{
  "name": "Hostinger daily VPS snapshot and server metrics",
  "nodes": [
    {
      "id": "66922063-7f2a-46a3-9618-abae57e1ee8c",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -100,
        500
      ]
    },
    {
      "id": "da6b9112-0bb3-4ac3-94ee-e067545568dc",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        500,
        360
      ]
    },
    {
      "id": "827df7d7-19ba-40b8-9e74-9c0c09b7bf88",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -480
      ],
      "parameters": {
        "width": 609,
        "height": 496,
        "content": "## Hostinger Snapshot with VPS Metrics\nAutomate the creation of snapshots of all your Hostinger VPS, receive success or failure alerts via WhatsApp, use in n8n self-hosting.\n\n### Prerequisites (Commun"
      }
    },
    {
      "id": "308532f7-edb5-48cf-bc52-e4af021c31b5",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1280,
        360
      ]
    },
    {
      "id": "ab42fce7-ca08-41f8-be53-f1ae3ca085e9",
      "name": "Wait 2 seg",
      "type": "n8n-nodes-base.wait",
      "position": [
        2340,
        360
      ]
    },
    {
      "id": "fc54f299-b001-4171-9433-6cf4c5d36814",
      "name": "Every day 4:00am",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -100,
        260
      ]
    },
    {
      "id": "6dbcc6a5-07a2-42d4-a41d-e5a81c2247a2",
      "name": "Hostinger API list VPS",
      "type": "n8n-nodes-hostinger-api.hostingerApi",
      "position": [
        300,
        360
      ]
    },
    {
      "id": "6cf2b19c-079b-44e1-8491-42aaa0c207b0",
      "name": "Avaliables VPS",
      "type": "n8n-nodes-base.filter",
      "position": [
        660,
        360
      ]
    },
    {
      "id": "242a2705-1d27-450c-a935-082b5388ee1b",
      "name": "Get VPS Metrics",
      "type": "n8n-nodes-hostinger-api.hostingerApi",
      "position": [
        860,
        360
      ]
    },
    {
      "id": "fb71f5bc-41ba-4293-8967-53f5380752d2",
      "name": "WhatsApp Message (success)",
      "type": "n8n-nodes-evolution-api.evolutionApi",
      "position": [
        1560,
        220
      ]
    },
    {
      "id": "c9891a04-3b3b-48c6-b476-bf343940b8eb",
      "name": "Create Snapshot",
      "type": "n8n-nodes-hostinger-api.hostingerApi",
      "position": [
        1880,
        380
      ]
    },
    {
      "id": "dfd2073c-c2c2-4b1c-b5a0-36f35eb5d269",
      "name": "Next VPS",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2160,
        360
      ]
    },
    {
      "id": "c9cde1f1-38b0-4c9a-b018-9a0e794a908a",
      "name": "WhatsApp Message (error)",
      "type": "n8n-nodes-evolution-api.evolutionApi",
      "position": [
        1560,
        600
      ]
    },
    {
      "id": "ad294b56-763b-4c6e-9561-05f4dac14939",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -320
      ],
      "parameters": {
        "width": 340,
        "height": 340,
        "content": "### VPS Metrics avaliables (send in messages):\n\n\n🔹Status: snapshot status\n🔹Date: snapshot date time\n🔹Server: server name\n🔹IP: external server IP\n\n⚙️ Métrics: \n🔹 Number of vCPUs \n🔹 Ram usage / avaliabl"
      }
    },
    {
      "id": "37e8ea8c-731b-49a6-a82f-14c352134fbb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        100
      ],
      "parameters": {
        "width": 220,
        "height": 680,
        "content": "### Set Hostinger API credential"
      }
    },
    {
      "id": "1942c744-48b7-4774-8250-9bc4ff6d87c7",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        100
      ],
      "parameters": {
        "width": 220,
        "height": 680,
        "content": "### Set Hostinger API credential"
      }
    },
    {
      "id": "a08c8234-15bc-4d75-b9a5-20b513a13d59",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1820,
        100
      ],
      "parameters": {
        "width": 220,
        "height": 680,
        "content": "### Set Hostinger API credential"
      }
    },
    {
      "id": "2e8eece6-3f7e-4355-a52f-7ccdc088125b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        100
      ],
      "parameters": {
        "width": 320,
        "height": 680,
        "content": "### Set destination alert message (use message model inside)"
      }
    },
    {
      "id": "9a1ccbac-1c25-403d-a67c-826ad8491387",
      "name": "Calculate metrics",
      "type": "n8n-nodes-base.set",
      "position": [
        1080,
        360
      ]
    },
    {
      "id": "b7e68847-f530-4df7-b7d1-1b557b1718c1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        80
      ],
      "parameters": {
        "width": 2840,
        "height": 720,
        "content": ""
      }
    }
  ],
  "connections": {
    "Next VPS": {
      "main": [
        [
          {
            "node": "Wait 2 seg",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Avaliables VPS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 2 seg": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Avaliables VPS": {
      "main": [
        [
          {
            "node": "Get VPS Metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Snapshot": {
      "main": [
        [
          {
            "node": "Next VPS",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "WhatsApp Message (error)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get VPS Metrics": {
      "main": [
        [
          {
            "node": "Calculate metrics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "WhatsApp Message (success)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Snapshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every day 4:00am": {
      "main": [
        [
          {
            "node": "Hostinger API list VPS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate metrics": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hostinger API list VPS": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Message (success)": {
      "main": [
        []
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Hostinger API list VPS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}