Example #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)
Example #2
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)
Example #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))