Created
November 10, 2021 17:21
-
-
Save Hkazanci93/d0a5231255810bdcab0f94baf4c6f7bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from := now - 24 hours | |
to := now | |
timeBucket := 1 hour | |
TS.RANGE user:{user_id}:ts_coins {from} {to} AGGREGATION avg {timeBucket} | |
TS.RANGE user:{user_id}:ts_pizzas {from} {to} AGGREGATION avg {timeBucket} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment