Skip to main content
On this page

Kater CLI Present and share dashboard

kater dashboard run

Run the tiles of a dashboard that have no fresh saved rows in one worker job, and keep each tile's rows where its chart execute reads them. Write the request as a file with namespace (the workspace) and tiles: the chart execute request of each tile. The answer says for each tile whether it can be read now (answers_now) and whether the dashboard's job makes its rows (job_makes).

A program gives the exact typed request with --request-file.

The request’s fields: tab: The tab of the caller’s live stream that waits (tab=<id> on /live), so the tab’s Stop, as when its page closes, takes the wait off the read’s worker job, which then stops when it has not started on the warehouse. Left out, as a kater command sends it, the wait stays until its job ends. namespace (required): {kind?: “workspace”, scope: {kind?: “shared”, connection: text} or {kind?: “personal”, connection: text, user_id: text, topic?}, workspace: text}. tiles (required): a list of {wait_ms?, tab?, spec: an object, sql?, plan?, expected_revision?, heading?, inputs?, fresh?, consumer?, first_rows?, include_runtime?, saved_only?, demand?}. The chart.execute request of each tile, exactly as the tile will send it once its rows are ready. demand: Who waits for the answer, which sets how soon its run starts, as result.resolve says it. explicit: a person asked for it now, with a click, a pick or Run. visible: it is on a screen someone looks at. nearby: nobody waits yet, as for a pointer that rests on a tab or a read ahead: the run starts after the work a person waits for, and one person has at most 4 such runs waiting, a fifth refused with result_capacity.

Examples

Terminal window
# Run the tiles of a dashboard that have no fresh saved rows in one worker job, and keep each tile's rows where its chart execute reads them. Write the request as a file with `namespace` (the workspace) and `tiles`: the chart execute request of each tile. The answer says for each tile whether it can be read now (`answers_now`) and whether the dashboard's job makes its rows (`job_makes`)
kater dashboard run

Arguments

ArgumentDescription
<object>Optional. The workspace: its key, such as duckdb_sample/shop, or in a person’s folder, duckdb_sample/users/<user id>/shop; its name, such as shop; its folder, such as connections/<connection>/workspaces/shop; or its id, rel1_…, also from before a rename. By default the workspace you are in.

Options

OptionDescription
--request-file <file>Typed request JSON file; - reads stdin.

It also takes the global options anywhere on the line, and --help.

See also