This page was last edited on January 7, 2019, at 14:21.
Comments or questions about this documentation? Contact us for support!
You can download the sample custom template for statistics using the following link:
Statistic Custom Template Sample
GMS enables you to easily develop your own service by using services composition and custom business logic. The sample template provided here addresses a statistic use case on how to get information about maxInteractions, currentMargin, and currentInteraction from a group of approximately 500 agents. The goal is to use this statistic on the customer-side (browser) to show how quickly a request has been answered.
The response from the GMS statistic will be similar to the Pulse statistic. For example:
{ "maxInteractions": 2, "currentInteractions": 0, "currentMargin": 2 }
While the GMS Stat Service APIs allow you to query statistics against Stat Server, the APIs return the statistic response as a JSON object. For the use case described here, the response from GMS for this type of statistic may not meet business needs with the response size, CPU consumption, and security.
However, the benefits of using the Statistic custom template are:
GMS 8.5.005.xx and higher.
The template is a zip file that contains two files:
THIS CODE IS PROVIDED BY GENESYS TELECOMMUNICATIONS LABORATORIES, INC. ("GENESYS") "AS IS" WITHOUT ANY WARRANTY OF ANY KIND. GENESYS HEREBY DISCLAIMS ALL EXPRESS, IMPLIED, OR STATUTORY CONDITIONS, REPRESENTATIONS AND WARRANTIES WITH RESPECT TO THIS CODE (OR ANY PART THEREOF), INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. GENESYS AND ITS SUPPLIERS SHALL NOT BE LIABLE FOR ANY DAMAGE SUFFERED AS A RESULT OF USING THIS CODE. IN NO EVENT SHALL GENESYS AND ITS SUPPLIERS BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, ECONOMIC, INCIDENTAL, OR SPECIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, ANY LOST REVENUES OR PROFITS).