code: def add(self, elt):
          
          if isinstance(elt, Brok):
              # For brok, we tag the brok with our instance_id
              elt.instance_id = self.instance_id
              if elt.type == 'monitoring_log':
                  # The brok is a monitoring event
                  with self.events_lock:
                      self.events.append(elt)
                  statsmgr.counter('events', 1)
              else:
                  with self.broks_lock:
                      self.broks.append(elt)
              statsmgr.counter('broks.added', 1)
          elif isinstance(elt, ExternalCommand):
              logger.debug("Queuing an external command '%s'", str(elt.__dict__))
              with self.external_commands_lock:
                  self.external_commands.append(elt)
                  statsmgr.counter('external-commands.added', 1)
          else:  # pragma: no cover, simple dev alerting
              logger.error('Do not manage object type %s (%s)', type(elt), elt)
docs: Generic function to add objects to the daemon internal lists.
          Manage Broks, External commands
  
          :param elt: objects to add
          :type elt: alignak.AlignakObject
          :return: None