~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0
86 lines · 2.3 KB Raw History
{
  "lexicon": 1,
  "id": "com.fedfork.exec.ops.getHealth",
  "defs": {
    "main": {
      "type": "query",
      "description": "A bidder answers its core's health since its process started: its unit, start time, ERROR line counts (all, and in its first 10 minutes), automatic restarts, VM processes, the last three ERROR lines and its guest image readiness. Read only (GET). Served only when the host has an ops read secret configured (else 404); requires it as Authorization: Bearer.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": [
            "unit",
            "started",
            "errors",
            "startupErrors",
            "restarts",
            "vmProcesses",
            "errorSample",
            "guestImageReadyAt",
            "guestImageUnready"
          ],
          "properties": {
            "unit": {
              "type": "string"
            },
            "started": {
              "type": "string",
              "format": "datetime"
            },
            "errors": {
              "type": "integer"
            },
            "startupErrors": {
              "type": "integer"
            },
            "restarts": {
              "type": "integer"
            },
            "vmProcesses": {
              "type": "integer"
            },
            "errorSample": {
              "type": "array",
              "maxLength": 3,
              "items": {
                "type": "ref",
                "ref": "#errorLine"
              }
            },
            "guestImageReadyAt": {
              "type": "string"
            },
            "guestImageUnready": {
              "type": "integer"
            }
          }
        }
      },
      "errors": [
        { "name": "AuthenticationRequired", "description": "401: the ops read secret is missing or wrong." },
        { "name": "ReadFailed", "description": "502: the read failed; the host's log has the detail." }
      ]
    },
    "errorLine": {
      "type": "object",
      "required": [
        "time",
        "msg",
        "err"
      ],
      "properties": {
        "time": {
          "type": "string"
        },
        "msg": {
          "type": "string"
        },
        "err": {
          "type": "string",
          "maxLength": 160
        }
      }
    }
  }
}