Skip to content

Defaults

Defaults enable you to set a target and alert that will be used whenever one is not explicitly passed.

Defaults will be overridden if:

  1. A target / alert is passed to a command. ex: visivo serve -t target-name
  2. A target is specified in the trace using the target_name attribute. when this attribute is set the trace will always run queries against that target.

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

defaults:
  target_name: local-sqlite
  alert_name: slack

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

targets:
  - name: local-sqlite
    database: target/local.db
    type: sqlite

Attributes

Field Type Default Description
alert_name string None The name of an alert defined elsewhere in the Visivo project.
target_name string None The name of a target defined elsewhere in the Visivo project.