docs: def get_ports_alert(self, port, header="", log=False):
          """Return the alert status relative to the port scan return value."""
          ret = 'OK'
          if port['status'] is None:
              ret = 'CAREFUL'
          elif port['status'] == 0:
              ret = 'CRITICAL'
          elif (isinstance(port['status'], (float, int)) and
                port['rtt_warning'] is not None and
                port['status'] > port['rtt_warning']):
              ret = 'WARNING'
  
          # Get stat name
          stat_name = self.get_stat_name(header=header)
  
          # Manage threshold
          self.manage_threshold(stat_name, ret)
  
          # Manage action
          self.manage_action(stat_name,
                             ret.lower(),
                             header,
                             port[self.get_key()])
  
          return ret