def ServeHealthCheck(self, env, start_response, remote_addr):
    if os.environ.get('USE_MVM_AGENT') == 'true':
      start_response('200 OK', [])
      return ['ok']
    query_string = env.get('QUERY_STRING', '')
    parameters = urlparse.parse_qs(query_string)

    is_last_successful_list = parameters.get('IsLastSuccessful', None)


    if self._CheckIsLocalAddress(remote_addr):


      remote_check_valid = True
      if not self.is_last_successful_time:
        remote_check_valid = False
      else:
        time_offset_seconds = time.time() - self.is_last_successful_time
        if (time_offset_seconds >
            self.check_interval_sec * HEALTH_CHECK_INTERVAL_OFFSET_RATIO):
          remote_check_valid = False

      if self.is_last_successful and remote_check_valid:
        start_response('200 OK', [])
        return ['ok']
      else:
        start_response('500 Internal Server Error', [])
        if not self.is_last_successful:
          logging.warning('unhealthy because IsLastSuccessful is False')
        if not remote_check_valid:
          logging.warning('unhealthy because remote health check is not valid.')
        return ['unhealthy']

    else:
      if is_last_successful_list is not None:
        if is_last_successful_list[0].lower() == 'yes':
          self.is_last_successful = True
        elif is_last_successful_list[0].lower() == 'no':
          self.is_last_successful = False
        else:
          self.is_last_successful = False
          logging.warning('Wrong value for parameter IsLastSuccessful: %s',
                          is_last_successful_list)
        self.is_last_successful_time = time.time()

      return internal_app(env, start_response)
Returns a tuple contaning the property data, index name, and index keys.
dataset/ETHPy150Open GoogleCloudPlatform/python-compat-runtime/appengine-compat/exported_appengine_sdk/google/appengine/ext/vmruntime/meta_app.py/MetaWSGIApp.ServeHealthCheck--crossover with--dataset/ETHPy150Open espeed/bulbs/bulbs/model.py/Model.get_bundle