Skip to content

Defaults

Defaults set the source and alert that are used whenever one is not explicitly specified.

Defaults will be overridden if:

  1. A source / alert is passed to a command. ex: visivo serve -s source-name
  2. A source is specified directly on the model via the source attribute. When that attribute is set the model will always run queries against that source.

Here's how defaults look in the project.visivo.yml file:

defaults:
  source_name: local-sqlite
  alert_name: notify-slack-on-failure

alerts:
  - name: notify-slack-on-failure
    if: ">{ anyTestFailed() }"
    destinations:
      - ${ref(visivo-slack)}

destinations:
  - name: visivo-slack
    type: slack
    webhook_url: https://hooks.slack.com/services/ap8ub98ssoijbloisojbo8ys8

sources:
  - name: local-sqlite
    database: source/local.db
    type: sqlite

Attributes

Field Type Default Description
alert_name string None The name of an alert defined elsewhere in the Visivo project.
source_name string None The name of a source defined elsewhere in the Visivo project.
threads integer 8 The number of threads to use when running queries.
levels Array of Level None Enables you to customize the project level view of your dashboards. Ordered list of dashboard levels with titles and descriptions
telemetry_enabled boolean None Controls whether anonymous usage telemetry is collected for this project. When set to false, no telemetry data will be sent. Can also be disabled globally via VISIVO_TELEMETRY_DISABLED environment variable.