mirror of https://github.com/databricks/cli.git
dashboard example
This commit is contained in:
parent
3461c66dc9
commit
cc3bcf992d
|
@ -0,0 +1,6 @@
|
||||||
|
# Iterating
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
databricks lakeview get 01ef69c6a1b61c85a97505155d58015e --output json | jq -r .serialized_dashboard | jq -S . > dashboard.lvdash.json
|
||||||
|
```
|
|
@ -0,0 +1,34 @@
|
||||||
|
{
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"displayName": "New Page",
|
||||||
|
"layout": [
|
||||||
|
{
|
||||||
|
"position": {
|
||||||
|
"height": 2,
|
||||||
|
"width": 6,
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"widget": {
|
||||||
|
"name": "82eb9107",
|
||||||
|
"textbox_spec": "# hi another new foobar change! if I change this remotely"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"position": {
|
||||||
|
"height": 2,
|
||||||
|
"width": 6,
|
||||||
|
"x": 0,
|
||||||
|
"y": 2
|
||||||
|
},
|
||||||
|
"widget": {
|
||||||
|
"name": "ffa6de4f",
|
||||||
|
"textbox_spec": "another widget"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "fdd21a3c"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1,36 @@
|
||||||
|
bundle:
|
||||||
|
name: dashboard-eng-work
|
||||||
|
|
||||||
|
workspace:
|
||||||
|
host: https://e2-dogfood.staging.cloud.databricks.com
|
||||||
|
|
||||||
|
variables:
|
||||||
|
# 0 - Shared SQL Warehouse (ID: dd43ee29fedd958d)
|
||||||
|
warehouse_id:
|
||||||
|
default: dd43ee29fedd958d
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
- group_name: users
|
||||||
|
level: CAN_VIEW
|
||||||
|
|
||||||
|
resources:
|
||||||
|
dashboards:
|
||||||
|
my_special_dashboard:
|
||||||
|
# TODO:
|
||||||
|
# * rename display_name to just "name"
|
||||||
|
# * remove parent_path, optionally let it be specified as part of "name",
|
||||||
|
# just like we do for mlflow experiments.
|
||||||
|
# * default the parent_path to ${workspace.resource_path}.
|
||||||
|
display_name: "Foobar"
|
||||||
|
parent_path: ${workspace.file_path}
|
||||||
|
warehouse_id: ${var.warehouse_id}
|
||||||
|
definition_path: ./dashboard.lvdash.json
|
||||||
|
|
||||||
|
|
||||||
|
# # file_path: ./dashboard.lvdash.json
|
||||||
|
|
||||||
|
# catalog: ${var.default_catalog}
|
||||||
|
# schema: ${var.default_schema}
|
||||||
|
|
||||||
|
|
||||||
|
#https://e2-dogfood.staging.cloud.databricks.com/dashboardsv3/01ef692961381515beac094aa0a82cd5/published?o=6051921418418893
|
Loading…
Reference in New Issue