Statistic problem

How to get the waitting count in Queue of AgentGroup with gis.
and how to get the ACD Talk Time of Agent with gis?
for exsample:
TotalLogInTime
Category :CurrentTime
Subject:DNAction
ObjectType:Agent
mainActions:LoggedIn
relativeActions:LoggedOut

Thanks,