stats

stat API reference

class mobyle.common.stats.stat.ServiceUsageStatistic(doc=None, gen_skel=True, collection=None, lang='en', fallback_lang='en', schema_2_restore=None)[source]

Service statistics

Collects usage info on which service is used after an other service

classmethod add(service, next_service)[source]

Add a new usage statistic

Parameters:
  • service (str) – name of the service
  • next_service (str) – name of the following service
class mobyle.common.stats.stat.Statistic(doc=None, gen_skel=True, collection=None, lang='en', fallback_lang='en', schema_2_restore=None)[source]

Base statistic to create time related statistics.

classmethod add(job, location)[source]

Add a new stat for the job (hourly/daily/monthly).

Parameters:
  • job (str) – job name e.g. service name
  • location (str) – IP address of the user