Ejemplo n.º 1
0
 def get(self):
     status = 200
     stacks = stacks_handler.get_stacks()
     if len(stacks) == 0:
         status = 404
     response = {'stacks': [json.loads(stack) for stack in stacks]}
     respond(self, response, status)
Ejemplo n.º 2
0
 def get(self):
         status = 200
         stacks = stacks_handler.get_stacks()
         if len(stacks) == 0:
                 status = 404
         response = {'stacks': [json.loads(stack) for stack in stacks]}
         respond(self,response,status)
Ejemplo n.º 3
0
 def get(self):
     status = 200
     log_monitor.install()
     log_monitor.get_rasps_from_csv()
     log_monitor.get_stacks_from_csv()
     stacks = stacks_handler.get_stacks()
     if len(stacks) == 0:
         status = 404
     response = {'stacks': [json.loads(stack) for stack in stacks]}
     print(response)
     respond(self, response, status)
Ejemplo n.º 4
0
 def get(self):
         status = 200
         log_monitor.install()
         log_monitor.get_rasps_from_csv()
         log_monitor.get_stacks_from_csv()
         stacks = stacks_handler.get_stacks()
         if len(stacks) == 0:
                status = 404
         response = {'stacks': [json.loads(stack) for stack in stacks]}
         print(response)
         respond(self, response, status)