Skip to content

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

5.5 KB
Raw Blame
{
  "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
  "description": "Search events",
  "self": {
    "vendor": "com.metabase",
    "name": "search",
    "format": "jsonschema",
    "version": "1-1-4"
  },
  "type": "object",
  "properties": {
    "event": {
      "description": "Event name",
      "type": "string",
      "enum": [
        "search_query",
        "search_click",
        "new_search_query",
        "search_results_filtered"
      ],
      "maxLength": 1024
    },
    "runtime_milliseconds": {
      "description": "Number of milliseconds it took to successfully run the search query",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "context": {
      "description": "Source of the search event. Non-null in practice (the frontend sends a value on every request), but kept nullable here to avoid a major (MODEL) version bump, which would fork events into a separate warehouse table. \"other\" buckets frontend contexts not yet added to this enum.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "basic-actions",
        "browse",
        "command-palette",
        "data-picker",
        "dependencies",
        "document",
        "embedding-setup",
        "entity-picker",
        "library",
        "model-migration",
        "search-app",
        "search-bar",
        "type-filter",
        "other",
        null
      ],
      "maxLength": 1024
    },
    "total_results": {
      "description": "The total number of results that matched the query",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "page_results": {
      "description": "The number of results returned per page",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "position": {
      "description": "The position of the result in the list that was clicked. Zero indexed",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "target_type": {
      "description": "The type of item in the search list that was clicked.",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "item",
        "view_more"
      ]
    },
    "content_type": {
      "description": "Filter for entity types (question, database, model, etc.)",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "description": "An entity type (card, question, dashboard, etc.). \"other\" buckets models that aren't tracked content types.",
        "type": "string",
        "enum": [
          "dashboard",
          "card",
          "dataset",
          "segment",
          "measure",
          "metric",
          "collection",
          "database",
          "table",
          "action",
          "indexed-entity",
          "document",
          "transform",
          "other"
        ],
        "maxLength": 1024
      }
    },
    "creator": {
      "description": "Filter for created by a user",
      "type": [
        "boolean",
        "null"
      ]
    },
    "last_editor": {
      "description": "Filter for last edited by a user",
      "type": [
        "boolean",
        "null"
      ]
    },
    "creation_date": {
      "description": "Filter for a time when a user creates an entity",
      "type": [
        "boolean",
        "null"
      ]
    },
    "last_edit_date": {
      "description": "Filter for a time when a user last edited an entity",
      "type": [
        "boolean",
        "null"
      ]
    },
    "verified_items": {
      "description": "Filter for entities that have been marked as verified",
      "type": [
        "boolean",
        "null"
      ]
    },
    "search_native_queries": {
      "description": "Toggles whether search should include SQL and/or native queries",
      "type": [
        "boolean",
        "null"
      ]
    },
    "search_archived": {
      "description": "Toggles whether search should include archived items",
      "type": [
        "boolean",
        "null"
      ]
    },
    "search_engine": {
      "description": "The search engine used to perform the search",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    },
    "request_id": {
      "description": "The unique request ID for the search request",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    },
    "offset": {
      "description": "The offset of the search results (for pagination)",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "entity_model": {
      "description": "The model type of the clicked entity",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    },
    "entity_id": {
      "description": "The ID of the clicked entity",
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "maximum": 2147483647
    },
    "search_term_hash": {
      "description": "A hash of the search term and instance id",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    },
    "search_term": {
      "description": "The search term as a string (only reported for specific analytics UUIDs)",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 1024
    }
  },
  "required": [
    "event"
  ],
  "additionalProperties": true
}