code: def get_status(api_subject):
    ''' Gets a string representing the status of the Api subject (role or service)
        based on the health summary and health checks.
    '''
    summary = api_subject.healthSummary
    if summary is None:
      return None
    # status string always starts with "<nagios code>: <summary>"
    status = "%s: %s" % (NAGIOS_CODE_MESSAGES[CM_STATE_CODES[summary]], summary)
    if summary != "GOOD" and summary != "DISABLED":
      # if the summary is CONCERNING or BAD, then append the health checks
      for health_check in api_subject.healthChecks:
        if health_check['summary'] != "GOOD" and health_check['summary'] != "DISABLED":
          status = ("%s, %s=%s" % (status, health_check['name'], health_check['summary']))
    return statuf get_status(api_subject):
    ''' Gets a string representing the status of the Api subject (role or service)
        based on the health summary and health checks.
    '''
    summary = api_subject.healthSummary
    if summary is None:
      return None
    # status string always starts with "<nagios code>: <summary>"
    status = "%s: %s" % (NAGIOS_CODE_MESSAGES[CM_STATE_CODES[summary]], summary)
    if summary != "GOOD" and summary != "DISABLED":
      # if the summary is CONCERNING or BAD, then append the health checks
      for health_check in api_subject.healthChecks:
        if health_check['summary'] != "GOOD" and health_check['summary'] != "DISABLED":
          status = ("%s, %s=%s" % (status, health_check['name'], health_check['summary']))
    return status
docs: Gets a string representing the status of the Api subject (role or service)
        based on the health summary and health checks.