Khoros Atlas Logo

%3CLINGO-SUB%20id%3D%22lingo-sub-317032%22%20slang%3D%22en-US%22%3Eget%20minutes%20online%20based%20on%20roles%20for%20a%20specific%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-317032%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%223%22%3EHello%20everybody!%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%223%22%3EI'm%20trying%20to%20get%20role%20based%20total%20minutes-online%20for%20a%20specific%20period%20of%20time%2C%20something%20like%20'this%20week%20our%20Moderators%20spent%20so%20many%20minutes%20online'.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EAny%20help%20will%20be%20highly%20appreciated!%3CBR%20%2F%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%223%22%3EThanks%20and%20best%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%223%22%3E%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-317429%22%20slang%3D%22en-US%22%3ERe%3A%20get%20minutes%20online%20based%20on%20roles%20for%20a%20specific%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-317429%22%20slang%3D%22en-US%22%3E%3CP%3EYeah%2C%20definitely%20a%20fuzzy%20piece%20of%20information%2C%20but%20we%20do%20not%20intend%20to%20use%20it%20for%20its%20%22precision%22%20%3D)%2C%20more%20to%20give%20the%20regular%20visitor%20a%20sense%20of%20how%20much%20time%20the%20superusers%2Fmoderators%20etc.%20spent%20last%20week%20to%20answer%20their%20questions%2C%20e.g.%20it's%20thought%20for%20raising%20the%20awareness%20of%20the%20work%20the%20superusers%20do%20and%20increase%20their%20visibility%20a%20bit...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-317180%22%20slang%3D%22en-US%22%3ERe%3A%20get%20minutes%20online%20based%20on%20roles%20for%20a%20specific%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-317180%22%20slang%3D%22en-US%22%3E%3CP%3EJust%20one%20word%20of%20caution%3A%3CBR%20%2F%3E%22Minutes%20online%22%20is%20a%20very%20fuzzy%20metric%20and%20should%20be%20taken%20with%20a%20%3CSTRIKE%3Egrain%3C%2FSTRIKE%3Erock%20of%20salt.%20You%20should%26nbsp%3Bdefinitely%20stay%20away%20from%20using%20it%20as%20a%20business%20or%20agent%20performance%20metric.%20It%20can%20be%20useful%26nbsp%3Bto%20compare%20populations%20within%20the%20community%2C%20e.g.%20by%20comparing%26nbsp%3Brole%20groups%2C%20but%20it's%20not%20suited%20for%20individual%20members.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-317152%22%20slang%3D%22en-US%22%3ERe%3A%20get%20minutes%20online%20based%20on%20roles%20for%20a%20specific%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-317152%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20found%20the%20solution.%20You%20can%20get%20that%26nbsp%3Binformation%20via%20Metric%20API.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20example%2C%20when%20you%20want%20the%20number%20of%20%22minutes_online%22%20in%20a%20specific%26nbsp%3Bdate%20range%20and%20on%20a%20specific%20role%20(e.g.%20Administrator)%20you%20can%20make%20this%20restadmin%20call%3A%3C%2FP%3E%3CPRE%3E%2Frestapi%2Fvc%2Froles%2Fname%2FAdministrator%2Fmetrics%2Fname%2Fminutes_online%3Fdate_start%3D2017-07-01%26amp%3Bdate_end%3D2017-08-01%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20you%20type%20only%26nbsp%3B%3C%2FP%3E%3CPRE%3E%2Frestapi%2Fvc%2Froles%2Fname%2FAdministrator%2Fmetrics%2Fname%3C%2FPRE%3E%3CP%3E%26nbsp%3Byou%20retrieve%20a%20list%20of%20all%20metrics%20on%20a%20specific%20role.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-317142%22%20slang%3D%22en-US%22%3ERe%3A%20get%20minutes%20online%20based%20on%20roles%20for%20a%20specific%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-317142%22%20slang%3D%22en-US%22%3E%3CP%3EThat's%20interesting%2C%20how%20would%20you%20do%20that%20via%20LSI%20Bulk%20API%20or%20via%20some%20other%20(REST)%20API%3F%20Would%20be%20interesting%20to%20display%20this%20data%20in%20the%20frontend%20in%20a%20custom%20component%20rather%20than%20exporting%20it%20or%20viewing%20it%20in%20the%20LSI...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-317089%22%20slang%3D%22en-US%22%3ERe%3A%20get%20minutes%20online%20based%20on%20roles%20for%20a%20specific%20time%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-317089%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20can%20get%20that%20information%20from%20LSI.%20Set%20your%20time%20period%20first%2C%20then%20go%20to%20the%20Members%20tab.%20Click%20the%26nbsp%3B%20pencil%20icon%20towards%20the%20top%20right%20of%20the%20page%2C%20in%20line%20with%20it%20saying%2C%20%22Add%20a%20filter%22.%20In%20the%20left%20box%20choose%20%22Role%22%20from%20the%20drop%20down%20and%20then%20%22Equals%22%20from%20the%20center%20drop%20down.%20You%20will%20need%20to%20enter%20the%20role%20name%20exactly%20as%20it%20is%20in%20the%20community.%20If%20it%20is%20spelled%20with%20caps%2C%20use%20caps.%20Copy%2FPaste%20can%20help%20to%20get%20it%20exactly%20right.%3C%2FP%3E%0A%3CP%3EThat%20should%20do%20it.%20The%20role%20selection%20will%20carry%20through%20to%20the%20other%20metrics%20until%20you%20remove%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor
Occasional Contributor

get minutes online based on roles for a specific time

Jump to solution

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

 

 

 

 

 

5 Replies 5
Highlighted
Lithium Alumni (Retired) Lithium Alumni (Retired)
Lithium Alumni (Retired)

Re: get minutes online based on roles for a specific time

Jump 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.



If my post answers your question, please mark it as an "Accepted Solution."
Reply
Loading...
Highlighted
Honored Contributor Honored Contributor
Honored Contributor

Re: get minutes online based on roles for a specific time

Jump to solution

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...


Lead-Dev @glowing blue

If my answer was useful to you, please consider marking it as a solution, this helps somebody with a similar question finding it more quickly.
Thank you!
Reply
Loading...
Highlighted
Occasional Contributor
Occasional Contributor

Re: get minutes online based on roles for a specific time

Jump to solution

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.

 

 

Sabrina Heid
Glowing Blue
Reply
Loading...
Highlighted
Khoros Alumni (Retired) Khoros Alumni (Retired)
Khoros Alumni (Retired)

Re: get minutes online based on roles for a specific time

Jump to solution

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.


Khoros Best Practice until August 2019. Onwards posting as Claudius.
Learn how to master Khoros. Learn Best Practice in the Community Documentation
If you appreciate my efforts, please give me a kudo ↓
Accept as solution to help others find it faster.
Reply
Loading...
Highlighted
Honored Contributor Honored Contributor
Honored Contributor

Re: get minutes online based on roles for a specific time

Jump to solution

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...


Lead-Dev @glowing blue

If my answer was useful to you, please consider marking it as a solution, this helps somebody with a similar question finding it more quickly.
Thank you!
Reply
Loading...