Last active
June 1, 2022 14:46
-
-
Save radicalloop/b91b3cc242dda8c0c0b3c0b1e0a81b35 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# request key: one_day / one_week / one_month / three_month / one_year | |
# one_day | |
# last 24 hrs data -- 24 data points, 1 per hour | |
[ | |
{ | |
time_point: "2022-04-14 00:00", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-14 01:00", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-14 02:00", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-14 03:00", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-14 04:00", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-14 05:00", | |
value: 72, | |
}, | |
// .... | |
{ | |
time_point: "2022-04-14 22:00", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-14 23:00", | |
value: 72, | |
}, | |
] | |
# one_week | |
# last 7 days data -- 7 data points, 1 per day | |
[ | |
{ | |
time_point: "2022-04-12", | |
value: 17, | |
}, | |
{ | |
time_point: "2022-04-13", | |
value: 89, | |
}, | |
{ | |
time_point: "2022-04-14", | |
value: 2, | |
}, | |
{ | |
time_point: "2022-04-15", | |
value: 62, | |
}, | |
{ | |
time_point: "2022-04-16", | |
value: 34, | |
}, | |
{ | |
time_point: "2022-04-17", | |
value: 43, | |
}, | |
{ | |
time_point: "2022-04-18", | |
value: 43, | |
} | |
] | |
# one_month | |
# last 30 days data -- 30 data points, 1 per day | |
[ | |
{ | |
time_point: "2022-04-14", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-15", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-16", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-17", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-18", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-19", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-04-20", | |
value: 72, | |
}, | |
// .... | |
{ | |
time_point: "2022-05-10", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-05-11", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-05-12", | |
value: 72, | |
}, | |
{ | |
time_point: "2022-05-13", | |
value: 72, | |
} | |
] | |
# three_month | |
# last 3 months data -- 3 data points, 1 per month | |
[ | |
{ | |
time_point: "2022-03", | |
value: 58, | |
}, | |
{ | |
time_point: "2022-04", | |
value: 92, | |
}, | |
{ | |
time_point: "2022-05", | |
value: 58, | |
}, | |
] | |
# one_year | |
# last 12 months data -- 12 data points, 1 per month | |
[ | |
{ | |
time_point: "2022-01", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-02", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-03", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-04", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-05", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-06", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-07", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-08", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-09", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-10", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-11", | |
value: 59, | |
}, | |
{ | |
time_point: "2022-12", | |
value: 59, | |
}, | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment