system.kanoa.dashboard.getUserDashboards
Description
Get the users default and favorite dashboardsSyntax
getUserDashboards(paramsDict)- paramsDict dict
- - userId (int)
- - dashboardId (int)
- - dashboardName (string)
- - isDefault (bool)
- - isFavorite (bool)
- 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
}
]
>>