catalog_workspace_content.
get_dependent_entities_graph
get_dependent_entities_graph(workspace_id: str)
Gets the dependent entities graph for a given workspace.
There are dependencies among all catalog objects, the chain is the following:
fact/attribute/label → dataset → metric → visualization → dashboard
Some steps can be skipped, e.g. fact → visualization
We do not support table → dataset
dependency yet.
Parameters
name | type | description |
---|---|---|
workspace_id | string | Workspace identification string e.g. "demo" |
Returns
type | description |
---|---|
CatalogDependentEntitiesResponse | Dependent entities graph containing nodes and edges. |
Example
# Get dependent entities Graph
sdk.catalog_workspace_content.get_dependent_entities_graph_from_entry_points(
workspace_id="123"
)
# CatalogDependentEntitiesResponse(
# graph=CatalogDependentEntitiesGraph(
# nodes=[
# CatalogDependentEntitiesNode(
# id='campaign_channel_id',
# type='attribute',
# title='Campaign channel id'
# ),
# CatalogDependentEntitiesNode(
# id='campaign_channels',
# type='dataset',
# title='Campaign channels'
# )
# ],
# edges=[
# [
# CatalogEntityIdentifier(
# id='campaign_channel_id',
# type='attribute'
# ),
# CatalogEntityIdentifier(
# id='campaign_channels',
# type='dataset'
# )
# ]
# ]
# )
# )