Skip to content

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

4.9 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-3"
  },
  "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",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "search-app",
        "search-bar",
        "command-palette",
        "entity-picker"
      ],
      "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.)",
        "type": "string",
        "enum": [
          "dashboard",
          "card",
          "dataset",
          "segment",
          "measure",
          "metric",
          "collection",
          "database",
          "table",
          "action",
          "indexed-entity",
          "document",
          "transform"
        ],
        "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
}