+
     h  c                   s2    ^RI Ht ^RIHt  ! R R4      tR# )   )	nativestr)list_to_dictc                   sf   a  ] tR t^t o Rt. t. tRtRtRt	Rt
RtRtRtRtRtRtR tR tR tRtV tR# )TSInfoz
Hold information and statistics on the time-series.
Can be created using ``tsinfo`` command
https://redis.io/docs/latest/commands/ts.info/
Nc           	     s:   \        \        \        \        VR,          4      VR,          4      4      pVP	                  R4      V n        VP	                  R4      V n        VP	                  R4      V n        VP	                  R4      V n        VP	                  R4      V n	        \        VP	                  R4      4      V n        VP	                  R	4      V n        VP	                  R
4      V n        VP	                  R4      V n        RV9   d'   VR,          V n        V P                  ^,          V n        RV9   d   VR,          V n        RV9   dR   VR,          V n        \%        V P"                  \&        4      '       d"   V P"                  P)                  4       V n        R# R# R# )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
:NNr    :i   Nr    rules	sourceKeyZ
chunkCountZmemoryUsageZtotalSampleslabelsZretentionTimeZlastTimestampZfirstTimestampZmaxSamplesPerChunkZ	chunkSizeZduplicatePolicyN)ZdictZzipZmapr   getr   
source_keychunk_countmemory_usagetotal_samplesr   r   retention_msecslast_timestampfirst_timestampmax_samples_per_chunk
chunk_sizeduplicate_policyZ
isinstanceZbytesZdecode)selfZargsZresponses   && C/usr/lib/python3.14/site-packages/redis/commands/timeseries/info.py__init__ZTSInfo.__init__   sL   H C	495tDzBC\\'*
",,{3#<<5$LL7%\\.9"8<<#9:'||O<&ll?;'||,<=8+)12F)GD&**R/ O ("&{3DO($,->$?D!$//77(,(=(=(D(D(F% 8 )    c                sJ     V P                  V4      #   \         d     R # i ; iN)__getitem__ZAttributeErrorr   Zitem   &&r   r   Z
TSInfo.getT   s*    	##D)) 		s    ""c                s    \        W4      # r   )Zgetattrr   r   r   r   ZTSInfo.__getitem__Z   s    t""r   )r	   r   r   r   r   r   r   r
   r   r   r   r   )Z__name__Z
__module__Z__qualname__Z__firstlineno__Z__doc__r   r   r   r	   r
   r   r   Zlast_time_stampZfirst_time_stampr   r   r   r   r   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      sa      EFIKLMOO J8Gt# #r   r   N)Zhelpersr   Zutilsr   r   ) r   r   <module>r      s     V# V#r   