fly-io · Schema

MachineCheck

A health check definition for a Fly Machine.

Properties

Name Type Description
type string Check protocol type.
port integer Port to run the health check against.
interval string How often to run the check (e.g., 10s, 1m).
timeout string Maximum time to wait for the check to respond.
grace_period string Time to wait after Machine start before running checks.
path string HTTP path for http-type checks.
method string HTTP method for http-type checks. Defaults to GET.
View JSON Schema on GitHub

JSON Schema

fly-io-machinecheck-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/MachineCheck",
  "title": "MachineCheck",
  "type": "object",
  "description": "A health check definition for a Fly Machine.",
  "properties": {
    "type": {
      "type": "string",
      "description": "Check protocol type.",
      "enum": [
        "tcp",
        "http"
      ]
    },
    "port": {
      "type": "integer",
      "description": "Port to run the health check against."
    },
    "interval": {
      "type": "string",
      "description": "How often to run the check (e.g., 10s, 1m)."
    },
    "timeout": {
      "type": "string",
      "description": "Maximum time to wait for the check to respond."
    },
    "grace_period": {
      "type": "string",
      "description": "Time to wait after Machine start before running checks."
    },
    "path": {
      "type": "string",
      "description": "HTTP path for http-type checks."
    },
    "method": {
      "type": "string",
      "description": "HTTP method for http-type checks. Defaults to GET."
    }
  }
}