def METHOD_NAME(self) -> None:
    while not self._stopped:
        if time() - self._last_poll >= self._stats_send_period_in_seconds:
            data_to_send = {}
            for attribute in self._config:
                try:
                    process = subprocess.METHOD_NAME(attribute['command'], stdout=subprocess.PIPE, stderr=subprocess.PIPE,
                                             encoding='utf-8', timeout=attribute['timeout'])
                except Exception as e:
                    self._log.warning("Statistic parameter %s raise the exception: %s",
                                      attribute['attributeOnGateway'], e)
                    continue
                value = process.stdout
                data_to_send[attribute['attributeOnGateway']] = value
            self._gateway.tb_client.client.send_attributes(data_to_send)
            if datetime.datetime.now() - self._last_streams_statistics_clear_time >= datetime.timedelta(days=1):
                self.clear_streams_statistics()
            self._gateway.tb_client.client.send_attributes(StatisticsService.DATA_STREAMS_STATISTICS)
            self._last_poll = time()
        sleep(.2)