Exemplo n.º 1
0
class ModelsData:

    def __init__(self):
        self.rest_client = CephWrapper(
            endpoint='http://localhost:8000/api/v1/',
            debug=False
        )

    def fsid(self):
        response = self.rest_client.fsid(body='json')
        return response[1]

    def status(self):
        response = self.rest_client.status(body='json')
        return response[1]

    def health(self):
        response = self.rest_client.health(body='json')
        return response[1]["summary"]
Exemplo n.º 2
0
 def __init__(self):
     self.rest_client = CephWrapper(
         endpoint='http://localhost:8000/api/v1/',
         debug=False
     )