This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en:custom_development_guide:apis:http:get_single_agent_stat [2016/09/12 07:35] – created liuxl | en:custom_development_guide:apis:http:get_single_agent_stat [2019/01/02 05:12] (current) – donnie | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Get single agent stat ====== | ====== Get single agent stat ====== | ||
| - | * Function: | + | * Reques String: |
| - | < | + | < |
| - | </ | + | |
| * Description: | * Description: | ||
| Get agent stat(current status, how long current status last, idle time, busy duration) | Get agent stat(current status, how long current status last, idle time, busy duration) | ||
| Line 9: | Line 8: | ||
| ^ Params | ^ Params | ||
| + | |EVENT|String|AgentRealtime| | ||
| |orgidentity|String|team identity string| | |orgidentity|String|team identity string| | ||
| |usertype|String|agent / account| | |usertype|String|agent / account| | ||
| Line 14: | Line 14: | ||
| |pwdtype|String|password type: plaintext/ | |pwdtype|String|password type: plaintext/ | ||
| |password|String|password| | |password|String|password| | ||
| - | |callbackFuc|String|callback function| | ||
| Line 21: | Line 20: | ||
| < | < | ||
| - | {code: | + | |Retuen|code|Retuen|message |
| </ | </ | ||
| - | * Type of the Return Value:JSON | + | * Type of the Return Value:String |
| * Return Values: | * Return Values: | ||
| ^ Value ^ Description | ^ Value ^ Description | ||
| - | |< | + | |< |
| message is current agent stat: | message is current agent stat: | ||
| - | agent name|agent No.|current status|status last duration|busy times|paused times|off times|meeting times|training times|break times|other times|busy duration|paused duration|off duration|meeting duration|training duration|break duration|other duration, ex: | + | agent name|agent No.|current status|status last duration|busy times|paused times|off times|meeting times|training times|break times|other times|busy duration| |
| - | {code:1,message:Joe|8005|busy|85|7|1|1|2|1|1|1|120|10|20|60|10|10|10} | + | paused duration|off duration|meeting duration|training duration|break duration|other duration, ex: |
| + | |Retuen|1|Retuen|Joe|8005|busy|85|7|1|1|2|1|1|1|120|10|20|60|10|10|10 | ||
| If you didn't see agent name, means last name of the agent is empty | If you didn't see agent name, means last name of the agent is empty | ||
| agent state includes: idle, pause, ring, busy, acw, logout. | agent state includes: idle, pause, ring, busy, acw, logout. | ||
| all duration is seconds | all duration is seconds | ||
| </ | </ | ||
| - | |< | + | |< |