code: def get_str(cls, result_type):
          
          if result_type == cls.ALARM:
              return "Alarm"
          elif result_type == cls.LOG:
              return "Log Message"
          elif result_type == cls.ERROR:
              return "Error Message"
          elif result_type == cls.HOST_DETAIL:
              return "Host Detail"
          else:
              assert False, "Erroneous result type {0}.".format(result_type)
docs: Return string name of a result type.