Modulehedis-0.16.4Haskell2010
Database.Redis.ManualCommands.Ts
- 19 types
- 49 values
- Packagehedis-0.16.4
- Exports68
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceTs.hs
Instances3Eq, Show, RedisArg
Eq TsEncodingDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsEncodingDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsRedisArg TsEncodingDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Instances3Eq, Show, RedisArg
Eq TsDuplicatePolicyDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsDuplicatePolicyDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsRedisArg TsDuplicatePolicyDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsCreateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsCreateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsAlterOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsAlterOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsIncrByOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsIncrByOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances3Eq, Show, RedisArg
Eq TsAggregatorDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsAggregatorDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsRedisArg TsAggregatorDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances3Eq, Show, RedisArg
Eq TsAggregatorsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsAggregatorsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsRedisArg TsAggregatorsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Instances3Eq, Show, RedisArg
Eq TsBucketTimestampDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsBucketTimestampDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsRedisArg TsBucketTimestampDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Instances2Eq, Show
Eq TsAggregationOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsAggregationOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsRangeOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsRangeOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsLabelSelectionDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsLabelSelectionDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsGroupByReduceDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsGroupByReduceDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Constructors
Instances2Eq, Show
Eq TsMGetOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsMGetOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Instances2Eq, Show
Eq TsMRangeOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsMRangeOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
Instances2Eq, Show
Eq TsInfoOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.TsShow TsInfoOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommands.Ts
tsAdd :: RedisCtx m f=> ByteStringTime series key.
-> ByteStringTimestamp, or
*for the current server time.-> DoubleSample value.
-> m (f Integer)
Appends a sample to a time series (https://redis.io/commands/ts.add).
O(M) when M is the number of compaction rules, or O(1) with no compaction
Since RedisTimeSeries 1.0.0
tsAddOpts :: RedisCtx m f=> ByteStringTime series key.
-> ByteStringTimestamp, or
*for the current server time.-> DoubleSample value.
-> TsAddOptsInsertion options.
-> m (f Integer)
Appends a sample to a time series (https://redis.io/commands/ts.add).
O(M) when M is the number of compaction rules, or O(1) with no compaction
Since RedisTimeSeries 1.0.0
tsAlter :: RedisCtx m f=> ByteStringTime series key.
-> TsAlterOptsAlteration options.
-> m (f Status)
Update the retention, chunk size, duplicate policy, and labels of an existing time series (https://redis.io/commands/ts.alter).
O(N) where N is the number of labels requested to update
Since RedisTimeSeries 1.0.0
tsCreateOpts :: RedisCtx m f=> ByteStringTime series key.
-> TsCreateOptsCreation options.
-> m (f Status)
tsCreaterule :: RedisCtx m f=> ByteStringSource time series key.
-> ByteStringDestination time series key.
-> TsAggregatorAggregation function.
-> IntegerBucket duration in milliseconds.
-> m (f Status)
tsCreateruleAlign :: RedisCtx m f=> ByteStringSource time series key.
-> ByteStringDestination time series key.
-> TsAggregatorAggregation function.
-> IntegerBucket duration in milliseconds.
-> IntegerAlignment timestamp in milliseconds.
-> m (f Status)
Create a compaction rule with an aligned bucket timestamp (https://redis.io/commands/ts.createrule).
O(1)
Since RedisTimeSeries 1.8.0
tsDecrby :: RedisCtx m f=> ByteStringTime series key.
-> DoubleDecrement amount.
-> m (f Integer)
Decrease the value of the sample with the maximum timestamp, or create a new sample with a decremented value (https://redis.io/commands/ts.decrby).
O(M) when M is the number of compaction rules, or O(1) with no compaction
Since RedisTimeSeries 1.0.0
tsDecrbyOpts :: RedisCtx m f=> ByteStringTime series key.
-> DoubleDecrement amount.
-> TsIncrByOptsUpdate options.
-> m (f Integer)
Decrease the value of the sample with the maximum timestamp, or create a new sample with a decremented value (https://redis.io/commands/ts.decrby).
O(M) when M is the number of compaction rules, or O(1) with no compaction
Since RedisTimeSeries 1.0.0
tsDel :: RedisCtx m f=> ByteStringTime series key.
-> IntegerLower timestamp bound.
-> IntegerUpper timestamp bound.
-> m (f Integer)
Delete all samples between two timestamps for a given time series (https://redis.io/commands/ts.del).
O(N) where N is the number of data points that will be removed
Since RedisTimeSeries 1.6.0
tsDelrule :: RedisCtx m f=> ByteStringSource time series key.
-> ByteStringDestination time series key.
-> m (f Status)
Get the sample with the highest timestamp from a given time series (https://redis.io/commands/ts.get).
O(1)
Since RedisTimeSeries 1.0.0
tsGetOpts :: RedisCtx m f=> ByteStringTime series key.
-> TsGetOptsRead options.
-> m (f (Maybe TsSample))
Get the sample with the highest timestamp from a given time series (https://redis.io/commands/ts.get).
O(1)
Since RedisTimeSeries 1.0.0
tsIncrby :: RedisCtx m f=> ByteStringTime series key.
-> DoubleIncrement amount.
-> m (f Integer)
Increase the value of the sample with the maximum timestamp, or create a new sample with an incremented value (https://redis.io/commands/ts.incrby).
O(M) when M is the number of compaction rules, or O(1) with no compaction
Since RedisTimeSeries 1.0.0
tsIncrbyOpts :: RedisCtx m f=> ByteStringTime series key.
-> DoubleIncrement amount.
-> TsIncrByOptsUpdate options.
-> m (f Integer)
Increase the value of the sample with the maximum timestamp, or create a new sample with an incremented value (https://redis.io/commands/ts.incrby).
O(M) when M is the number of compaction rules, or O(1) with no compaction
Since RedisTimeSeries 1.0.0
Returns information and statistics for a time series (https://redis.io/commands/ts.info).
The reply is a heterogeneous attribute map, so this wrapper returns the raw Reply.
O(1)
Since RedisTimeSeries 1.0.0
tsInfoOpts :: RedisCtx m f=> ByteStringTime series key.
-> TsInfoOptsInformation query options.
-> m (f Reply)
Returns information and statistics for a time series (https://redis.io/commands/ts.info).
The reply is a heterogeneous attribute map, so this wrapper returns the raw Reply.
O(1)
Since RedisTimeSeries 1.0.0
tsMadd :: RedisCtx m f=> NonEmpty (ByteString, ByteString, Double)Time series key, timestamp, and sample value triplets.
-> m (f [Integer])
Append new samples to one or more time series (https://redis.io/commands/ts.madd).
O(N cdot M) when N is the number of series updated and M is the number of compaction rules, or O(N) with no compaction
Since RedisTimeSeries 1.0.0
Get the sample with the highest timestamp from each time series matching a specific filter (https://redis.io/commands/ts.mget).
The reply is heterogeneous and depends on label options, so this wrapper returns the raw Reply.
O(n) where n is the number of time-series that match the filters
Since RedisTimeSeries 1.0.0
tsMgetOpts :: RedisCtx m f=> NonEmpty ByteStringFilter expressions.
-> TsMGetOptsRead options.
-> m (f Reply)
Get the sample with the highest timestamp from each time series matching a specific filter (https://redis.io/commands/ts.mget).
The reply is heterogeneous and depends on label options, so this wrapper returns the raw Reply.
O(n) where n is the number of time-series that match the filters
Since RedisTimeSeries 1.0.0
tsMrange :: RedisCtx m f=> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> NonEmpty ByteStringFilter expressions.
-> m (f Reply)
Query a range across multiple time series by filters in forward direction (https://redis.io/commands/ts.mrange).
The reply is heterogeneous and may include labels or grouped output, so this wrapper returns the raw Reply.
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.0.0
tsMrangeOpts :: RedisCtx m f=> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> NonEmpty ByteStringFilter expressions.
-> TsMRangeOptsQuery options.
-> m (f Reply)
Query a range across multiple time series by filters in forward direction (https://redis.io/commands/ts.mrange).
The reply is heterogeneous and may include labels or grouped output, so this wrapper returns the raw Reply.
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.0.0
tsMrevrange :: RedisCtx m f=> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> NonEmpty ByteStringFilter expressions.
-> m (f Reply)
Query a range across multiple time series by filters in reverse direction (https://redis.io/commands/ts.mrevrange).
The reply is heterogeneous and may include labels or grouped output, so this wrapper returns the raw Reply.
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.4.0
tsMrevrangeOpts :: RedisCtx m f=> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> NonEmpty ByteStringFilter expressions.
-> TsMRangeOptsQuery options.
-> m (f Reply)
Query a range across multiple time series by filters in reverse direction (https://redis.io/commands/ts.mrevrange).
The reply is heterogeneous and may include labels or grouped output, so this wrapper returns the raw Reply.
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.4.0
Get all time series keys matching a filter list (https://redis.io/commands/ts.queryindex).
O(n) where n is the number of time-series that match the filters
Since RedisTimeSeries 1.0.0
tsRange :: RedisCtx m f=> ByteStringTime series key.
-> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> m (f [TsSample])
Query a range in forward direction (https://redis.io/commands/ts.range).
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.0.0
tsRangeOpts :: RedisCtx m f=> ByteStringTime series key.
-> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> TsRangeOptsQuery options.
-> m (f [TsSample])
Query a range in forward direction (https://redis.io/commands/ts.range).
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.0.0
tsRevrange :: RedisCtx m f=> ByteStringTime series key.
-> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> m (f [TsSample])
Query a range in reverse direction (https://redis.io/commands/ts.revrange).
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.4.0
tsRevrangeOpts :: RedisCtx m f=> ByteStringTime series key.
-> ByteStringLower timestamp bound, or
-.-> ByteStringUpper timestamp bound, or
+.-> TsRangeOptsQuery options.
-> m (f [TsSample])
Query a range in reverse direction (https://redis.io/commands/ts.revrange).
O(n/m+k) where n is the number of data points, m is the chunk size, and k is the number of returned samples
Since RedisTimeSeries 1.4.0