{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-essbase/json-schema/oracle-essbase-storage-statistics-schema.json",
  "title": "StorageStatistics",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-essbase-rest-api-openapi.yml#/components/schemas/StorageStatistics",
  "type": "object",
  "properties": {
    "dimensions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StatisticsDimensions"
      }
    },
    "maxKeyLengthBits": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the sum of all the bits used by each dimension. For example, there are 20 bits in the key used for dimensions, and the first 4 are used by Year.</p>",
      "format": "int32"
    },
    "maxKeyLengthBytes": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, how many bytes the key uses per cell</p>",
      "format": "int32"
    },
    "numberOfInputLevelCells": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the number of existing level-0 cells in the database, including incremental slices</p>",
      "format": "int32"
    },
    "numberOfIncrementalDataSlices": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the number of data slices resulting from incremental data loads</p>",
      "format": "int32"
    },
    "numberOfIncrementalInputCells": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the number of level-0 cells in the incremental data slices</p>",
      "format": "int32"
    },
    "numberOfAggregateViews": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the number of aggregate views, including those automatically built on incremental slices</p>",
      "format": "int32"
    },
    "numberOfAggregateCells": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the number of cells stored in aggregate views</p>",
      "format": "int32"
    },
    "numberOfIncrementalAggregateCells": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the number of cells stored in the incremental slices' aggregate views</p>",
      "format": "int32"
    },
    "costOfQueryingIncrementalData": {
      "type": "number",
      "description": "<p>For aggregate storage cubes, the average percentage of query time spent processing incremental data slices. This is useful in deciding when slices should be merged together to improve query performance.</p>",
      "format": "double"
    },
    "inputLevelDataSize": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the total disk space used by input-level data</p>",
      "format": "int32"
    },
    "aggregateDataSize": {
      "type": "integer",
      "description": "<p>For aggregate storage cubes, the total disk space occupied by aggregate cells</p>",
      "format": "int32"
    },
    "numberOfExistingBlocks": {
      "type": "number",
      "description": "<p>Total number of existing data blocks (not the maximum)</p>",
      "format": "double"
    },
    "blockSize": {
      "type": "integer",
      "format": "int32"
    },
    "potentialNumberOfBlocks": {
      "type": "number",
      "format": "double"
    },
    "existingLevelZeroBlocks": {
      "type": "number",
      "format": "double"
    },
    "existingUpperLevelBlocks": {
      "type": "number",
      "format": "double"
    },
    "blockDensity": {
      "type": "number",
      "format": "double"
    },
    "percentageOfMaximumBlocksExisting": {
      "type": "number",
      "format": "double"
    },
    "compressionRatio": {
      "type": "number",
      "format": "double"
    },
    "averageClusteringRatio": {
      "type": "number",
      "format": "double"
    },
    "pageFileSize": {
      "type": "integer",
      "format": "int64"
    },
    "indexFileSize": {
      "type": "integer",
      "format": "int64"
    }
  },
  "$defs": {
    "StatisticsDimensions": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "levels": {
          "type": "string"
        },
        "bits": {
          "type": "number",
          "format": "double"
        }
      }
    }
  }
}