Jump to: navigation, search
(Update with the copy of version: draft)
(Automated save: adding PEC_Migrated template.)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
= Estimated Wait Time =
 
= Estimated Wait Time =
  
Estimated Wait Time (EWT) is displayed in the ChannelSelector, Callback and ClickToCall Widgets. These Widgets use the [[StatsServiceCommands#getStats|getStats]] command to fetch EWT data from the GMS or GES server. These servers support multiple API versions and this document will explain how to configure the [[StatsServiceConfiguration|StatsService]] plugin to utilize version that you require.
+
{{Template:PEC_Migrated}}
  
Use the [[StatsServiceConfiguration#Options|ewt.apiVersion]] configuration option to specify the API version. Each version value corresponds to a particular API of GMS/GES. For all possible version values and their mapping, refer to the [[StatsServiceConfiguration#Options|description]] section of the [[StatsServiceConfiguration#Options|ewt.apiVersion]] configuration option.
 
  
Sample configuration:
 
<source lang="JAVASCRIPT">
 
_genesys.widgets.stats.ewt.apiVersion = <version value>
 
</source>
 
  
==API Versions==
+
{{NoteFormat|Documentation for this software has moved to a new home. Please update links and bookmarks to content hosted at https://all.docs.genesys.com/WID/Current/SDK/StatsService-combined#Estimated_Wait_Time.}}
 
 
===v1===
 
 
 
If [[StatsServiceConfiguration#Options|ewt.apiVersion]] is configured to 'v1' (this is also the default value), the [[StatsServiceConfiguration#Options|ewt.dataURL]] configured must be a valid GMS 8.5.1 EWT API url. If not, incorrect EWT may be displayed.
 
 
 
Depending on this API version, the [[StatsServiceConfiguration#Options|ewt.mode]] configuration option can hold a set of predefined possible values for this version. They are 'urs', 'urs2' and 'stat', where 'urs2' is the default value if not specified.
 
 
 
'''Default Example'''
 
 
 
<source lang="JAVASCRIPT">
 
_genesys.widgets.stats = {
 
      ewt: {
 
          apiVersion: "v1"
 
          dataURL: http://somedomain/genesys/1/service/ewt-for-vq
 
          mode: "urs2"
 
    }
 
}
 
</source>
 
 
 
For the above configuration, the StatsService plugin will construct the relevant dataURL as shown below.
 
 
 
<source lang="JAVASCRIPT">
 
http://somedomain/genesys/1/service/ewt-for-vq?name=vq1&aqt=urs2
 
</source>
 
 
 
'vq1' is added to the URL via the '''vqName''' option passed into the [[StatsServiceCommands#getStats|getStats]] command.
 
 
 
 
 
=== v2 ===
 
 
 
If [[StatsServiceConfiguration#Options|ewt.apiVersion]] is configured to 'v2', the [[StatsServiceConfiguration#Options|ewt.dataURL]] configured must be a valid GMS 8.5.2 EWT API url. If not, incorrect EWT may be displayed. For this apiVersion, the possible values for [[StatsServiceConfiguration#Options|ewt.mode]] are 'ewt1', 'ewt2' and 'ewt3'.  'ewt2' is the default value.
 
 
 
'''Example'''
 
 
 
<source lang="JAVASCRIPT">
 
_genesys.widgets.stats = {
 
      ewt: {
 
          apiVersion: "v2"
 
          dataURL: http://somedomain/genesys/2/ewt
 
          mode: "ewt2"
 
    }
 
}
 
</source>
 
 
 
For the above configuration, the StatsService plugin will construct the relevant dataURL as shown below.
 
 
 
<source lang="JAVASCRIPT">
 
http://somedomain/genesys/2/ewt/ewt2?vq=vq1,vq2
 
</source>
 
 
 
'vq1' and 'vq2' are added to the URL via the '''vqName''' option passed into the [[StatsServiceCommands#getStats|getStats]] command.
 
 
 
===v3 ===
 
 
 
If [[StatsServiceConfiguration#Options|ewt.apiVersion]] is set to 'v3', the [[StatsServiceConfiguration#Options|ewt.dataURL]] configured must be a valid [https://developer.genhtcc.com/reference/callback/Estimated-Wait-Time/index.html GES EWT API url]. If not, incorrect EWT may be displayed. For this apiVersion, the possible values for [[StatsServiceConfiguration#Options|ewt.mode]] are 'mode1', 'mode2' and 'mode3', where 'mode2' will be the default value if not specified.
 
 
 
'''Example'''
 
 
 
<source lang="JAVASCRIPT">
 
_genesys.widgets.stats = {
 
      ewt: {
 
          apiVersion: "v3"
 
          dataURL: http://somedomain/engagement/v3/estimated-wait-time
 
          mode: "mode2"
 
    }
 
}
 
</source>
 
 
 
For the above configuration, the StatsService plugin will construct the relevant dataURL as shown below.
 
 
 
<source lang="JAVASCRIPT">
 
http://somedomain/engagement/v3/estimated-wait-time?virtual-queues=vq1,vq2&mode=mode2
 
</source>
 
 
 
'vq1' and 'vq2' are added to the URL via the '''vqName''' option passed into the [[StatsServiceCommands#getStats|getStats]] command.
 
 
 
== Where to look for EWT data ==
 
 
 
When the [[StatsServiceCommands#getStats|getStats]] command is called, it fetches the EWT data from either GMS/GES server based on the configuration. This response data is included in the [[StatsServiceEvents|updated]] event in a standard format as shown below. In this data format, the '''ewt''' section will contain the virtual queue name and the estimated wait time as a key value pair. The '''response''' section contains the original raw data from the server and may vary between each server API.
 
 
 
<source lang="JAVASCRIPT">
 
{
 
    ewt: {
 
       
 
        "VQ_GMS_Callback_Out":  9.999  // consolidated standardized EWT data for each virtual queue.
 
        "VQ_GMS_Callback": 5.12
 
        ...
 
    },
 
    response: {                // Original raw data from GMS.
 
       
 
        "VQ_GMS_Callback_Out": {         
 
            "time": 1506021728,
 
            "wt": 0,
 
            "calls": 0,
 
            "wcalls": 0,
 
            "pos": 1,
 
            "wpos": 1,
 
            "aqt": 9.999,
 
            "ewt": 9.999,
 
            "hit": 0
 
        },
 
        "VQ_GMS_Callback": {
 
            ...
 
        }
 
    }
 
}
 
</source>
 
  
 
[[Category:V:PSAAS:Public]]
 
[[Category:V:PSAAS:Public]]

Latest revision as of 23:13, June 21, 2020

Estimated Wait Time

Important
This content may not be the latest Genesys Engage cloud content. To find the latest content, go to Genesys Engage cloud for Administrators.



Important
Documentation for this software has moved to a new home. Please update links and bookmarks to content hosted at https://all.docs.genesys.com/WID/Current/SDK/StatsService-combined#Estimated_Wait_Time.
This page was last edited on June 21, 2020, at 23:13.
Comments or questions about this documentation? Contact us for support!