@property
    def capacity(self):
        if self.status:
            return round((1.0 * self.used_size_in_bytes / self.total_size) if self.total_size else 0, 2)
Float number about used capacity
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/logical/models.py/Database.capacity