Provide a way to change API nb_ data period #684
Replies: 2 comments 1 reply
-
Hey the 14 days is actually a set limit in SimpleLogin: all logs are deleted after 14 days. As these logs aren't linked to users, they are deleted in batch. |
Beta Was this translation helpful? Give feedback.
-
I assume you are talking about a server option we can tweek in the self hosted version. I use the SL.io service and I have no option in the Settings page, at least, none I can spot. So, if I'm not being a total noob by missing an option that is already there, is it possible to add this to the Settings page of the UI? |
Beta Was this translation helpful? Give feedback.
-
Right now, all the nb_ data on the API are the sum of the last 14 days and are used to show stats on the UI (with exception of nb_aliases that is the sum of all aliases under that user).
If the nb_ data where telling about the current month, for example, it would be more easy to me to imagine uses for it.
I would like to suggest 2 scenario options to enhance this data so it get useful for more people.
I'm guessing the scenario 1 (custom period) would be the easiest to implement maintaining backward compatibility.
But, scenarios 2.0 and 2.1 are for if, for some reason, to offer a custom period is out of possibility.
1. Custom period:
The resulting JSON would keep the same as the current one.
2. Fixed periods:
Monthly data:
Alternative...
Monthly / Weekly data:
Beta Was this translation helpful? Give feedback.
All reactions