Skip to content

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

2.6 KB
Raw Blame
{
  "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
  "description": "Events related to questions",
  "self": {
    "vendor": "com.metabase",
    "name": "question",
    "format": "jsonschema",
    "version": "1-0-6"
  },
  "type": "object",
  "properties": {
    "event": {
      "description": "Event name",
      "type": "string",
      "enum": [
        "new_question_saved",
        "turn_into_model_clicked",
        "notebook_native_preview_shown",
        "notebook_native_preview_hidden",
        "column_combine_via_shortcut",
        "column_combine_via_column_header",
        "column_combine_via_plus_modal",
        "column_compare_via_shortcut",
        "column_compare_via_column_header",
        "column_compare_via_plus_modal",
        "column_extract_via_shortcut",
        "column_extract_via_column_header",
        "column_extract_via_plus_modal"
      ],
      "maxLength": 1024
    },
    "type": {
      "description": "String identifying the type of the question when it is saved",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "simple_question",
        "custom_question",
        "native_question"
      ],
      "maxLength": 1024
    },
    "method": {
      "description": "String indicating whether or not the question was created based off of an existing question",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "from_scratch",
        "existing_question"
      ],
      "maxLength": 1024
    },
    "visualization_type": {
      "description": "String describing the type of visualization used for the question",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    },
    "question_id": {
      "description": "Unique identifier for the question within the Metabase instance",
      "type": "integer",
      "minimum": 0,
      "maximum": 2147483647
    },
    "database_id": {
      "description": "Unique identifier(s) for the database connection(s) used to create the question",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "custom_expressions_used": {
      "description": "A list of names of expression functions and aggregations used",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "description": "The name of a function used in the custom expression",
        "type": "string",
        "maxLength": 1024
      }
    }
  },
  "required": [
    "event",
    "question_id"
  ],
  "additionalProperties": true
}