mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-29 02:55:15 +00:00
12 lines
456 B
Python
12 lines
456 B
Python
from datahub.sdk import DashboardUrn, DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
# Or get this from the UI (share -> copy urn) and use DashboardUrn.from_string(...)
|
|
dashboard_urn = DashboardUrn("looker", "example_dashboard_id")
|
|
|
|
dashboard_entity = client.entities.get(dashboard_urn)
|
|
print("Dashboard name:", dashboard_entity.name)
|
|
print("Dashboard platform:", dashboard_entity.platform)
|
|
print("Dashboard description:", dashboard_entity.description)
|