{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-database/json-schema/oracle-database-apexusage-statistics-schema.json",
  "title": "APEXUsageStatistics",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-database-oracle-apex-api-openapi.yml#/components/schemas/APEXUsageStatistics",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/APEXUsageStatisticsItem"
      }
    },
    "hasMore": {
      "type": "boolean",
      "description": "Indicates if there are more records to be retrieved."
    },
    "limit": {
      "type": "integer",
      "description": "The actual page size limit on number of records applied by the server."
    },
    "offset": {
      "type": "integer",
      "description": "The actual index from which the item resources are returned."
    },
    "count": {
      "type": "integer",
      "description": "Total number of records in the current response."
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LinkRelation"
      }
    }
  },
  "$defs": {
    "APEXUsageStatisticsItem": {
      "type": "object",
      "description": "This object represents a APEX_WORKSPACE_LOG_ARCHIVE record of page view activity. Page view activity is a daily summary of workspace activity that is retained until physically purged.",
      "properties": {
        "application_id": {
          "type": "integer",
          "description": "Application ID for which this page view log was recorded."
        },
        "application_name": {
          "type": "string",
          "description": "Application Name for which this page view log was recorded."
        },
        "average_render_time": {
          "type": "number",
          "description": "Summarized information by day, application  and workspace."
        },
        "builder_events": {
          "type": "integer",
          "description": "TBD"
        },
        "distinct_pages": {
          "type": "integer",
          "description": "Summarized information by day, application and workspace of the number of distinct pages used."
        },
        "distinct_sessions": {
          "type": "integer",
          "description": "Summarized information by day, application and workspace of the number of distinct sessions."
        },
        "distinct_users": {
          "type": "integer",
          "description": "Summarized information by day, application and workspace of the number of distinct users."
        },
        "error_count": {
          "type": "integer",
          "description": "Summarized information by day, application and workspace of the number of errors."
        },
        "log_day": {
          "type": "string",
          "description": "Total not null interactive report search values logged to the activity log."
        },
        "maximum_render_time": {
          "type": "number",
          "description": "Summarized information by day, application and workspace indicating maximum render time."
        },
        "median_render_time": {
          "type": "number",
          "description": "Summarized information by day, application and workspace indicating median render time."
        },
        "page_events": {
          "type": "integer",
          "description": "Total number of page events logged for a given day, application and workspace."
        },
        "public_page_events": {
          "type": "integer",
          "description": "Total public page events for a given day, application and workspace."
        },
        "total_render_time": {
          "type": "number",
          "description": "Summarized information by day, application and workspace indicating total render time."
        },
        "workspace_id": {
          "type": "integer",
          "description": "Identifies workspace."
        },
        "workspace_login_events": {
          "type": "integer",
          "description": "Total workspace login events by day, application and workspace."
        },
        "links": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LinkRelation"
          }
        }
      }
    },
    "LinkRelation": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "href": {
          "type": "string"
        }
      },
      "required": [
        "rel",
        "href"
      ]
    }
  }
}