§
    ø¦¹bvn  ã                   óp   — d dl mZ dZdZdZdZdZdZdZd	Z	d
Z
dZdZdZdZdZdZdZdZ G d„ d¦  «        ZdS )é    )Ú	DataErrorúTS.ADDzTS.ALTERzTS.CREATERULEz	TS.CREATEz	TS.DECRBYzTS.DELETERULEzTS.DELzTS.GETz	TS.INCRBYzTS.INFOzTS.MADDzTS.MGETz	TS.MRANGEzTS.MREVRANGEzTS.QUERYINDEXzTS.RANGEzTS.REVRANGEc                   óö  — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	d„ Z
d	„ Zd
„ Zd„ Z	 	 	 	 	 	 	 d%d„Z	 	 	 	 	 	 	 d%d„Zd„ Z	 	 	 	 	 	 	 	 	 	 	 d&d„Z	 	 	 	 	 	 	 	 	 	 	 d&d„Zd„ Zd'd„Zd„ Zd„ Zed„ ¦   «         Zed(d„¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed„ ¦   «         Zed „ ¦   «         Z ed!„ ¦   «         Z!ed"„ ¦   «         Z"ed#„ ¦   «         Z#ed$„ ¦   «         Z$dS ))ÚTimeSeriesCommandszRedisTimeSeries Commands.c                 óò  — |                      dd¦  «        }|                      dd¦  «        }|                      di ¦  «        }|                      dd¦  «        }|                      dd¦  «        }|g}|                      ||¦  «         |                      ||¦  «         |                      ||¦  «         |                      |t
          |¦  «         |                      ||¦  «          | j        t
          g|¢R Ž S )af  
        Create a new time-series.

        Args:

        key:
            time-series key
        retention_msecs:
            Maximum age for samples compared to last event time (in milliseconds).
            If None or 0 is passed then  the series is not trimmed at all.
        uncompressed:
            Since RedisTimeSeries v1.2, both timestamps and values are
            compressed by default.
            Adding this flag will keep data in an uncompressed form.
            Compression not only saves
            memory but usually improve performance due to lower number
            of memory accesses.
        labels:
            Set of label-value pairs that represent metadata labels of the key.
        chunk_size:
            Each time-serie uses chunks of memory of fixed size for
            time series samples.
            You can alter the default TSDB chunk size by passing the
            chunk_size argument (in Bytes).
        duplicate_policy:
            Since RedisTimeSeries v1.4 you can specify the duplicate sample policy
            ( Configure what to do on duplicate sample. )
            Can be one of:
            - 'block': an error will occur for any out of order sample.
            - 'first': ignore the new value.
            - 'last': override with latest value.
            - 'min': only override if the value is lower than the existing value.
            - 'max': only override if the value is higher than the existing value.
            When this is not set, the server-wide default will be used.

        For more information: https://oss.redis.com/redistimeseries/commands/#tscreate
        Úretention_msecsNÚuncompressedFÚlabelsÚ
chunk_sizeÚduplicate_policy)ÚgetÚ_append_retentionÚ_append_uncompressedÚ_append_chunk_sizeÚ_append_duplicate_policyÚ
CREATE_CMDÚ_append_labelsÚexecute_command)	ÚselfÚkeyÚkwargsr   r	   r
   r   r   Úparamss	            úD/usr/lib/python3/dist-packages/redis/commands/timeseries/commands.pyÚcreatezTimeSeriesCommands.create   sú   € ðL !Ÿ*š*Ð%6¸Ñ=Ô=ˆØ—z’z .°%Ñ8Ô8ˆØ—’˜H bÑ)Ô)ˆØ—Z’Z ¨dÑ3Ô3ˆ
Ø!Ÿ:š:Ð&8¸$Ñ?Ô?ÐØ�ˆØ×Ò˜v Ñ7Ô7Ð7Ø×!Ò! &¨,Ñ7Ô7Ð7Ø×Ò ¨
Ñ3Ô3Ð3Ø×%Ò% f­jÐ:JÑKÔKÐKØ×Ò˜F FÑ+Ô+Ð+à#ˆtÔ#¥JÐ8°Ð8Ð8Ð8Ð8ó    c                 óB  — |                      dd¦  «        }|                      di ¦  «        }|                      dd¦  «        }|g}|                      ||¦  «         |                      |t          |¦  «         |                      ||¦  «          | j        t          g|¢R Ž S )zí
        Update the retention, labels of an existing key.
        For more information see

        The parameters are the same as TS.CREATE.

        For more information: https://oss.redis.com/redistimeseries/commands/#tsalter
        r   Nr
   r   )r   r   r   Ú	ALTER_CMDr   r   )r   r   r   r   r
   r   r   s          r   ÚalterzTimeSeriesCommands.alterM   s§   € ð !Ÿ*š*Ð%6¸Ñ=Ô=ˆØ—’˜H bÑ)Ô)ˆØ!Ÿ:š:Ð&8¸$Ñ?Ô?ÐØ�ˆØ×Ò˜v Ñ7Ô7Ð7Ø×%Ò% f­iÐ9IÑJÔJÐJØ×Ò˜F FÑ+Ô+Ð+à#ˆtÔ#¥IÐ7°Ð7Ð7Ð7Ð7r   c                 óö  — |                      dd¦  «        }|                      dd¦  «        }|                      di ¦  «        }|                      dd¦  «        }|                      dd¦  «        }	|||g}
|                      |
|¦  «         |                      |
|¦  «         |                      |
|¦  «         |                      |
t
          |	¦  «         |                      |
|¦  «          | j        t
          g|
¢R Ž S )a!  
        Append (or create and append) a new sample to the series.
        For more information see

        Args:

        key:
            time-series key
        timestamp:
            Timestamp of the sample. * can be used for automatic timestamp (using the system clock).
        value:
            Numeric data value of the sample
        retention_msecs:
            Maximum age for samples compared to last event time (in milliseconds).
            If None or 0 is passed then  the series is not trimmed at all.
        uncompressed:
            Since RedisTimeSeries v1.2, both timestamps and values are compressed by default.
            Adding this flag will keep data in an uncompressed form. Compression not only saves
            memory but usually improve performance due to lower number of memory accesses.
        labels:
            Set of label-value pairs that represent metadata labels of the key.
        chunk_size:
            Each time-serie uses chunks of memory of fixed size for time series samples.
            You can alter the default TSDB chunk size by passing the chunk_size argument (in Bytes).
        duplicate_policy:
            Since RedisTimeSeries v1.4 you can specify the duplicate sample policy
            (Configure what to do on duplicate sample).
            Can be one of:
            - 'block': an error will occur for any out of order sample.
            - 'first': ignore the new value.
            - 'last': override with latest value.
            - 'min': only override if the value is lower than the existing value.
            - 'max': only override if the value is higher than the existing value.
            When this is not set, the server-wide default will be used.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsadd
        r   Nr	   Fr
   r   r   )r   r   r   r   r   ÚADD_CMDr   r   )r   r   Ú	timestampÚvaluer   r   r	   r
   r   r   r   s              r   ÚaddzTimeSeriesCommands.add`   sÿ   € ðL !Ÿ*š*Ð%6¸Ñ=Ô=ˆØ—z’z .°%Ñ8Ô8ˆØ—’˜H bÑ)Ô)ˆØ—Z’Z ¨dÑ3Ô3ˆ
Ø!Ÿ:š:Ð&8¸$Ñ?Ô?ÐØ�y %Ð(ˆØ×Ò˜v Ñ7Ô7Ð7Ø×!Ò! &¨,Ñ7Ô7Ð7Ø×Ò ¨
Ñ3Ô3Ð3Ø×%Ò% f­gÐ7GÑHÔHÐHØ×Ò˜F FÑ+Ô+Ð+à#ˆtÔ#¥GÐ5¨fÐ5Ð5Ð5Ð5r   c                 ój   — g }|D ]}|D ]}|                      |¦  «         ŒŒ | j        t          g|¢R Ž S )aH  
        Append (or create and append) a new `value` to series
        `key` with `timestamp`.
        Expects a list of `tuples` as (`key`,`timestamp`, `value`).
        Return value is an array with timestamps of insertions.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsmadd
        )Úappendr   ÚMADD_CMD)r   Ú
ktv_tuplesr   ÚktvÚitems        r   ÚmaddzTimeSeriesCommands.madd”   s^   € ð ˆØð 	$ð 	$ˆCØð $ð $�Ø—’˜dÑ#Ô#Ð#Ð#ð$ð $ˆtÔ#¥HÐ6¨vÐ6Ð6Ð6Ð6r   c                 óè  — |                      dd¦  «        }|                      dd¦  «        }|                      dd¦  «        }|                      di ¦  «        }|                      dd¦  «        }||g}	|                      |	|¦  «         |                      |	|¦  «         |                      |	|¦  «         |                      |	|¦  «         |                      |	|¦  «          | j        t          g|	¢R Ž S )aN  
        Increment (or create an time-series and increment) the latest
        sample's of a series.
        This command can be used as a counter or gauge that automatically gets
        history as a time series.

        Args:

        key:
            time-series key
        value:
            Numeric data value of the sample
        timestamp:
            Timestamp of the sample. None can be used for automatic timestamp (using the system clock).
        retention_msecs:
            Maximum age for samples compared to last event time (in milliseconds).
            If None or 0 is passed then  the series is not trimmed at all.
        uncompressed:
            Since RedisTimeSeries v1.2, both timestamps and values are compressed by default.
            Adding this flag will keep data in an uncompressed form. Compression not only saves
            memory but usually improve performance due to lower number of memory accesses.
        labels:
            Set of label-value pairs that represent metadata labels of the key.
        chunk_size:
            Each time-series uses chunks of memory of fixed size for time series samples.
            You can alter the default TSDB chunk size by passing the chunk_size argument (in Bytes).

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsincrbytsdecrby
        r!   Nr   r	   Fr
   r   )r   Ú_append_timestampr   r   r   r   r   Ú
INCRBY_CMD©
r   r   r"   r   r!   r   r	   r
   r   r   s
             r   ÚincrbyzTimeSeriesCommands.incrby¤   sö   € ð< —J’J˜{¨DÑ1Ô1ˆ	Ø Ÿ*š*Ð%6¸Ñ=Ô=ˆØ—z’z .°%Ñ8Ô8ˆØ—’˜H bÑ)Ô)ˆØ—Z’Z ¨dÑ3Ô3ˆ
Ø�u�ˆØ×Ò˜v yÑ1Ô1Ð1Ø×Ò˜v Ñ7Ô7Ð7Ø×!Ò! &¨,Ñ7Ô7Ð7Ø×Ò ¨
Ñ3Ô3Ð3Ø×Ò˜F FÑ+Ô+Ð+à#ˆtÔ#¥JÐ8°Ð8Ð8Ð8Ð8r   c                 óè  — |                      dd¦  «        }|                      dd¦  «        }|                      dd¦  «        }|                      di ¦  «        }|                      dd¦  «        }||g}	|                      |	|¦  «         |                      |	|¦  «         |                      |	|¦  «         |                      |	|¦  «         |                      |	|¦  «          | j        t          g|	¢R Ž S )a~  
        Decrement (or create an time-series and decrement) the
        latest sample's of a series.
        This command can be used as a counter or gauge that
        automatically gets history as a time series.

        Args:

        key:
            time-series key
        value:
            Numeric data value of the sample
        timestamp:
            Timestamp of the sample. None can be used for automatic
            timestamp (using the system clock).
        retention_msecs:
            Maximum age for samples compared to last event time (in milliseconds).
            If None or 0 is passed then  the series is not trimmed at all.
        uncompressed:
            Since RedisTimeSeries v1.2, both timestamps and values are
            compressed by default.
            Adding this flag will keep data in an uncompressed form.
            Compression not only saves
            memory but usually improve performance due to lower number
            of memory accesses.
        labels:
            Set of label-value pairs that represent metadata labels of the key.
        chunk_size:
            Each time-series uses chunks of memory of fixed size for time series samples.
            You can alter the default TSDB chunk size by passing the chunk_size argument (in Bytes).

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsincrbytsdecrby
        r!   Nr   r	   Fr
   r   )r   r,   r   r   r   r   r   Ú
DECRBY_CMDr.   s
             r   ÚdecrbyzTimeSeriesCommands.decrbyÐ   s÷   € ðD —J’J˜{¨DÑ1Ô1ˆ	Ø Ÿ*š*Ð%6¸Ñ=Ô=ˆØ—z’z .°%Ñ8Ô8ˆØ—’˜H bÑ)Ô)ˆØ—Z’Z ¨dÑ3Ô3ˆ
Ø�u�ˆØ×Ò˜v yÑ1Ô1Ð1Ø×Ò˜v Ñ7Ô7Ð7Ø×!Ò! &¨,Ñ7Ô7Ð7Ø×Ò ¨
Ñ3Ô3Ð3Ø×Ò˜F FÑ+Ô+Ð+à#ˆtÔ#¥JÐ8°Ð8Ð8Ð8Ð8r   c                 ó<   — |                       t          |||¦  «        S )ao  
        Delete data points for a given timeseries and interval range
        in the form of start and end delete timestamps.
        The given timestamp interval is closed (inclusive), meaning start
        and end data points will also be deleted.
        Return the count for deleted items.
        For more information see

        Args:

        key:
            time-series key.
        from_time:
            Start timestamp for the range deletion.
        to_time:
            End timestamp for the range deletion.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsdel
        )r   ÚDEL_CMD)r   r   Ú	from_timeÚto_times       r   ÚdeletezTimeSeriesCommands.delete   s   € ð( ×#Ò#¥G¨S°)¸WÑEÔEÐEr   c                 ó^   — ||g}|                       |||¦  «          | j        t          g|¢R Ž S )a‚  
        Create a compaction rule from values added to `source_key` into `dest_key`.
        Aggregating for `bucket_size_msec` where an `aggregation_type` can be
        [`avg`, `sum`, `min`, `max`, `range`, `count`, `first`, `last`,
        `std.p`, `std.s`, `var.p`, `var.s`]

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tscreaterule
        )Ú_append_aggregationr   ÚCREATERULE_CMD)r   Ú
source_keyÚdest_keyÚaggregation_typeÚbucket_size_msecr   s         r   Ú
createrulezTimeSeriesCommands.createrule  sC   € ð ˜hÐ'ˆØ× Ò  Ð)9Ð;KÑLÔLÐLà#ˆtÔ#¥NÐ<°VÐ<Ð<Ð<Ð<r   c                 ó:   — |                       t          ||¦  «        S )z¯
        Delete a compaction rule.
        For more information see

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsdeleterule
        )r   ÚDELETERULE_CMD)r   r;   r<   s      r   Ú
deleterulezTimeSeriesCommands.deleterule$  s   € ð ×#Ò#¥N°JÀÑIÔIÐIr   c                 óð   — |||g}|                       ||¦  «         |                      |||	¦  «         |                      ||¦  «         |                      ||
¦  «         |                      |||¦  «         |S )z*Create TS.RANGE and TS.REVRANGE arguments.)Ú_append_filer_by_tsÚ_append_filer_by_valueÚ_append_countÚ_append_alignr9   ©r   r   r5   r6   Úcountr=   r>   Úfilter_by_tsÚfilter_by_min_valueÚfilter_by_max_valueÚalignr   s               r   Ú__range_paramsz!TimeSeriesCommands.__range_params-  s‹   € ð �y 'Ð*ˆØ× Ò  ¨Ñ6Ô6Ð6Ø×#Ò# FÐ,?ÐATÑUÔUÐUØ×Ò˜6 5Ñ)Ô)Ð)Ø×Ò˜6 5Ñ)Ô)Ð)Ø× Ò  Ð)9Ð;KÑLÔLÐLàˆr   Nr   c                 ód   — |                       |||||||||	|
¦
  «
        } | j        t          g|¢R Ž S )a  
        Query a range in forward direction for a specific time-serie.

        Args:

        key:
            Key name for timeseries.
        from_time:
            Start timestamp for the range query. - can be used to express
            the minimum possible timestamp (0).
        to_time:
            End timestamp for range query, + can be used to express the
            maximum possible timestamp.
        count:
            Optional maximum number of returned results.
        aggregation_type:
            Optional aggregation type. Can be one of
            [`avg`, `sum`, `min`, `max`, `range`, `count`,
            `first`, `last`, `std.p`, `std.s`, `var.p`, `var.s`]
        bucket_size_msec:
            Time bucket for aggregation in milliseconds.
        filter_by_ts:
            List of timestamps to filter the result by specific timestamps.
        filter_by_min_value:
            Filter result by minimum value (must mention also filter
            by_max_value).
        filter_by_max_value:
            Filter result by maximum value (must mention also filter
            by_min_value).
        align:
            Timestamp for alignment control for aggregation.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsrangetsrevrange
        )Ú!_TimeSeriesCommands__range_paramsr   Ú	RANGE_CMDrH   s               r   ÚrangezTimeSeriesCommands.rangeD  sU   € ð^ ×$Ò$ØØØØØØØØØØñ
ô 
ˆð $ˆtÔ#¥IÐ7°Ð7Ð7Ð7Ð7r   c                 ód   — |                       |||||||||	|
¦
  «
        } | j        t          g|¢R Ž S )a*  
        Query a range in reverse direction for a specific time-series.

        **Note**: This command is only available since RedisTimeSeries >= v1.4

        Args:

        key:
            Key name for timeseries.
        from_time:
            Start timestamp for the range query. - can be used to express the minimum possible timestamp (0).
        to_time:
            End timestamp for range query, + can be used to express the maximum possible timestamp.
        count:
            Optional maximum number of returned results.
        aggregation_type:
            Optional aggregation type. Can be one of [`avg`, `sum`, `min`, `max`, `range`, `count`,
            `first`, `last`, `std.p`, `std.s`, `var.p`, `var.s`]
        bucket_size_msec:
            Time bucket for aggregation in milliseconds.
        filter_by_ts:
            List of timestamps to filter the result by specific timestamps.
        filter_by_min_value:
            Filter result by minimum value (must mention also filter_by_max_value).
        filter_by_max_value:
            Filter result by maximum value (must mention also filter_by_min_value).
        align:
            Timestamp for alignment control for aggregation.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsrangetsrevrange
        )rP   r   ÚREVRANGE_CMDrH   s               r   ÚrevrangezTimeSeriesCommands.revrange�  sU   € ðX ×$Ò$ØØØØØØØØØØñ
ô 
ˆð $ˆtÔ#¥LÐ:°6Ð:Ð:Ð:Ð:r   c                 ó€  — ||g}|                       ||¦  «         |                      ||	|
¦  «         |                      ||¦  «         |                      ||¦  «         |                      |||¦  «         |                      |||¦  «         |                     dg¦  «         ||z  }|                      |||¦  «         |S )z,Create TS.MRANGE and TS.MREVRANGE arguments.ÚFILTER)rD   rE   rF   rG   r9   Ú_append_with_labelsÚextendÚ_append_groupby_reduce)r   r=   r>   rI   Úfiltersr5   r6   Úwith_labelsrJ   rK   rL   ÚgroupbyÚreduceÚselect_labelsrM   r   s                   r   Ú__mrange_paramsz"TimeSeriesCommands.__mrange_params»  s×   € ð$ ˜WÐ%ˆØ× Ò  ¨Ñ6Ô6Ð6Ø×#Ò# FÐ,?ÐATÑUÔUÐUØ×Ò˜6 5Ñ)Ô)Ð)Ø×Ò˜6 5Ñ)Ô)Ð)Ø× Ò  Ð)9Ð;KÑLÔLÐLØ× Ò  ¨°mÑDÔDÐDØ�Š�x�jÑ!Ô!Ð!Ø�'ÑˆØ×#Ò# F¨G°VÑ<Ô<Ð<Øˆr   Fc                 ól   — |                       |||||||||	|
||||¦  «        } | j        t          g|¢R Ž S )a�  
        Query a range across multiple time-series by filters in forward direction.

        Args:

        from_time:
            Start timestamp for the range query. `-` can be used to
            express the minimum possible timestamp (0).
        to_time:
            End timestamp for range query, `+` can be used to express
            the maximum possible timestamp.
        filters:
            filter to match the time-series labels.
        count:
            Optional maximum number of returned results.
        aggregation_type:
            Optional aggregation type. Can be one of
            [`avg`, `sum`, `min`, `max`, `range`, `count`,
            `first`, `last`, `std.p`, `std.s`, `var.p`, `var.s`]
        bucket_size_msec:
            Time bucket for aggregation in milliseconds.
        with_labels:
            Include in the reply the label-value pairs that represent metadata
            labels of the time-series.
            If this argument is not set, by default, an empty Array will be
            replied on the labels array position.
        filter_by_ts:
            List of timestamps to filter the result by specific timestamps.
        filter_by_min_value:
            Filter result by minimum value (must mention also
            filter_by_max_value).
        filter_by_max_value:
            Filter result by maximum value (must mention also
            filter_by_min_value).
        groupby:
            Grouping by fields the results (must mention also reduce).
        reduce:
            Applying reducer functions on each group. Can be one
            of [`sum`, `min`, `max`].
        select_labels:
            Include in the reply only a subset of the key-value
            pair labels of a series.
        align:
            Timestamp for alignment control for aggregation.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsmrangetsmrevrange
        )Ú"_TimeSeriesCommands__mrange_paramsr   Ú
MRANGE_CMD©r   r5   r6   r[   rI   r=   r>   r\   rJ   rK   rL   r]   r^   r_   rM   r   s                   r   ÚmrangezTimeSeriesCommands.mrangeÙ  sa   € ð@ ×%Ò%ØØØØØØØØØØØØØØñ
ô 
ˆð" $ˆtÔ#¥JÐ8°Ð8Ð8Ð8Ð8r   c                 ól   — |                       |||||||||	|
||||¦  «        } | j        t          g|¢R Ž S )a£  
        Query a range across multiple time-series by filters in reverse direction.

        Args:

        from_time:
            Start timestamp for the range query. - can be used to express
            the minimum possible timestamp (0).
        to_time:
            End timestamp for range query, + can be used to express
            the maximum possible timestamp.
        filters:
            Filter to match the time-series labels.
        count:
            Optional maximum number of returned results.
        aggregation_type:
            Optional aggregation type. Can be one of
            [`avg`, `sum`, `min`, `max`, `range`, `count`,
            `first`, `last`, `std.p`, `std.s`, `var.p`, `var.s`]
        bucket_size_msec:
            Time bucket for aggregation in milliseconds.
        with_labels:
            Include in the reply the label-value pairs that represent
            metadata labels
            of the time-series.
            If this argument is not set, by default, an empty Array
            will be replied
            on the labels array position.
        filter_by_ts:
            List of timestamps to filter the result by specific timestamps.
        filter_by_min_value:
            Filter result by minimum value (must mention also filter
            by_max_value).
        filter_by_max_value:
            Filter result by maximum value (must mention also filter
            by_min_value).
        groupby:
            Grouping by fields the results (must mention also reduce).
        reduce:
            Applying reducer functions on each group. Can be one
            of [`sum`, `min`, `max`].
        select_labels:
            Include in the reply only a subset of the key-value pair
            labels of a series.
        align:
            Timestamp for alignment control for aggregation.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsmrangetsmrevrange
        )rb   r   ÚMREVRANGE_CMDrd   s                   r   Ú	mrevrangezTimeSeriesCommands.mrevrange,  sa   € ðD ×%Ò%ØØØØØØØØØØØØØØñ
ô 
ˆð" $ˆtÔ#¥MÐ;°FÐ;Ð;Ð;Ð;r   c                 ó8   — |                       t          |¦  «        S )z‘# noqa
        Get the last sample of `key`.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsget
        )r   ÚGET_CMD©r   r   s     r   r   zTimeSeriesCommands.get�  s   € ð ×#Ò#¥G¨SÑ1Ô1Ð1r   c                 óŽ   — g }|                       ||¦  «         |                     dg¦  «         ||z  } | j        t          g|¢R Ž S )z©# noqa
        Get the last samples matching the specific `filter`.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsmget
        rW   )rX   rY   r   ÚMGET_CMD)r   r[   r\   r   s       r   ÚmgetzTimeSeriesCommands.mget‰  sX   € ð ˆØ× Ò  ¨Ñ5Ô5Ð5Ø�Š�x�jÑ!Ô!Ð!Ø�'ÑˆØ#ˆtÔ#¥HÐ6¨vÐ6Ð6Ð6Ð6r   c                 ó8   — |                       t          |¦  «        S )zŽ# noqa
        Get information of `key`.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsinfo
        )r   ÚINFO_CMDrk   s     r   ÚinfozTimeSeriesCommands.info•  s   € ð ×#Ò#¥H¨cÑ2Ô2Ð2r   c                 ó(   —  | j         t          g|¢R Ž S )z§# noqa
        Get all the keys matching the `filter` list.

        For more information: https://oss.redis.com/redistimeseries/master/commands/#tsqueryindex
        )r   ÚQUERYINDEX_CMD)r   r[   s     r   Ú
queryindexzTimeSeriesCommands.queryindex�  s   € ð $ˆtÔ#¥NÐ=°WÐ=Ð=Ð=Ð=r   c                 ó:   — |r|                       dg¦  «         dS dS )z"Append UNCOMPRESSED tag to params.ÚUNCOMPRESSEDN©rY   )r   r	   s     r   r   z'TimeSeriesCommands._append_uncompressed¥  s1   € ð ð 	,Ø�MŠM˜>Ð*Ñ+Ô+Ð+Ð+Ð+ð	,ð 	,r   c                 ó”   — |r|rt          d¦  «        ‚|r|                      dg¦  «         |r|                      dg|¢¦  «         dS dS )z!Append labels behavior to params.z:with_labels and select_labels cannot be provided together.Ú
WITHLABELSÚSELECTED_LABELSN)r   rY   )r   r\   r_   s      r   rX   z&TimeSeriesCommands._append_with_labels«  sy   € ð ð 	˜=ð 	ÝØLñô ð ð ð 	*Ø�MŠM˜<˜.Ñ)Ô)Ð)Øð 	?Ø�MŠMÐ,Ð=¨}Ð=Ñ>Ô>Ð>Ð>Ð>ð	?ð 	?r   c                 ól   — |�/|�/|                       d|d|                     ¦   «         g¦  «         dS dS dS )z)Append GROUPBY REDUCE property to params.NÚGROUPBYÚREDUCE)rY   Úupper)r   r]   r^   s      r   rZ   z)TimeSeriesCommands._append_groupby_reduce¸  sF   € ð Ð 6Ð#5Ø�MŠM˜9 g¨x¸¿º¹¼ÐHÑIÔIÐIÐIÐIð ÐÐ#5Ð#5r   c                 ó<   — |�|                       d|g¦  «         dS dS )z$Append RETENTION property to params.NÚ	RETENTIONrw   )r   Ú	retentions     r   r   z$TimeSeriesCommands._append_retention¾  ó/   € ð Ð Ø�MŠM˜;¨	Ð2Ñ3Ô3Ð3Ð3Ð3ð !Ð r   c                 óš   — |rF|                       d¦  «         |                     ¦   «         D ]\  }}|                      ||g¦  «         ŒdS dS )z!Append LABELS property to params.ÚLABELSN)r%   ÚitemsrY   )r   r
   ÚkÚvs       r   r   z!TimeSeriesCommands._append_labelsÄ  sf   € ð ð 	&Ø�MŠM˜(Ñ#Ô#Ð#ØŸš™œð &ð &‘��1Ø—’˜q !˜fÑ%Ô%Ð%Ð%ð	&ð 	&ð&ð &r   c                 ó<   — |�|                       d|g¦  «         dS dS )z Append COUNT property to params.NÚCOUNTrw   )r   rI   s     r   rF   z TimeSeriesCommands._append_countÌ  ó/   € ð ÐØ�MŠM˜7 EÐ*Ñ+Ô+Ð+Ð+Ð+ð Ðr   c                 ó<   — |�|                       d|g¦  «         dS dS )z$Append TIMESTAMP property to params.NÚ	TIMESTAMPrw   )r   r!   s     r   r,   z$TimeSeriesCommands._append_timestampÒ  r‚   r   c                 ó<   — |�|                       d|g¦  «         dS dS )z Append ALIGN property to params.NÚALIGNrw   )r   rM   s     r   rG   z TimeSeriesCommands._append_alignØ  rŠ   r   c                 óf   — |�.|                       d¦  «         |                      ||g¦  «         dS dS )z&Append AGGREGATION property to params.NÚAGGREGATION)r%   rY   )r   r=   r>   s      r   r9   z&TimeSeriesCommands._append_aggregationÞ  sC   € ð Ð'Ø�MŠM˜-Ñ(Ô(Ð(Ø�MŠMÐ+Ð-=Ð>Ñ?Ô?Ð?Ð?Ð?ð (Ð'r   c                 ó<   — |�|                       d|g¦  «         dS dS )z%Append CHUNK_SIZE property to params.NÚ
CHUNK_SIZErw   )r   r   s     r   r   z%TimeSeriesCommands._append_chunk_sizeå  s/   € ð Ð!Ø�MŠM˜<¨Ð4Ñ5Ô5Ð5Ð5Ð5ð "Ð!r   c                 óz   — |�8|dk    r|                       d|g¦  «         dS |                       d|g¦  «         dS dS )z^Append DUPLICATE_POLICY property to params on CREATE
        and ON_DUPLICATE on ADD.
        Nr   ÚON_DUPLICATEÚDUPLICATE_POLICYrw   )r   Úcommandr   s      r   r   z+TimeSeriesCommands._append_duplicate_policyë  sZ   € ð
 Ð'Ø˜(Ò"Ð"Ø—’˜~Ð/?Ð@ÑAÔAÐAÐAÐAà—’Ð1Ð3CÐDÑEÔEÐEÐEÐEð	 (Ð'r   c                 ó>   — |�|                       dg|¢¦  «         dS dS )z'Append FILTER_BY_TS property to params.NÚFILTER_BY_TSrw   )r   Úts_lists     r   rD   z&TimeSeriesCommands._append_filer_by_tsö  s2   € ð ÐØ�MŠM˜>Ð4¨GÐ4Ñ5Ô5Ð5Ð5Ð5ð Ðr   c                 óF   — |�|�|                       d||g¦  «         dS dS dS )z*Append FILTER_BY_VALUE property to params.NÚFILTER_BY_VALUErw   )r   Ú	min_valueÚ	max_values      r   rE   z)TimeSeriesCommands._append_filer_by_valueü  s=   € ð Ð  YÐ%:Ø�MŠMÐ,¨i¸ÐCÑDÔDÐDÐDÐDð !Ð Ð%:Ð%:r   )NNr   NNNN)NNr   FNNNNNNN)F)N)%Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r#   r*   r/   r2   r7   r?   rB   rP   rR   rU   rb   re   rh   r   rn   rq   rt   Ústaticmethodr   rX   rZ   r   r   rF   r,   rG   r9   r   r   rD   rE   © r   r   r   r      sM  € € € € € Ø#Ð#ð29ð 29ð 29ðh8ð 8ð 8ð&26ð 26ð 26ðh7ð 7ð 7ð *9ð *9ð *9ðX.9ð .9ð .9ð`Fð Fð Fð,=ð =ð =ðJð Jð Jðð ð ð8 ØØØØ Ø Øð;8ð ;8ð ;8ð ;8ðD ØØØØ Ø Øð8;ð 8;ð 8;ð 8;ðtð ð ðF ØØØØØ Ø ØØØØðQ9ð Q9ð Q9ð Q9ðp ØØØØØ Ø ØØØØðS<ð S<ð S<ð S<ðj2ð 2ð 2ð
7ð 
7ð 
7ð 
7ð3ð 3ð 3ð>ð >ð >ð ð,ð ,ñ „\ð,ð
 ð
?ð 
?ð 
?ñ „\ð
?ð ðJð Jñ „\ðJð
 ð4ð 4ñ „\ð4ð
 ð&ð &ñ „\ð&ð ð,ð ,ñ „\ð,ð
 ð4ð 4ñ „\ð4ð
 ð,ð ,ñ „\ð,ð
 ð@ð @ñ „\ð@ð ð6ð 6ñ „\ð6ð
 ðFð Fñ „\ðFð ð6ð 6ñ „\ð6ð
 ðEð Eñ „\ðEð Eð Er   r   N)Úredis.exceptionsr   r    r   r:   r   r1   rA   r4   rj   r-   rp   r&   rm   rc   rg   rs   rQ   rT   r   r£   r   r   ú<module>r¥      s²   ðØ &Ð &Ð &Ð &Ð &Ð &à
€Ø€	Ø €Ø€
Ø€
Ø €Ø
€Ø
€Ø€
Ø€Ø€Ø€Ø€
Ø€Ø €Ø€	Ø€ðjEð jEð jEð jEð jEñ jEô jEð jEð jEð jEr   