Ë
    8ø»j‡  ã                  óJ   — d dl mZ d dlmZ d dlmZmZ e G d„ d«      «       Zy)é    )Úannotations)Údefaultdict)Ú	dataclassÚfieldc                  óZ   — e Zd ZU dZdZded<   	 dZded<   	  ed„ ¬«      Zded	<   	 dd
„Z	y)ÚClientStatisticsz8Statistics about API client usage and rate limit errors.r   ÚintÚcallsÚrequestsc                 ó    — t        t        «      S )N)r   r	   © ó    úO/var/www/html/GAP/venv/lib/python3.12/site-packages/apify_client/_statistics.pyú<lambda>zClientStatistics.<lambda>   s   € Ì[ÔY\ÓM]€ r   )Údefault_factoryzdefaultdict[int, int]Úrate_limit_errorsc                óX   — |dk  rt        d«      ‚| j                  |dz
  xx   dz  cc<   y)z~Add rate limit error for specific attempt.

        Args:
            attempt: The attempt number (1-based indexing).
        é   zAttempt must be greater than 0N)Ú
ValueErrorr   )ÚselfÚattempts     r   Úadd_rate_limit_errorz%ClientStatistics.add_rate_limit_error   s1   € ð �QŠ;ÜÐ=Ó>Ð>à×Ñ˜w¨™{Ó+¨qÑ0Ô+r   N)r   r	   ÚreturnÚNone)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   Ú__annotations__r   r   r   r   r   r   r   r   r      s8   … áBà€Eˆ3ƒNØ>à€HˆcÓØ@á/4ÑE]Ô/^ÐÐ,Ó^ØQô	1r   r   N)Ú
__future__r   Úcollectionsr   Údataclassesr   r   r   r   r   r   ú<module>r#      s'   ðÝ "å #ß (ð ÷1ð 1ó ñ1r   