Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

3.1 KB
Raw Blame
{
    "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
    "description": "Data Complexity Score — one event per (catalog, key) slice.",
    "self": {
        "vendor": "com.metabase",
        "name": "data_complexity",
        "format": "jsonschema",
        "version": "1-0-0"
    },
    "type": "object",
    "additionalProperties": false,
    "required": [
        "event",
        "batch_id",
        "catalog",
        "key",
        "formula_version",
        "parameters"
    ],
    "properties": {
        "event": {
            "description": "Event name.",
            "type": "string",
            "enum": [
                "data_complexity_scoring"
            ],
            "maxLength": 64
        },
        "batch_id": {
            "description": "Unique identifier for the scoring run that emitted this event; consumers use it to group events from the same run.",
            "type": "string",
            "format": "uuid",
            "maxLength": 36
        },
        "catalog": {
            "description": "Which catalog of the data layer was scored.",
            "type": "string",
            "enum": [
                "library",
                "universe",
                "metabot"
            ],
            "maxLength": 16
        },
        "key": {
            "description": "Dotted identifier for this slice: `total`, a `<group>.total` rollup, or a `<group>.<component>` leaf. Free-form so new keys can be added without a schema bump.",
            "type": "string",
            "maxLength": 64
        },
        "score": {
            "description": "Weighted score for this key. Null when the sub-score (or any sub-score it aggregates) couldn't be computed.",
            "type": [
                "integer",
                "null"
            ],
            "minimum": 0,
            "maximum": 2147483647
        },
        "measurement": {
            "description": "Raw pre-score measurement (absent on aggregates and on error leaves). Number, not integer, to future-proof.",
            "type": [
                "number",
                "null"
            ],
            "minimum": 0,
            "maximum": 9007199254740991
        },
        "error": {
            "description": "Failure message on the originating leaf when its sub-score couldn't be computed; aggregates carry null `score` instead.",
            "type": [
                "string",
                "null"
            ],
            "maxLength": 1024
        },
        "formula_version": {
            "description": "Scoring formula version; bumps on breaking changes. Kept top-level so cross-version filters are a single column.",
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
        },
        "parameters": {
            "description": "Scoring inputs that are likely to evolve (tunables, embedder identity). Sorted-key JSON so stable for SQL group-by; Metabase Transforms can break out its fields without bumping schema.",
            "type": "object",
            "additionalProperties": true
        }
    }
}