{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Device",
  "title": "Device",
  "type": "object",
  "description": "A managed device in OpenManage Enterprise",
  "properties": {
    "Id": {
      "type": "integer",
      "description": "Unique device identifier"
    },
    "Type": {
      "type": "integer",
      "description": "Device type code. Common values are 1000 for servers, 2000 for chassis, 3000 for storage, and 4000 for network devices."
    },
    "Identifier": {
      "type": "string",
      "description": "Device service tag or serial number"
    },
    "DeviceServiceTag": {
      "type": "string",
      "description": "Dell service tag for the device"
    },
    "ChassisServiceTag": {
      "type": "string",
      "description": "Service tag of the chassis containing this device"
    },
    "Model": {
      "type": "string",
      "description": "Device model name"
    },
    "DeviceName": {
      "type": "string",
      "description": "User-assigned or auto-discovered device name"
    },
    "IpAddress": {
      "type": "string",
      "description": "Management IP address of the device"
    },
    "ManagedState": {
      "type": "integer",
      "description": "Device management state. 3000 indicates managed, 5000 indicates monitored."
    },
    "Status": {
      "type": "integer",
      "description": "Device health status code. 1000 is normal, 2000 is unknown, 3000 is warning, 4000 is critical, 5000 is informational."
    },
    "ConnectionState": {
      "type": "boolean",
      "description": "Whether the device is currently reachable"
    },
    "PowerState": {
      "type": "integer",
      "description": "Power state code. 17 is powered on, 18 is powered off, 20 is power cycling."
    },
    "FirmwareVersion": {
      "type": "string",
      "description": "Primary firmware version"
    },
    "LastInventoryTime": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the last inventory collection"
    },
    "LastStatusTime": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp of the last status check"
    }
  }
}