{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/acronis/refs/heads/main/json-structure/agent-management-agent-structure.json",
  "description": "Acronis protection agent registered on an endpoint",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Agent unique identifier",
      "example": "agent-uuid-001"
    },
    "hostname": {
      "type": "string",
      "description": "Hostname of the protected machine",
      "example": "workstation-01"
    },
    "status": {
      "type": "string",
      "enum": [
        "online",
        "offline",
        "unknown"
      ],
      "description": "Current agent connection status",
      "example": "online"
    },
    "version": {
      "type": "string",
      "description": "Agent software version",
      "example": "21.12.30"
    },
    "tenant_id": {
      "type": "uuid",
      "description": "Tenant this agent belongs to"
    },
    "os": {
      "$ref": "#/components/schemas/AgentOS"
    },
    "last_seen": {
      "type": "datetime",
      "description": "Last time agent communicated with the platform"
    },
    "registration_time": {
      "type": "datetime"
    }
  },
  "name": "Agent"
}