
    /j,	                         S SK JrJrJrJrJr   " S S5      r " S S\5      r " S S\5      r " S S	\5      r	 " S
 S\5      r
g)    )Dict
NamedTupleOptionalSequenceUnionc                       \ rS rSrSrS\S\SS4S jrS\4S jrS\4S	 jr	S\4S
 jr
S\S\4S jrS\S\4S jrSS S\4S jrSS S\4S jrSrg)	Timestamp   z"A nanosecond-resolution timestamp.secnsecreturnNc                     US:  d  US:  a  [        SU 35      eUS:  a  U* n[        U5      U l        [        U5      U l        g )Nr       eAz,Invalid value for nanoseconds in Timestamp: )
ValueErrorintr   r   )selfr   r   s      J/app/agent/.venv/lib/python3.13/site-packages/prometheus_client/samples.py__init__Timestamp.__init__   sF    !8ts{KD6RSS75DCT	    c                 :    U R                    SU R                  S 3$ )N.09dr   r   r   s    r   __str__Timestamp.__str__   s    ((1TYYsO,,r   c                 <    SU R                    SU R                   S3$ )Nz
Timestamp(z, )r   r   s    r   __repr__Timestamp.__repr__   s    DHH:R		{!44r   c                 ^    [        U R                  5      [        U R                  5      S-  -   $ )Nr   )floatr   r   r   s    r   	__float__Timestamp.__float__   s#    TXXtyy!1C!777r   otherc                     [        U[        5      =(       a9    U R                  UR                  :H  =(       a    U R                  UR                  :H  $ N)
isinstancer	   r   r   r   r&   s     r   __eq__Timestamp.__eq__   s6    %+aEII0Ea$))W\WaWaJaar   c                     X:X  + $ r(    r*   s     r   __ne__Timestamp.__ne__   s      r   c                     U R                   UR                   :X  a  U R                  UR                  :  $ U R                   UR                   :  $ r(   r   r*   s     r   __gt__Timestamp.__gt__   6    )-UYY)>tyy5::%XDHHuyyDXXr   c                     U R                   UR                   :X  a  U R                  UR                  :  $ U R                   UR                   :  $ r(   r   r*   s     r   __lt__Timestamp.__lt__!   r4   r   )r   r   )__name__
__module____qualname____firstlineno____doc__r#   r   strr   r    r$   objectboolr+   r/   r2   r6   __static_attributes__r.   r   r   r	   r	      s    ,#E # #4 #- -5# 585 8bF bt b!F !t !YK YD YYK YD Yr   r	   c                   *    \ rS rSr% \\S'   \\S'   Srg)
BucketSpan&   offsetlengthr.   N)r8   r9   r:   r;   r   __annotations__r@   r.   r   r   rB   rB   &   s    KKr   rB   c                   R    \ rS rSr% \\\4   \S'   \\S'   Sr\	\
\\4      \S'   Srg)Exemplar0   labelsvalueN	timestampr.   )r8   r9   r:   r;   r   r=   rF   r#   rL   r   r   r	   r@   r.   r   r   rH   rH   0   s.    cNL37IxeY./07r   rH   c                       \ rS rSr% \\S'   \\S'   \\S'   \\S'   \\S'   Sr\\	\
      \S'   Sr\\	\
      \S	'   Sr\\	\      \S
'   Sr\\	\      \S'   Sr\\	\      \S'   Srg)NativeHistogram7   count_value	sum_valueschemazero_threshold
zero_countN	pos_spans	neg_spans
pos_deltas
neg_deltasnh_exemplarsr.   )r8   r9   r:   r;   r#   rF   r   rU   r   r   rB   rV   rW   rX   rY   rH   r@   r.   r   r   rN   rN   7   s    K04Ix,-404Ix,-4*.J#'.*.J#'.15L(8H-.5r   rN   c                       \ rS rSr% \\S'   \\\4   \S'   \\S'   Sr\	\
\\4      \S'   Sr\	\   \S'   Sr\	\   \S'   S	rg)
SampleD   namerJ   rK   NrL   exemplarnative_histogramr.   )r8   r9   r:   r;   r=   rF   r   r#   rL   r   r   r	   r^   rH   r_   rN   r@   r.   r   r   r[   r[   D   sR    
IcNL37IxeY./07#'Hhx '26h/6r   r[   N)typingr   r   r   r   r   r	   rB   rH   rN   r[   r.   r   r   <module>ra      sH    > >Y YD 8z 8
6j 
67Z 7r   