2025-08-21 14:51:11 -07:00
|
|
|
from datahub.sdk import DashboardUrn, DataHubClient
|
2025-06-27 15:28:20 +09:00
|
|
|
|
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
|
|
2025-08-21 14:51:11 -07:00
|
|
|
# Or get this from the UI (share -> copy urn) and use DashboardUrn.from_string(...)
|
|
|
|
|
dashboard_urn = DashboardUrn("looker", "example_dashboard_id")
|
2025-06-27 15:28:20 +09:00
|
|
|
|
2025-08-21 14:51:11 -07:00
|
|
|
dashboard_entity = client.entities.get(dashboard_urn)
|
2025-06-27 15:28:20 +09:00
|
|
|
print("Dashboard name:", dashboard_entity.name)
|
|
|
|
|
print("Dashboard platform:", dashboard_entity.platform)
|
|
|
|
|
print("Dashboard description:", dashboard_entity.description)
|