예제 #1
0
 def get_account_metric_manager(self, account_key, store_name):
     # TODO: Move this to an API.
     prefix = get_account_metric_prefix(account_key, store_name)
     return self.vumi_api.get_metric_manager(prefix)
예제 #2
0
파일: app_worker.py 프로젝트: TouK/vumi-go
 def get_account_metric_manager(self, account_key, store_name):
     # TODO: Move this to an API.
     prefix = get_account_metric_prefix(account_key, store_name)
     return self.vumi_api.get_metric_manager(prefix)
예제 #3
0
 def handle_account_metric(self, target):
     prefix = get_account_metric_prefix(
         self.conv.user_account.key, target['store'])
     return get_metric_diamondash_target(
         prefix, target['name'], self.aggregator_from_target(target))