catalog_workspace_content.

get_declarative_analytics_model

get_declarative_analytics_model(workspace_id: str, exclude: Optional[list[str]])

Gets an analytics model layout.

Parameters

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"
excludeOptional[list[str]]Defines properties which should not be included in the payload. E.g.: ["ACTIVITY_INFO"]

Returns

typedescription
CatalogDeclarativeAnalyticsObject Containing declarative Analytical Model.

Example

# Get analytics model layout
declarative_analytics = sdk.catalog_workspace_content.get_declarative_analytics_model(
    workspace_id="123"
)

# CatalogDeclarativeAnalytics(
#   analytics=CatalogDeclarativeAnalyticsLayer(
#       analytical_dashboards=[
#           CatalogDeclarativeAnalyticalDashboard(
#               id='campaign',
#               title='Campaign',
#               content={
#                   'filterContextRef': {
#                       'identifier': {
#                           'id': 'campaign_name_filter',
#                           'type': 'filterContext'
#                       }
#                   },
#                   'layout': {
#                       'type': 'IDashboardLayout',
#                       'sections': [
#                           {
#                               'items': ```
#                               'type': 'IDashboardLayoutSection',
# ...