{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snow-software/json-schema/snow-software-computer-logon-history-details-schema.json",
  "title": "ComputerLogonHistoryDetails",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snow-software-computer-logon-history-api-openapi.yml#/components/schemas/ComputerLogonHistoryDetails",
  "allOf": [
    {
      "$ref": "#/$defs/BaseResponse"
    },
    {
      "type": "object",
      "description": "Response representing computer logon history for a given computer and user.",
      "additionalProperties": false,
      "required": [
        "computerId",
        "userId"
      ],
      "properties": {
        "computerId": {
          "type": "string",
          "description": "The unique ID of the computer.",
          "format": "guid"
        },
        "userId": {
          "type": "string",
          "description": "The unique ID of the user.",
          "format": "guid"
        },
        "lastLogon": {
          "type": "string",
          "description": "The last logon of the given user on the given computer.",
          "format": "date-time"
        },
        "logonCount": {
          "type": "integer",
          "description": "The logon count for a user on the computer.",
          "format": "int32"
        }
      }
    }
  ],
  "$defs": {
    "BaseResponse": {
      "type": "object",
      "description": "Base response class.",
      "additionalProperties": false,
      "required": [
        "_links"
      ],
      "properties": {
        "_links": {
          "type": "array",
          "description": "A collection of links to related resources.",
          "items": {
            "$ref": "#/$defs/Link"
          }
        }
      }
    },
    "Link": {
      "type": "object",
      "required": [
        "href",
        "rel",
        "method"
      ],
      "properties": {
        "href": {
          "type": "string",
          "description": "The associated relative URL."
        },
        "rel": {
          "type": "string",
          "description": "Specifies the relationship between the current document and the linked document/resource."
        },
        "method": {
          "type": "string",
          "description": "The method to access related resources."
        }
      }
    }
  }
}