def create_dashboard_for_table(grafana_api, db, table): data = get_dashboard_for_table(db, table) response = grafana_api.dashboard.update_dashboard(dashboard={ 'dashboard': data, 'folderID': 0, 'overwrite': True }) print(f"Dashboard for table: {table.table_name} generated:", response) return {'table': table, 'dashboard': response}
def create_dashboard_for_table(grafana_api, db, table): data = get_dashboard_for_table(db, table) response = grafana_api.dashboard.update_dashboard(dashboard={ "dashboard": data, "folderID": 0, "overwrite": True }) print(f"Dashboard for table: {table.table_name} generated:", response) return {"table": table, "dashboard": response}