Пример #1
0
def stat_uninstall(bin_path):
    agent_datasource = AgentDatasource(config_storage=ConfigStorage(alternate_path=f"{bin_path}/configPlugins.json"))
    report_enable = agent_datasource.get_report_enable()
    stats_tracker = StatsTracker(sync=True, anonymizer=Anonymizer(alternate_path=f"{bin_path}/anonymize.json"))
    stats_tracker.report_enable = report_enable
    login = getpass.getuser()
    stats_tracker.log_uninstall(login)
    print("record uninstall")
Пример #2
0
 def start(self, agent_datasource: AgentDatasource):
     logger.info(f"-Start tracker-")
     self.report_enable = agent_datasource.get_report_enable()
     if self.report_enable:
         self.consumer_stats = self.pool.map_async(self.consumer,
                                                   (self.queue, ))