code: def update(self, stats):
          
          if not self.export_enable:
              return False
  
          # Get all the stats & limits
          all_stats = stats.getAllExportsAsDict(plugin_list=self.plugins_to_export())
          all_limits = stats.getAllLimitsAsDict(plugin_list=self.plugins_to_export())
  
          # Loop over plugins to export
          for plugin in self.plugins_to_export():
              if isinstance(all_stats[plugin], dict):
                  all_stats[plugin].update(all_limits[plugin])
              elif isinstance(all_stats[plugin], list):
                  # TypeError: string indices must be integers (Network plugin) #1054
                  for i in all_stats[plugin]:
                      i.update(all_limits[plugin])
              else:
                  continue
              export_names, export_values = self.__build_export(all_stats[plugin])
              self.export(plugin, export_names, export_values)
  
          return True
docs: Update stats to a server.
  
          The method builds two lists: names and values
          and calls the export method to export the stats.
  
          Note: this class can be overwrite (for example in CSV and Graph).