{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-guacamole/refs/heads/main/json-schema/guacamole-rest-connection-history-entry-schema.json",
  "title": "ConnectionHistoryEntry",
  "description": "Historical record of a completed or active connection",
  "type": "object",
  "properties": {
    "identifier": {
      "type": "string",
      "description": "History entry identifier",
      "example": "hist-500123"
    },
    "connectionIdentifier": {
      "type": "string",
      "description": "Associated connection ID",
      "example": "1"
    },
    "connectionName": {
      "type": "string",
      "description": "Name of the connection",
      "example": "My RDP Server"
    },
    "username": {
      "type": "string",
      "description": "Username who made the connection",
      "example": "jsmith"
    },
    "startDate": {
      "type": "integer",
      "format": "int64",
      "description": "Connection start time in milliseconds",
      "example": "1718153645993"
    },
    "endDate": {
      "type": "integer",
      "format": "int64",
      "description": "Connection end time in milliseconds (null if still active)",
      "example": "1718157245993"
    }
  }
}