Skip to content

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

2.0 KB
Raw Blame
{
  "$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
  "description": "Metabot events",
  "self": {
    "vendor": "com.metabase",
    "name": "metabot",
    "format": "jsonschema",
    "version": "1-0-1"
  },
  "type": "object",
  "properties": {
    "event": {
      "description": "Event name",
      "type": "string",
      "enum": [
        "metabot_query_run",
        "metabot_feedback_received"
      ],
      "maxLength": 1024
    },
    "entity_type": {
      "description": "Entity type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "database",
        "model"
      ],
      "maxLength": 1024
    },
    "feedback_type": {
      "description": "Feedback type",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "great",
        "wrong_data",
        "incorrect_result",
        "invalid_sql"
      ],
      "maxLength": 1024
    },
    "result_type": {
      "description": "Prompt run result",
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "success",
        "failure",
        "bad-sql"
      ],
      "maxLength": 128
    },
    "prompt_template_versions": {
      "description": "The prompt template versions used in this call",
      "type": [
        "array",
        "null"
      ],
      "items": {
        "description": "A prompt template version as prompt_type:version",
        "type": "string",
        "maxLength": 1024
      }
    },
    "visualization_type": {
      "description": "String describing the type of visualization used for the generated by Metabot question",
      "type": [
        "string",
        "null"
      ],
      "maxLength": 64
    },
    "is_rerun": {
      "description": "Boolean representing whether Metabot query run was triggered by user rerunning the same prompt",
      "type": [
        "boolean",
        "null"
      ]
    }
  },
  "required": [
    "event"
  ],
  "additionalProperties": true
}