Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vendors:cisco:uc:icm:sql:ewt [2023/02/02 14:32] – [Percentage of Agents in each Skillgropu] gerardorourke | vendors:cisco:uc:icm:sql:ewt [2023/02/02 14:52] (current) – [How to automate above] gerardorourke | ||
|---|---|---|---|
| Line 461: | Line 461: | ||
| FOR JSON AUTO | FOR JSON AUTO | ||
| </ | </ | ||
| + | |||
| + | ==== How to automate above ==== | ||
| + | |||
| + | CVP have 5 variables it can return. External VXM[0-3] + Caller Input.\\ | ||
| + | Lets say to keep things simple we return a skillgroup and a percentage variable for the top 6 Skillgroups. | ||
| + | The first skillgroup we don't need to return as we already know it will always have 100% percent. | ||
| + | Each variable will return Skill group Name and percent, e.g. " | ||
| + | If there is less than 6 skills return a variable you can check such as " | ||
| + | |||
| + | So we get the next 5 skills and return these to ICM\\. | ||
| + | In ICM we | ||
| + | *Get using Custom Function the EWT for the core Skillgroup (< | ||
| + | *parse each of the 5 variable and then calcualte the EWT for that SG and add it to the value of PV6 | ||
| + | *Repeat for each of the 5 variables | ||
| + | |||
| + | CVP is grabbing this json file from a web server - which has a scheduled task which runs every X mins or once a day etc. | ||
| + | The Script on the Web Server uses the above SQL query and outputs to a static text file. | ||
| + | If this was a linux server you could do something like use Redis or memcache - but above also works and is very simple to do. | ||
| + | |||
| + | the Script would run the SQL query for a predefined list of Skillgroups. And the output would be " | ||
| + | |||
| + | Reference: https:// | ||
| + | |||