コード例 #1
0
ファイル: monitoring.py プロジェクト: rboulton/behabitual
def record_user_logged_in(sender, **kwargs):
    statsd.incr('user.logins')
コード例 #2
0
ファイル: monitoring.py プロジェクト: rboulton/behabitual
def record_user_changed_password(sender, **kwargs):
    statsd.incr('user.changed_password')
コード例 #3
0
ファイル: monitoring.py プロジェクト: rboulton/behabitual
def record_user_creation(sender, **kwargs):
    if kwargs['created']:
        statsd.incr('user.created')
コード例 #4
0
ファイル: monitoring.py プロジェクト: rboulton/behabitual
def record_user_logged_out(sender, **kwargs):
    statsd.incr('user.logouts')
コード例 #5
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_habit_archived(sender, **kwargs):
    if sender.archived:
        counter = 'habit.archived'
    else:
        counter = 'habit.unarchived'
    statsd.incr(counter)
コード例 #6
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_habit_created(sender, **kwargs):
    statsd.incr('habit.created')
コード例 #7
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_habit_data_recorded(sender, **kwargs):
    statsd.incr('habit.recorded')
コード例 #8
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_user_changed_password(sender, **kwargs):
    statsd.incr('user.changed_password')
コード例 #9
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_user_logged_in(sender, **kwargs):
    statsd.incr('user.logins')
コード例 #10
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_user_logged_out(sender, **kwargs):
    statsd.incr('user.logouts')
コード例 #11
0
ファイル: monitoring.py プロジェクト: devfort/behabitual
def record_user_creation(sender, **kwargs):
    if kwargs['created']:
        statsd.incr('user.created')