def create_dashboard(self, name, **query_props): payload = Dashboard(self, name).get_payload() for k, v in query_props.items(): payload[k] = v resp = self._mexe("dashboards", method="POST", query_props=payload) return Dashboard.from_dict(self, resp)
def get_dashboard(self, id, **query_props): """Get specific dashboard by ID""" resp = self._mexe("dashboards/%s" % id, method="GET", query_props=query_props) return Dashboard.from_dict(self, resp)