Hi!
We’ll I’m trying to develop over TTN Storage integration and I have faced the following problem:
If I don’t query over the current day when using after and before, I receive a 1 as a response.
(Being today the 4th of October)
https://nam1.cloud.thethings.network/api/v3/as/applications/apartment-weather-station/packages/storage/uplink_message?after=2021-09-01T00:00:00Z&before=2021-10-03T00:00:00Z
This response returns just a “1” (No data)
https://nam1.cloud.thethings.network/api/v3/as/applications/apartment-weather-station/packages/storage/uplink_message?after=2021-09-01T00:00:00Z&before=2021-10-04T00:00:00Z
This response returns data from the 2nd of October at 21:04 till today.
This brings me to the second question
As you can see I only have data from the 2nd of October, so, how long does Storage integrations holds the data?
Many thanks!!
htdvisser
(Hylke Visser)
October 5, 2021, 1:15pm
2
In The Things Stack Community Edition, the storage integration has a retention of roughly 24 hours (it may be a bit longer if the cleanup process hasn’t run yet).
This means that if you query data from before the retention window, you’ll indeed get an empty response.
htdvisser:
the storage integration has a retention of roughly 24 hours (it may be a bit longer if the cleanup process hasn’t run yet).
This means that if you query data from before the retention window, you’ll indeed
Thanks!! everything makes sense now! maybe it could be added in the docs.