ibm-quantum / Hub-Automation

Apache License 2.0
9 stars 5 forks source link

per project data roll up #4

Open kwehden opened 3 years ago

kwehden commented 3 years ago

API endpoint 'network//analytics/system-usage' to incorporate per-project data is possible but not documented

Matt-Stypulkoski commented 2 years ago

I'm working on more in depth documentation for this, and many other, endpoints that are available to users. I should be able to push the documentation soon, which will solve this issue.

suzanneprentice commented 1 year ago

Hi @Matt-Stypulkoski, was wondering if you had any progress on this. I am more than happy to create a python script similar to get_analytics_for_users.py/documentation if given the appropriate info (url, parameters: required and options, etc.)

I need to able to get per project analytics rather than just per user analytics. I am assuming that this info will retrieves system usage stats for projects on specific backends over a given date range similarly to get_analytics_for_users.py

Matt-Stypulkoski commented 1 year ago

Hi @suzanneprentice - Currently there is a branch with the documentation. I have not pushed it to the main branch yet.

To give an answer for this question though, the api url for project specific analytics would be

GET   /Network/{hubName}/Groups/{groupName}/Projects/{projectName}/analytics/system-usage

Similarly, for group specific analytics, it would be

GET   /Network/{hubName}/Groups/{groupName}/analytics/system-usage