docs: def add(self, event_state, event_type, event_value,
              proc_list=None, proc_desc="", peak_time=6):
          """Add a new item to the logs list.
  
          If 'event' is a 'new one', add it at the beginning of the list.
          If 'event' is not a 'new one', update the list .
          If event < peak_time then the alert is not set.
          """
          proc_list = proc_list or glances_processes.getlist()
  
          # Add or update the log
          event_index = self.__event_exist(event_type)
          if event_index < 0:
              # Event did not exist, add it
              self._create_event(event_state, event_type, event_value,
                                 proc_list, proc_desc, peak_time)
          else:
              # Event exist, update it
              self._update_event(event_index, event_state, event_type, event_value,
                                 proc_list, proc_desc, peak_time)
  
          return self.len()