be be be
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
hogweed1 2025-05-12 21:30:41 +10:00
parent f4a1cee509
commit 5f0d211a9b

View File

@ -16,6 +16,7 @@ class user_info_struct:
def metric_wrap(chatID:int, userName: str, length: int, attemptsCount: int): 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.""" """Pass here chat ID, username, pipisa length and attempts count to wrap them into metric."""
global METRICS_INITIALIZED
if not METRICS_INITIALIZED: if not METRICS_INITIALIZED:
pipisa_length_metric = Gauge('user_length_total', 'Pipisa length', labelnames=['ChatID', 'Username']) pipisa_length_metric = Gauge('user_length_total', 'Pipisa length', labelnames=['ChatID', 'Username'])
user_attempt_metric = Gauge('user_attempts_total', 'Attempts count', labelnames=['ChatID', 'Username']) user_attempt_metric = Gauge('user_attempts_total', 'Attempts count', labelnames=['ChatID', 'Username'])