{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SessionCount",
  "title": "SessionCount",
  "type": "object",
  "description": "Represents a batch of sessions that started at the same time. Used for efficient batching of session data.",
  "required": [
    "startedAt",
    "sessionsStarted"
  ],
  "properties": {
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The ISO 8601 timestamp when the sessions started."
    },
    "sessionsStarted": {
      "type": "integer",
      "minimum": 1,
      "description": "The number of sessions that started at this time."
    },
    "user": {
      "type": "object",
      "description": "Information about the user associated with these sessions.",
      "properties": {
        "id": {
          "type": "string",
          "description": "A unique identifier for the user."
        },
        "name": {
          "type": "string",
          "description": "The user's display name."
        },
        "email": {
          "type": "string",
          "format": "email",
          "description": "The user's email address."
        }
      }
    }
  }
}