@@ -59,6 +59,9 @@ def create(
59
59
- 'last': override with latest value.
60
60
- 'min': only override if the value is lower than the existing value.
61
61
- 'max': only override if the value is higher than the existing value.
62
+ - 'sum': If a previous sample exists, add the new sample to it so that \
63
+ the updated value is equal to (previous + new). If no previous sample \
64
+ exists, set the updated value equal to the new value.
62
65
63
66
For more information: https://redis.io/commands/ts.create/
64
67
""" # noqa
@@ -103,6 +106,9 @@ def alter(
103
106
- 'last': override with latest value.
104
107
- 'min': only override if the value is lower than the existing value.
105
108
- 'max': only override if the value is higher than the existing value.
109
+ - 'sum': If a previous sample exists, add the new sample to it so that \
110
+ the updated value is equal to (previous + new). If no previous sample \
111
+ exists, set the updated value equal to the new value.
106
112
107
113
For more information: https://redis.io/commands/ts.alter/
108
114
""" # noqa
@@ -154,6 +160,9 @@ def add(
154
160
- 'last': override with latest value.
155
161
- 'min': only override if the value is lower than the existing value.
156
162
- 'max': only override if the value is higher than the existing value.
163
+ - 'sum': If a previous sample exists, add the new sample to it so that \
164
+ the updated value is equal to (previous + new). If no previous sample \
165
+ exists, set the updated value equal to the new value.
157
166
158
167
For more information: https://redis.io/commands/ts.add/
159
168
""" # noqa
0 commit comments