outline-server
outline-server copied to clipboard
Make the data used API (/metrics/transfer) accept a parameter for hour count
There is an API for data transfer used (/metrics/transfer) but there is nothing for data transfer left (which IMHO seems more useful).
Will it be in the next versions? Also, /metrics/transfer lists all and is not available per user.
Thank you for such a great work.
its work for me
please check your metrics setting /metrics/enabled
Unfortunately the whole limit logic is extremely opinionated and the APIs seem to be targeted toward the Outline Manager app instead of being more general.
Got it. Can you tell us more about what your goals are so that we can consider adding more robust support in future releases? Thanks!
The issue is the hardcoded 30 days on the data used API.
This is my proposition: Make the data used API (/metrics/transfer) accept a parameter for hour count so one can get data used for last 12 hours or last 3 months.