ó
    ùÞ j—  ã                   ó0   • S SK Jr  SSKJr   " S S5      rg)é   )Ú	nativestré   )Úlist_to_dictc                   óZ   • \ rS rSrSr/ r/ rSrSrSr	Sr
SrSrSrSrSrSrS rS rS rSrg)ÚTSInfoé   zŒ
Hold information and statistics on the time-series.
Can be created using ``tsinfo`` command
https://redis.io/docs/latest/commands/ts.info/
Nc                 ó  • [        [        [        [        USSS2   5      USSS2   5      5      nUR	                  S5      U l        UR	                  S5      U l        UR	                  S5      U l        UR	                  S5      U l        UR	                  S5      U l	        [        UR	                  S	5      5      U l        UR	                  S
5      U l        UR	                  S5      U l        UR	                  S5      U l        SU;   a  US   U l        U R                  S-  U l        SU;   a
  US   U l        SU;   aJ  US   U l        [%        U R"                  [&        5      (       a   U R"                  R)                  5       U l        ggg)a  
Hold information and statistics on the time-series.

The supported params that can be passed as args:

rules:
    A list of compaction rules of the time series.
sourceKey:
    Key name for source time series in case the current series
    is a target of a rule.
chunkCount:
    Number of Memory Chunks used for the time series.
memoryUsage:
    Total number of bytes allocated for the time series.
totalSamples:
    Total number of samples in the time series.
labels:
    A list of label-value pairs that represent the metadata
    labels of the time series.
retentionTime:
    Retention time, in milliseconds, for the time series.
lastTimestamp:
    Last timestamp present in the time series.
firstTimestamp:
    First timestamp present in the time series.
maxSamplesPerChunk:
    Deprecated.
chunkSize:
    Amount of memory, in bytes, allocated for data.
duplicatePolicy:
    Policy that will define handling of duplicate samples.

Can read more about on
https://redis.io/docs/latest/develop/data-types/timeseries/configuration/#duplicate_policy
Nr   r   ÚrulesÚ	sourceKeyÚ
chunkCountÚmemoryUsageÚtotalSamplesÚlabelsÚretentionTimeÚlastTimestampÚfirstTimestampÚmaxSamplesPerChunké   Ú	chunkSizeÚduplicatePolicy)ÚdictÚzipÚmapr   Úgetr
   Ú
source_keyÚchunk_countÚmemory_usageÚtotal_samplesr   r   Úretention_msecsÚlast_timestampÚfirst_timestampÚmax_samples_per_chunkÚ
chunk_sizeÚduplicate_policyÚ
isinstanceÚbytesÚdecode)ÚselfÚargsÚresponses      ÚX/var/www/html/gaurav/venv/lib/python3.13/site-packages/redis/commands/timeseries/info.pyÚ__init__ÚTSInfo.__init__   sV  € ôH œœC¤	¨4±°!°©9Ó5°t¸A¸D¸q¸D±zÓBÓCˆØ—\‘\ 'Ó*ˆŒ
Ø"Ÿ,™, {Ó3ˆŒØ#Ÿ<™<¨Ó5ˆÔØ$ŸL™L¨Ó7ˆÔØ%Ÿ\™\¨.Ó9ˆÔÜ" 8§<¡<°Ó#9Ó:ˆŒØ'Ÿ|™|¨OÓ<ˆÔØ&Ÿl™l¨?Ó;ˆÔØ'Ÿ|™|Ð,<Ó=ˆÔØ 8Ó+Ø)1Ð2FÑ)GˆDÔ&à×*Ñ*¨RÑ/ð ŒOð ˜(Ó"Ø& {Ñ3ˆDŒOØ Ó(Ø$,Ð->Ñ$?ˆDÔ!Ü˜$×/Ñ/´×7Ñ7Ø(,×(=Ñ(=×(DÑ(DÓ(F�Õ%ð 8ð )ó    c                 óF   •  U R                  U5      $ ! [         a     g f = f©N)Ú__getitem__ÚAttributeError©r(   Úitems     r+   r   Ú
TSInfo.getT   s*   € ð	Ø×#Ñ# DÓ)Ð)øÜó 	Ùð	ús   ‚ “
 Ÿ c                 ó   • [        X5      $ r0   )Úgetattrr3   s     r+   r1   ÚTSInfo.__getitem__Z   s   € Ü�tÓ"Ð"r.   )r   r#   r$   r!   r   r    r"   r   r   r
   r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r
   r   r   r   r   r   r   Úlast_time_stampÚfirst_time_stampr"   r#   r$   r,   r   r1   Ú__static_attributes__© r.   r+   r   r      sY   † ñð €EØ€FØ€IØ€KØ€LØ€MØ€OØ€OØÐà ÐØ€JØÐò8Gòtõ#r.   r   N)Úhelpersr   Úutilsr   r   rA   r.   r+   Ú<module>rD      s   ðÝ Ý ÷V#ò V#r.   