Dashboard
laktory.models.resources.databricks.Dashboard
¤
Bases: BaseModel
, PulumiResource
, TerraformResource
Databricks Lakeview Dashboard
ATTRIBUTE | DESCRIPTION |
---|---|
access_controls |
Dashboard access controls
TYPE:
|
dirpath |
Workspace directory inside rootpath in which the dashboard is deployed.
Used only if
TYPE:
|
display_name |
The display name of the dashboard.
TYPE:
|
embed_credentials |
Whether to embed credentials in the dashboard. Default is true.
TYPE:
|
file_path |
The path to the dashboard JSON file. Conflicts with serialized_dashboard.
TYPE:
|
name_prefix |
Prefix added to the dashboard display name
TYPE:
|
name_suffix |
Suffix added to the dashboard display name
TYPE:
|
parent_path |
The workspace path of the folder containing the dashboard. Includes leading slash and no trailing slash. If folder doesn't exist, it will be created.
TYPE:
|
rootpath |
Root directory to which all dashboards are deployed to. Can also be
configured by settings LAKTORY_WORKSPACE_LAKTORY_ROOT environment
variable. Default is
TYPE:
|
serialized_dashboard |
The contents of the dashboard in serialized string form. Conflicts with file_path.
TYPE:
|
warehouse_id |
The warehouse ID used to run the dashboard.
TYPE:
|
Examples:
import io
from laktory import models
# Define job
job_yaml = '''
display_name: databricks-costs
file_path: ./dashboards/databricks_costs.json
parent_path: /.laktory/dashboards
warehouse_id: a7d9f2kl8mp3q6rt
access_controls:
- group_name: account users
permission_level: CAN_READ
- group_name: account users
permission_level: CAN_RUN
'''
dashboard = models.resources.databricks.Dashboard.model_validate_yaml(
io.StringIO(job_yaml)
)
ATTRIBUTE | DESCRIPTION |
---|---|
additional_core_resources |
TYPE:
|
--