Skip to main content

system.kanoa.dashboard.getUserDashboards

This function is part of the kanoaCore module

Description

Get the users default and favorite dashboards

Syntax

getUserDashboards(paramsDict)
  • Parameters
      paramsDict dict
      - userId (int)
      - dashboardId (int)
      - dashboardName (string)
      - isDefault (bool)
      - isFavorite (bool)
  • Returns
      dataset
  • Code Examples

    # Example usage
    data = system.kanoa.dashboard.getUserDashboards({'userId':5, 'isDefault': True})
    print system.kanoa.utilities.convertDatasetToJSON(data
    > [
    {
    'userId': 5,
    'dashboardName': u'Asset Downtime',
    'changedDate': Sun Oct 06 13:43:22 UTC 2024,
    'isDefault': True,
    'createdDate': Mon Sep 23 18:24:00 UTC 2024,
    'dashboardId': 1,
    'createdBy': 5,
    'changedBy': 5,
    'userDashboardId': 26,
    'isFavorite': False
    }
    ]
    >>