Workspace data tool

Deephaven's Web interface maintains state in the table DbInternal.WorkspaceData. The active set of this data is exposed by the WebClientData query as "workspaceData". The workspace data tool is a command line utility for interacting with this data. To invoke this command:

sudo -u irisadmin /usr/illumon/latest/bin/iris workspace_data_tool [arguments]

Invoking this command without any arguments will display the options described below.

Options

ShortLongArg?Description
-a--addNAdd workspace data row
-c--writeCSVNWrite WorkspaceData to CSV
-d--displayNDisplay workspace data
-e--versionYData version for record to add (presently should always be 8)
-f--fileYFilename for display/CSV
-g--admingGroupsYAdmin groups for record to add
-i--idYId for record to add
-m--maxRowsYMaximum rows to display (defaults to 100)
-n--nameYName for record to add, for display defaults to all rows
-o--ownerYOwner for record to add or display, for display defaults to all rows
-r--dateValueYData for record to add
-rc--readCsvNRead WorkspaceData from CSV
-s--statusYStatus for record to add
-t--dataTypeYData type to add or display. Legal values:
  • Workspace
  • Dashboard
  • DashboardOverride
  • DraftQuery
  • CommandHistoryItem.<identifer>
Note: some of these are for internal use in the Web UI. Typical types for import/export would be Workspace or Dashboard.
-v--viewGroupsYViewer groups for record to add

Examples

Display all current Dashboard records:

sudo -u irisadmin /usr/illumon/latest/bin/iris workspace_data_tool -t Dashboard -d

Export all current current Dashboard records to a CSV file at /tmp/out.csv:

sudo -u irisadmin /usr/illumon/latest/bin/iris workspace_data_tool -t Dashboard -f /tmp/out.csv -c

Import the WorkspaceData data from a CSV file at /tmp/in.csv:

sudo -u irisadmin /usr/illumon/latest/bin/iris workspace_data_tool -f /tmp/in.csv -rc

Add a single Dashboard with the given structure. Note the JSON for the Dashboard data is abridged, and must be escaped carefully due to the embedded double quotes.

sudo -u irisadmin /usr/illumon/latest/bin/iris workspace_data_tool -a \
--id b6eeb14d-cb0a-44db-8d09-7a139c0d6361 \
--name bob \
--owner bob \
--status Active \
--dataType Dashboard \
--dataValue "{\"type\":\"Dashboard\", … }"

Notes

  • The version argument or CSV column indicates the version of the data format. To observe the current version, export or display existing workspace data. New data imported should typically match this version.
  • The export and import CSV file format is the same. However, the following columns are optional and ignored when importing: Date, LastModifiedByAuthenticated, LastModifiedByEffective, LastModifiedTime. These values are assigned according to who does the import and when it occurs.
  • Because the active workspace data is determined by the most recent row, by id (according to LastModifiedTime), newly imported data becomes "effective" as soon as it is imported. Any existing rows with matching ids will be replaced by the imported data.