Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)