Skip to main content
On this page

Kater CLI Present and share dashboard

kater dashboard open

Reads a workspace's dashboard.

When dashboard.yaml is missing, the answer holds Kater’s own starting dashboard, and with scaffold set to true and permission to change the workspace, Kater saves it first. The answer holds the file, its revision, its tiles and the workspace’s filters.

Examples

Terminal window
# Open the ad_reporting dashboard
kater dashboard open --request-file ad_reporting.json
# Save Kater's starting dashboard when the workspace has none
jq '.scaffold = true' ad_reporting.json > ad_reporting_start.json
kater dashboard open --request-file ad_reporting_start.json
# Make a faster request, without the workspace's filters, and send it
jq '.include_inputs = false' ad_reporting.json > ad_reporting_quick.json
kater dashboard open --request-file ad_reporting_quick.json

Arguments

ArgumentDescription
<path>Optional. In place of --request-file: the workspace, the query file or the chart file the request names.

Options

OptionDescription
--request-file <file>The workspace, as JSON, such as ad_reporting.json. Give - to read it from standard input. See The request.

It also takes the global options --json, --kater-root, --scope and --help.

The request

FieldWhat it holds
namespaceThe workspace, by its full path.
scaffoldOptional, false when you leave it out. True saves Kater’s starting dashboard when the file is missing and you can change the workspace. False only reads.
include_inputsOptional, true when you leave it out. False answers faster, because Kater does not compile workspace.sql. The answer then has no inputs.

What it shows

FieldWhat it holds
fileThe whole dashboard.yaml as data. kater dashboard save takes it back.
revisionThe file’s revision. It is missing when there is no file.
scaffoldedWhether the file was missing, so that this dashboard is Kater’s starting one.
savedWhether dashboard.yaml is on disk after the call.
can_writeWhether you can change the dashboard.
problemsWhat is wrong in the file.
inputsThe filters and parameters that workspace.sql declares, in its order.
chartsEvery saved chart in the workspace, whether it is a tile or not.
queriesEvery query in the workspace, whether it has a saved chart or not.

See also