{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-essbase/json-schema/oracle-essbase-drillthrough-bean-schema.json",
  "title": "DrillthroughBean",
  "description": "<p>Drill through report definition. Determines the access users should have to external information. Drill through report definitions are associated with a cube, and include a column mapping (required), a drillable region (required), and a mapping for runtime parameters (optional - can be used if the Datasource query is parameterized).</p>",
  "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/DrillthroughBean",
  "type": "object",
  "properties": {
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    },
    "parameterMapping": {
      "type": "object",
      "description": "<p>Optional specification of dimension, generation, or level mapping for runtime parameters (if implemented in a Datasource), enabling further customization of drill through report results based on the variable context.</p>",
      "additionalProperties": {
        "$ref": "#/$defs/RunTimeParametersInfo"
      }
    },
    "drillableRegions": {
      "type": "array",
      "description": "<p>Specification of which cell intersections offer access to drill through reports (or a URL). Specify using Essbase member names and (optionally) member-set calculation functions. Example: Market,Year,Scenario,Sales,@LEVMBRS(Product,1)</p>",
      "items": {
        "type": "string"
      }
    },
    "useTempTables": {
      "type": "boolean",
      "description": "<p>Whether Essbase should create temporary tables for drill through performance improvement for queries that have a large number of values in the SQL ???IN??? clause.</p>"
    },
    "columnMapping": {
      "type": "object",
      "description": "<p>Specification of which external source columns should be included in the drill through report, which Essbase dimensions those columns map to, and (optionally) a generation/level filter condition indicating how much depth of access to provide.</p>",
      "additionalProperties": {
        "$ref": "#/$defs/ColumnMappingInfo"
      }
    },
    "dataSourceName": {
      "type": "string",
      "description": "<p>Name of the Datasource used for this drill through report definition.</p>"
    },
    "url": {
      "type": "string",
      "description": "<p>Static or dynamic URL string. Use if you are defining drill through to external data using URLs.</p>"
    },
    "columns": {
      "type": "array",
      "description": "<p>List of columns from the external Datasource that you want included in the drill through report.</p>",
      "items": {
        "type": "string"
      }
    },
    "type": {
      "type": "string",
      "description": "<p>Type of drill through report definition: <code>DATASOURCE</code> to drill through to an external source system or <code>URL</code> to drill through to a web URL.</p>"
    },
    "name": {
      "type": "string",
      "description": "<p>Name of the drill through report definition.</p>"
    }
  },
  "$defs": {
    "ColumnMappingInfo": {
      "type": "object",
      "properties": {
        "dimension": {
          "type": "string"
        },
        "generation": {
          "type": "string"
        },
        "level": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "DIMENSION",
            "GENERATION",
            "LEVEL0",
            "PARENT_CHILD"
          ]
        },
        "generationNumber": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "Link": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "href": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "RunTimeParametersInfo": {
      "type": "object",
      "properties": {
        "dimension": {
          "type": "string"
        },
        "generation": {
          "type": "string"
        },
        "level": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "DIMENSION",
            "GENERATION",
            "LEVEL0",
            "PARENT_CHILD"
          ]
        },
        "generationNumber": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}