User Metrics
Closed this issue · 0 comments
s2t2 commented
For some simple usage metrics such as the number of current total users or the number of registrations over time, the client should make a GET request to /api/metrics/... and indicate the desired metric:
/api/metrics/users-total
/api/metrics/users-over-time
For the “users-total” metric, the server will respond with a single integer number.
For the “users-over-time” metric, the server will respond with an array of small User-Registration objects resembling the following:
[
{user_id: Integer, registered_at: DateTime},
{user_id: Integer, registered_at: DateTime},
{user_id: Integer, registered_at: DateTime},
etc.
]