-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Metrics : add user accounts number #10177
Comments
@DS-INRA I've wanted this for a long time. Thanks for creating this issue! I'm not sure if you've looked at the authenticateduser table lately: https://guides.dataverse.org/en/5.14/schemaspy/tables/authenticateduser.html We might want to consider fields such as:
Basically, what I'm getting at is that if we want to get fancier, we could say things like:
Also, does your team plan to work on this? |
It would be very helpful to have active users too indeed, I'm still thinking about what parameter would be best for this use case though, my guess is pastDays because the timeframe for "active" might vary between installations. |
@DS-INRA are you still interested in counting active users somehow? Have you considered creating an issue for this? |
It would still be interesting but we would like to discuss with our collection administrators the need, we have a meeting on the metrics topic on July 5th, so there will be more news at that time 😃 |
Overview of the Feature Request
Add an API Metrics type for total number of user accounts?
What kind of user is the feature intended for?
(Example users roles: API User, Curator, Depositor, Guest, Superuser, Sysadmin)
In order to allow display of this metric as in this issue :
Any brand new behavior do you want to add to Dataverse?
Add the new metric to the API, as per other metrics :
https://$SERVER/api/info/metrics/accounts
count
whose value is the accounts' total count.Ex.
{"status":"OK","data":{"count":13}}
$YYYY-DD
in YYYY-MM format (e.g.2018-01
):https://$SERVER/api/info/metrics/accounts/toMonth/$YYYY-DD
count
whose value is the accounts' total count.Ex.
{"status":"OK","data":{"count":13}}
$days
(e.g.30
):https://$SERVER/api/info/metrics/accounts/pastDays/$days
count
whose value is the accounts' total count.Ex.
{"status":"OK","data":{"count":3}}
https://$SERVER/api/info/metrics/accounts/monthly
Ex.
Any open or closed issues related to this feature request?
The text was updated successfully, but these errors were encountered: