示例#1
0
 def check_endtoend(self):
     """
     Conducts a check on all services, returning a dict representing the HealthCheck output and a
     number indicating the health check response code.
     """
     service_statuses = check_all_services(self.app, [], for_instance=False)
     return self.calculate_overall_health(service_statuses)
示例#2
0
文件: healthcheck.py 项目: syed/quay
 def check_instance(self):
     """
     Conducts a check on this specific instance, returning a dict representing the HealthCheck
     output and a number indicating the health check response code.
     """
     service_statuses = check_all_services(self.app, self.instance_skips, for_instance=True)
     return self.get_instance_health(service_statuses)