def record_user_logged_in(sender, **kwargs): statsd.incr('user.logins')
def record_user_changed_password(sender, **kwargs): statsd.incr('user.changed_password')
def record_user_creation(sender, **kwargs): if kwargs['created']: statsd.incr('user.created')
def record_user_logged_out(sender, **kwargs): statsd.incr('user.logouts')
def record_habit_archived(sender, **kwargs): if sender.archived: counter = 'habit.archived' else: counter = 'habit.unarchived' statsd.incr(counter)
def record_habit_created(sender, **kwargs): statsd.incr('habit.created')
def record_habit_data_recorded(sender, **kwargs): statsd.incr('habit.recorded')