Package redis.clients.jedis.timeseries
Interface RedisTimeSeriesCommands
- All Known Subinterfaces:
RedisModuleCommands
- All Known Implementing Classes:
JedisCluster,JedisPooled,JedisSentineled,JedisSharding,UnifiedJedis
public interface RedisTimeSeriesCommands
-
Method Summary
Modifier and TypeMethodDescriptionlongTS.ADD key * valuelongTS.ADD key timestamp valuelongtsAdd(String key, long timestamp, double value, TSCreateParams createParams) TS.ADD key timestamp value [RETENTION retentionTime] [ENCODING [COMPRESSED|UNCOMPRESSED]] [CHUNK_SIZE size] [ON_DUPLICATE policy] [LABELS label value..]tsAlter(String key, TSAlterParams alterParams) TS.ALTER key [RETENTION retentionTime] [LABELS label value..]TS.CREATE keytsCreate(String key, TSCreateParams createParams) TS.CREATE key [RETENTION retentionTime] [ENCODING [UNCOMPRESSED|COMPRESSED]] [CHUNK_SIZE size] [DUPLICATE_POLICY policy] [LABELS label value..]tsCreateRule(String sourceKey, String destKey, AggregationType aggregationType, long timeBucket) TS.CREATERULE sourceKey destKey AGGREGATION aggregationType timeBuckettsCreateRule(String sourceKey, String destKey, AggregationType aggregationType, long bucketDuration, long alignTimestamp) TS.CREATERULE sourceKey destKey AGGREGATION aggregationType bucketDuration [alignTimestamp]longlonglongTS.DEL key fromTimestamp toTimestamptsDeleteRule(String sourceKey, String destKey) TS.DELETERULE sourceKey destKeyTS.GET keytsGet(String key, TSGetParams getParams) TS.GET key [LATEST]longlongtsInfoDebug(String key) TS.MADD key timestamp value [key timestamp value ...]tsMGet(TSMGetParams multiGetParams, String... filters) TS.MGET [LATEST] [ WITHLABELS | SELECTED_LABELS label...] FILTER filter...TS.MRANGE fromTimestamp toTimestamp FILTER filter...tsMRange(TSMRangeParams multiRangeParams) TS.MRANGE fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS ts...] [FILTER_BY_VALUE min max] [WITHLABELS | SELECTED_LABELS label...] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]] FILTER filter... [GROUPBY label REDUCE reducer]tsMRevRange(long fromTimestamp, long toTimestamp, String... filters) TS.MREVRANGE fromTimestamp toTimestamp FILTER filter...tsMRevRange(TSMRangeParams multiRangeParams) TS.MREVRANGE fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS TS...] [FILTER_BY_VALUE min max] [WITHLABELS | SELECTED_LABELS label...] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]] FILTER filter... [GROUPBY label REDUCE reducer]tsQueryIndex(String... filters) TS.QUERYINDEX filter...TS.RANGE key fromTimestamp toTimestamptsRange(String key, TSRangeParams rangeParams) TS.RANGE key fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS ts...] [FILTER_BY_VALUE min max] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]]tsRevRange(String key, long fromTimestamp, long toTimestamp) TS.REVRANGE key fromTimestamp toTimestamptsRevRange(String key, TSRangeParams rangeParams) TS.REVRANGE key fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS TS...] [FILTER_BY_VALUE min max] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]]
-
Method Details
-
tsCreate
TS.CREATE key- Parameters:
key-
-
tsCreate
TS.CREATE key [RETENTION retentionTime] [ENCODING [UNCOMPRESSED|COMPRESSED]] [CHUNK_SIZE size] [DUPLICATE_POLICY policy] [LABELS label value..]- Parameters:
key-createParams-
-
tsDel
TS.DEL key fromTimestamp toTimestamp- Parameters:
key-fromTimestamp-toTimestamp-- Returns:
- The number of samples that were removed
-
tsAlter
TS.ALTER key [RETENTION retentionTime] [LABELS label value..]- Parameters:
key-alterParams-- Returns:
- OK
-
tsAdd
TS.ADD key * value- Parameters:
key-value-- Returns:
- timestamp
-
tsAdd
TS.ADD key timestamp value- Parameters:
key-timestamp-value-- Returns:
- timestamp
-
tsAdd
TS.ADD key timestamp value [RETENTION retentionTime] [ENCODING [COMPRESSED|UNCOMPRESSED]] [CHUNK_SIZE size] [ON_DUPLICATE policy] [LABELS label value..]- Parameters:
key-timestamp-value-createParams-- Returns:
- timestamp
-
tsMAdd
TS.MADD key timestamp value [key timestamp value ...]- Parameters:
entries- key, timestamp, value- Returns:
- timestamps
-
tsIncrBy
-
tsIncrBy
-
tsDecrBy
-
tsDecrBy
-
tsRange
TS.RANGE key fromTimestamp toTimestamp- Parameters:
key-fromTimestamp-toTimestamp-- Returns:
- range elements
-
tsRange
TS.RANGE key fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS ts...] [FILTER_BY_VALUE min max] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]]- Parameters:
key-rangeParams-- Returns:
- range elements
-
tsRevRange
TS.REVRANGE key fromTimestamp toTimestamp- Parameters:
key-fromTimestamp-toTimestamp-- Returns:
- range elements
-
tsRevRange
TS.REVRANGE key fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS TS...] [FILTER_BY_VALUE min max] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]]- Parameters:
key-rangeParams-- Returns:
- range elements
-
tsMRange
TS.MRANGE fromTimestamp toTimestamp FILTER filter...- Parameters:
fromTimestamp-toTimestamp-filters-- Returns:
- multi range elements
-
tsMRange
TS.MRANGE fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS ts...] [FILTER_BY_VALUE min max] [WITHLABELS | SELECTED_LABELS label...] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]] FILTER filter... [GROUPBY label REDUCE reducer]- Parameters:
multiRangeParams-- Returns:
- multi range elements
-
tsMRevRange
TS.MREVRANGE fromTimestamp toTimestamp FILTER filter...- Parameters:
fromTimestamp-toTimestamp-filters-- Returns:
- multi range elements
-
tsMRevRange
TS.MREVRANGE fromTimestamp toTimestamp [LATEST] [FILTER_BY_TS TS...] [FILTER_BY_VALUE min max] [WITHLABELS | SELECTED_LABELS label...] [COUNT count] [[ALIGN value] AGGREGATION aggregator bucketDuration [BUCKETTIMESTAMP bt] [EMPTY]] FILTER filter... [GROUPBY label REDUCE reducer]- Parameters:
multiRangeParams-- Returns:
- multi range elements
-
tsGet
TS.GET key- Parameters:
key- the key- Returns:
- the element
-
tsGet
TS.GET key [LATEST]- Parameters:
key- the keygetParams- optional arguments- Returns:
- the element
-
tsMGet
TS.MGET [LATEST] [ WITHLABELS | SELECTED_LABELS label...] FILTER filter...- Parameters:
multiGetParams- optional argumentsfilters- secondary indexes- Returns:
- multi get elements
-
tsCreateRule
String tsCreateRule(String sourceKey, String destKey, AggregationType aggregationType, long timeBucket) TS.CREATERULE sourceKey destKey AGGREGATION aggregationType timeBucket- Parameters:
sourceKey-destKey-aggregationType-timeBucket-
-
tsCreateRule
String tsCreateRule(String sourceKey, String destKey, AggregationType aggregationType, long bucketDuration, long alignTimestamp) TS.CREATERULE sourceKey destKey AGGREGATION aggregationType bucketDuration [alignTimestamp]- Parameters:
sourceKey-destKey-aggregationType-bucketDuration-alignTimestamp-
-
tsDeleteRule
TS.DELETERULE sourceKey destKey- Parameters:
sourceKey-destKey-
-
tsQueryIndex
TS.QUERYINDEX filter...- Parameters:
filters-- Returns:
- list of timeseries keys
-
tsInfo
-
tsInfoDebug
-