コード例 #1
0
ファイル: __init__.py プロジェクト: pcn/python-librato
 def create_space(self, name, **query_props):
     payload = Space(self, name).get_payload()
     for k, v in query_props.items():
         payload[k] = v
     resp = self._mexe("spaces", method="POST", query_props=payload)
     return Space.from_dict(self, resp)
コード例 #2
0
ファイル: __init__.py プロジェクト: twall/python-librato
 def create_space(self, name, **query_props):
     payload = Space(self, name).get_payload()
     for k, v in query_props.items():
         payload[k] = v
     resp = self._mexe("spaces", method="POST", query_props=payload)
     return Space.from_dict(self, resp)
コード例 #3
0
ファイル: __init__.py プロジェクト: pcn/python-librato
 def get_space(self, id, **query_props):
     """Get specific space by ID"""
     resp = self._mexe("spaces/%s" % id,
                       method="GET", query_props=query_props)
     return Space.from_dict(self, resp)
コード例 #4
0
ファイル: __init__.py プロジェクト: twall/python-librato
 def get_space(self, id, **query_props):
     """Get specific space by ID"""
     resp = self._mexe("spaces/%s" % id,
                       method="GET",
                       query_props=query_props)
     return Space.from_dict(self, resp)