code: def _get_alerts(self) -> List[str]:
          
          global ALERTS
  
          cur_time = time.monotonic()
          if cur_time < self._next_alert_time:
              return []
  
          alerts = []
  
          if self._alert_count < len(ALERTS):
              alerts.append(ALERTS[self._alert_count])
              self._alert_count += 1
              self._next_alert_time = cur_time + 4
  
          else:
              rand_num = random.randint(1, 20)
              if rand_num > 2:
                  return []
  
              for i in range(0, rand_num):
                  self._alert_count += 1
                  alerts.append("Alert {}".format(self._alert_count))
  
              self._next_alert_time = 0
  
          return alerts
docs: Reports alerts
          :return: the list of alerts