net.atchan.status.getHealth

Diagnostics for every subsystem. Answers 200 whatever the overall status; a subsystem being down is reported in the body, not as a failed request.

Repository @atchan.net did:plc:vshgahazzq7qwvp2xc6ai27o namespace authority
Details · query
Kindquery
Authoritystatus.atchan.net
Commit rev3n2pc6wtnr22k
Indexed
cid bafyreig3tcrdhi24vae4kmrppzyumrs66p4au5prylk6jdlnkvifvjekwm

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.subsystemReport.properties.labelNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.subsystemReport.properties.statusNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Diagnostics for every subsystem. Answers 200 whatever the overall status; a subsystem being down is reported in the body, not as a failed request.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "status": {
              "description": "The worst status across every subsystem.",
              "enum": [
                "ok",
                "degraded",
                "down",
                "disabled"
              ],
              "type": "string"
            },
            "subsystems": {
              "description": "Map of subsystem name to its report.",
              "type": "unknown"
            },
            "uptime": {
              "description": "Seconds since the process started.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "status"
          ],
          "type": "object"
        }
      },
      "type": "query"
    },
    "subsystemReport": {
      "description": "The fields every subsystem's report shares. Each subsystem may add its own detail alongside these.",
      "properties": {
        "label": {
          "description": "Human-readable name for the subsystem.",
          "type": "string"
        },
        "since": {
          "description": "Seconds the subsystem has held its current status.",
          "minimum": 0,
          "type": "integer"
        },
        "stale": {
          "description": "Set when a subsystem that reports on a timer missed its window; its status is then 'down'.",
          "type": "boolean"
        },
        "status": {
          "enum": [
            "ok",
            "degraded",
            "down",
            "disabled"
          ],
          "type": "string"
        }
      },
      "required": [
        "status",
        "since"
      ],
      "type": "object"
    }
  },
  "id": "net.atchan.status.getHealth",
  "lexicon": 1
}