{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/firecracker/json-schema/firecracker-balloon-schema.json",
  "title": "Balloon",
  "description": "Balloon device descriptor.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/firecracker-balloon-api-openapi.yml#/components/schemas/Balloon",
  "type": "object",
  "required": [
    "amount_mib",
    "deflate_on_oom"
  ],
  "properties": {
    "amount_mib": {
      "type": "integer",
      "description": "Target balloon size in MiB."
    },
    "deflate_on_oom": {
      "type": "boolean",
      "description": "Whether the balloon should deflate when the guest has memory pressure."
    },
    "stats_polling_interval_s": {
      "type": "integer",
      "description": "Interval in seconds between refreshing statistics. A non-zero value will enable the statistics. Defaults to 0."
    },
    "free_page_hinting": {
      "type": "boolean",
      "description": "Whether the free page hinting feature is enabled."
    },
    "free_page_reporting": {
      "type": "boolean",
      "description": "Whether the free page reporting feature is enabled."
    }
  }
}