Hello everybody!
I'm trying to get role based total minutes-online for a specific period of time, something like 'this week our Moderators spent so many minutes online'.
Any help will be highly appreciated!
Thanks and best
Solved! Go to Solution.
You can get that information from LSI. Set your time period first, then go to the Members tab. Click the pencil icon towards the top right of the page, in line with it saying, "Add a filter". In the left box choose "Role" from the drop down and then "Equals" from the center drop down. You will need to enter the role name exactly as it is in the community. If it is spelled with caps, use caps. Copy/Paste can help to get it exactly right.
That should do it. The role selection will carry through to the other metrics until you remove it.
That's interesting, how would you do that via LSI Bulk API or via some other (REST) API? Would be interesting to display this data in the frontend in a custom component rather than exporting it or viewing it in the LSI...
We found the solution. You can get that information via Metric API.
For example, when you want the number of "minutes_online" in a specific date range and on a specific role (e.g. Administrator) you can make this restadmin call:
/restapi/vc/roles/name/Administrator/metrics/name/minutes_online?date_start=2017-07-01&date_end=2017-08-01
When you type only
/restapi/vc/roles/name/Administrator/metrics/name
you retrieve a list of all metrics on a specific role.
Just one word of caution:
"Minutes online" is a very fuzzy metric and should be taken with a grainrock of salt. You should definitely stay away from using it as a business or agent performance metric. It can be useful to compare populations within the community, e.g. by comparing role groups, but it's not suited for individual members.
Yeah, definitely a fuzzy piece of information, but we do not intend to use it for its "precision" =), more to give the regular visitor a sense of how much time the superusers/moderators etc. spent last week to answer their questions, e.g. it's thought for raising the awareness of the work the superusers do and increase their visibility a bit...
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!