outline-server icon indicating copy to clipboard operation
outline-server copied to clipboard

Make the data used API (/metrics/transfer) accept a parameter for hour count

Open cornzzy opened this issue 1 year ago • 4 comments

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.

cornzzy avatar Apr 27 '23 11:04 cornzzy

its work for me

image

please check your metrics setting /metrics/enabled image

hklcf avatar May 01 '23 10:05 hklcf

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.

cornzzy avatar May 05 '23 07:05 cornzzy

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!

maddyhof avatar May 22 '23 14:05 maddyhof

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.

cornzzy avatar Jun 07 '23 08:06 cornzzy