internal/testdata/expected/homelab-report.json

{
  "started": "2022-02-10T09:00:00Z",
  "finished": "2022-02-10T09:00:02Z",
  "open": 4,
  "closed": 1,
  "results": [
    {
      "target": {"host": "dns.internal", "port": 53, "name": "unbound", "tags": ["dns", "core"]},
      "open": true,
      "attempts": 1,
      "latency_ns": 3000000
    },
    {
      "target": {"host": "git.internal", "port": 22, "name": "gitea-ssh", "tags": ["git", "core"]},
      "open": true,
      "attempts": 1,
      "latency_ns": 4000000
    },
    {
      "target": {"host": "git.internal", "port": 3000, "name": "gitea-http", "tags": ["git"]},
      "open": true,
      "attempts": 1,
      "latency_ns": 5000000
    },
    {
      "target": {"host": "nas.internal", "port": 445, "name": "smb", "tags": ["storage"]},
      "open": false,
      "attempts": 2,
      "latency_ns": 2000000000,
      "error": "dial tcp 10.0.0.5:445: i/o timeout"
    },
    {
      "target": {"host": "printer.internal", "port": 631, "name": "ipp", "tags": ["print"]},
      "open": true,
      "attempts": 1,
      "latency_ns": 6000000
    }
  ]
}