This commit is contained in:
parent
f4a1cee509
commit
5f0d211a9b
@ -16,6 +16,7 @@ class user_info_struct:
|
||||
def metric_wrap(chatID:int, userName: str, length: int, attemptsCount: int):
|
||||
"""Pass here chat ID, username, pipisa length and attempts count to wrap them into metric."""
|
||||
|
||||
global METRICS_INITIALIZED
|
||||
if not METRICS_INITIALIZED:
|
||||
pipisa_length_metric = Gauge('user_length_total', 'Pipisa length', labelnames=['ChatID', 'Username'])
|
||||
user_attempt_metric = Gauge('user_attempts_total', 'Attempts count', labelnames=['ChatID', 'Username'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user