You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/develop/data-types/timeseries/_index.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -237,8 +237,8 @@ corresponding
237
237
[`TS.MGET`]({{< relref "commands/ts.mget/" >}}),
238
238
[`TS.MRANGE`]({{< relref "commands/ts.mrange/" >}}), and
239
239
[`TS.MREVRANGE`]({{< relref "commands/ts.mrevrange/" >}}) versions that
240
-
operate on multiple time series. `TS.MGET` returns the last data point added
241
-
to each time series, while `TS.MRANGE` and `TS.MREVRANGE`
240
+
operate on multiple time series. `TS.MGET` returns the data point with the highest
241
+
timestamp from each time series, while `TS.MRANGE` and `TS.MREVRANGE`
242
242
return data points from a range of timestamps in each time series.
243
243
244
244
The parameters are mostly the same except that the multiple time series
@@ -253,8 +253,8 @@ for details of the filter syntax. You can also request that
253
253
data points be returned with all their labels or with a selected subset of them.
254
254
255
255
```bash
256
-
# Create three new "rg: time series, two in the US
257
-
# and one in the UK, with different units and add some
256
+
# Create three new "rg: time series (two in the US
257
+
# and one in the UK, with different units) and add some
258
258
# data points.
259
259
> TS.CREATE rg:2 LABELS location us unit cm
260
260
OK
@@ -379,7 +379,7 @@ The available aggregation functions are:
379
379
-`twa`: Time-weighted average over the bucket's timeframe (since RedisTimeSeries v1.8)
380
380
381
381
For example, the example below shows an aggregation with the `avg` function over all
382
-
five data points in the `rg:2` time series. The bucket size is two days, so there are three
382
+
five data points in the `rg:2` time series. The bucket size is 2ms, so there are three
383
383
aggregated values with only one value used to calculate the average for the last bucket.
384
384
385
385
```bash
@@ -461,7 +461,7 @@ By default, the results from
461
461
[`TS.MREVRANGE`]({{< relref "commands/ts.mrevrange/" >}}) are grouped by time series. However, you can use the `GROUPBY` and `REDUCE` options to group them by label and apply an aggregation over elements
462
462
that have the same timestamp and the same label value (this feature is available from RedisTimeSeries v1.6 onwards).
463
463
464
-
For example, the following commands create four time series, two for the UK and two for the US, and add some data points. The first `TS.MRANGE` command groups the results by country and applies a `max` aggregation to find the maximum wind speed in each country at each timestamp. The second `TS.MRANGE` command uses the same grouping, but applies an `avg` aggregation.
464
+
For example, the following commands create four time series, two for the UK and two for the US, and add some data points. The first `TS.MRANGE` command groups the results by country and applies a `max` aggregation to find the maximum sample value in each country at each timestamp. The second `TS.MRANGE` command uses the same grouping, but applies an `avg` aggregation.
465
465
466
466
```bash
467
467
> TS.CREATE wind:1 LABELS country uk
@@ -578,9 +578,9 @@ OK
578
578
.
579
579
```
580
580
581
-
Adding data points within the first three days (the first bucket) doesn't
581
+
Adding data points within the first 3ms (the first bucket) doesn't
582
582
produce any data in the compacted series. However, when you add data for
583
-
day 4 (in the second bucket), the compaction rule computes the minimum
583
+
time 4 (in the second bucket), the compaction rule computes the minimum
584
584
value for the first bucket and adds it to the compacted series.
0 commit comments