Example #1
0
def record_user_logged_in(sender, **kwargs):
    statsd.incr('user.logins')
Example #2
0
def record_user_changed_password(sender, **kwargs):
    statsd.incr('user.changed_password')
Example #3
0
def record_user_creation(sender, **kwargs):
    if kwargs['created']:
        statsd.incr('user.created')
Example #4
0
def record_user_logged_out(sender, **kwargs):
    statsd.incr('user.logouts')
Example #5
0
def record_habit_archived(sender, **kwargs):
    if sender.archived:
        counter = 'habit.archived'
    else:
        counter = 'habit.unarchived'
    statsd.incr(counter)
Example #6
0
def record_habit_created(sender, **kwargs):
    statsd.incr('habit.created')
Example #7
0
def record_habit_data_recorded(sender, **kwargs):
    statsd.incr('habit.recorded')
Example #8
0
def record_user_changed_password(sender, **kwargs):
    statsd.incr('user.changed_password')
Example #9
0
def record_user_logged_in(sender, **kwargs):
    statsd.incr('user.logins')
Example #10
0
def record_user_logged_out(sender, **kwargs):
    statsd.incr('user.logouts')
Example #11
0
def record_user_creation(sender, **kwargs):
    if kwargs['created']:
        statsd.incr('user.created')