Example #1
0
 def _log_service_process(self, event):
     if event is 'success':
         MetricsDataGatherer.add('success', True)
         MetricsDataGatherer.add('successful_rows', 1)
     elif event is 'empty':
         MetricsDataGatherer.add('success', True)
         MetricsDataGatherer.add('successful_rows', 1)
         MetricsDataGatherer.add('empty_rows', 1)
     elif event is 'fail':
         MetricsDataGatherer.add('success', False)
         MetricsDataGatherer.add('failed_rows', 1)
Example #2
0
 def _log_service_process(self, event):
     if event is 'success':
         MetricsDataGatherer.add('success', True)
         MetricsDataGatherer.add('successful_rows', 1)
     elif event is 'empty':
         MetricsDataGatherer.add('success', True)
         MetricsDataGatherer.add('successful_rows', 1)
         MetricsDataGatherer.add('empty_rows', 1)
     elif event is 'fail':
         MetricsDataGatherer.add('success', False)
         MetricsDataGatherer.add('failed_rows', 1)
Example #3
0
 def increment_isolines_service_use(self, amount=1):
     self._user_service.increment_service_use(
         self._user_service_config.service_type,
         "isolines_generated",
         amount=amount)
     MetricsDataGatherer.add('isolines_generated', amount)
Example #4
0
 def increment_isolines_service_use(self, amount=1):
     self._user_service.increment_service_use(
         self._user_service_config.service_type, "isolines_generated",
         amount=amount)
     MetricsDataGatherer.add('isolines_generated', amount)