<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: WxCC Queue Stats SLA from API in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580365#M3191</link>
    <description>&lt;P&gt;if you get 1 call and sla is breached for the call you should get 0 (%)...right?&lt;/P&gt;&lt;P&gt;1 - 1 / 1 * 100 = 0&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 03:25:17 GMT</pubDate>
    <dc:creator>Sascha Monteiro</dc:creator>
    <dc:date>2022-03-29T03:25:17Z</dc:date>
    <item>
      <title>WxCC Queue Stats SLA from API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4579216#M3188</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am getting the queue stats from&amp;nbsp;&lt;SPAN&gt;/v1/queues/statistics&amp;nbsp;&lt;/SPAN&gt;for the current day, but the&amp;nbsp;serviceLevelThresholdPercentage is often 0.0,&lt;/P&gt;&lt;P&gt;I just tested a couple calls where I answered one after 30sec (sla is set to 20sec), the API shows 0.0, but the analyzer dashboard shows 80%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did see some values yesterday, not sure why&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the current output:&lt;/P&gt;&lt;PRE&gt;[{"intervalStartTime":1648407600000,"queueId":"xxx","queueName":"Support","channelType":"telephony","totalOfferedTasks":4,"totalEnqueuedTasks":4,"totalAssignedTasks":0,"totalAcceptedTasks":4,"totalRejectedTasks":0,"totalAbandonedTasks":0,"averageEnqueuedTime":3961.5,"averageHandledTime":29592.5,"serviceLevelThresholdPercentage":0.0},{"intervalStartTime":1648411200000,"queueId":"xxx","queueName":"Support","channelType":"telephony","totalOfferedTasks":2,"totalEnqueuedTasks":2,"totalAssignedTasks":0,"totalAcceptedTasks":1,"totalRejectedTasks":1,"totalAbandonedTasks":0,"averageEnqueuedTime":15161.0,"averageHandledTime":9930.0,"serviceLevelThresholdPercentage":0.0}]&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Mar 2022 20:39:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4579216#M3188</guid>
      <dc:creator>Sascha Monteiro</dc:creator>
      <dc:date>2022-03-27T20:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: WxCC Queue Stats SLA from API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580285#M3189</link>
      <description>&lt;P&gt;Hello Sascha,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reporting your observation.&lt;/P&gt;&lt;P&gt;So, the serviceLevelThresholdPercentage from the definition (reviewed from the API spec) - is supposed to give the % of the accepted calls (by an agent) that have breached the serviceLevel that is defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the formula I found was being used by this API:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;serviceLevelThresholdPercentage is 0.0 by default, only if there are any calls that have breached SLA during that period/interval, and only if ended calls &amp;gt; 0 is this value calculated for that interval. Otherwise it is 0.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if I sent 1 call into the queue, accepted and ended that call, and that call breached service level, I will get 100.0 in that interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(endedCallsCount -&amp;nbsp;slaBreachedCallsCount) / endedCallsCount * 100&lt;/PRE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I have tested this and it works as per the formula defined but note that the SL level can be defined both at the Entry Point configuration and Queue configuration so during testing you may want to align the settings.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Also note that the metrics for queue stats gets updated in non-realtime - it is not instant, approx 3 mins, there is an enhancement to make this more realtime (the computation job runs approx N mins and calculates these for the completed tasks).&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Let me know if you are able to test these scenarios and find any anomalies with this.&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I have attached screenshots from testing (50%) service level percentage, it was applied as 30s and I answered one call within and one call outside (breached)&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P class=""&gt;Arunabh.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 02:19:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580285#M3189</guid>
      <dc:creator>Arunabh Bhattacharjee</dc:creator>
      <dc:date>2022-03-29T02:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: WxCC Queue Stats SLA from API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580352#M3190</link>
      <description>&lt;P&gt;thanks, it stayed 0 all day and I had a call breaching SLA, the wxcc analyzer dashboard showed 80% SLA when there were 5 calls and 1 of them was answered over SLA, but the API still showed 0.0 for all intervals yesterday even a few hours after those calls...but today it appears to have values. When I run the query with yesterday's start/end timestamp it still shows 0.0 for all intervals&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 02:55:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580352#M3190</guid>
      <dc:creator>Sascha Monteiro</dc:creator>
      <dc:date>2022-03-29T02:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: WxCC Queue Stats SLA from API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580365#M3191</link>
      <description>&lt;P&gt;if you get 1 call and sla is breached for the call you should get 0 (%)...right?&lt;/P&gt;&lt;P&gt;1 - 1 / 1 * 100 = 0&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 03:25:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4580365#M3191</guid>
      <dc:creator>Sascha Monteiro</dc:creator>
      <dc:date>2022-03-29T03:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: WxCC Queue Stats SLA from API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4581357#M3192</link>
      <description>&lt;P&gt;Thanks for the additional details&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/315081"&gt;@Sascha Monteiro&lt;/a&gt;, very helpful.&lt;/P&gt;&lt;P&gt;It seems like we faced an issue on production related to a recent deploy, the cisco incident ID was CJPIM-632. It affected EU,UK and ANZ datacenters though, was not supposed to affect US (where I tested).&lt;/P&gt;&lt;P&gt;Could you please confirm your datacenter / api URL where you are retrieving the stats? e.g mine is api.wxcc-us1.cisco.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is highly likely that you hit the issue.&lt;/P&gt;&lt;P&gt;The deployment had since been rolled back so population of SL% was resolved. Since the stats package (data service) was deployed and rolled back the metrics are likely to be off until corrective scripts have been run. The ETA for those is over the next few days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A formal RCA will be released so you can reach out to your CSM/PSM from Cisco for more information on this by tagging the incident ID with them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Arunabh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 17:34:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4581357#M3192</guid>
      <dc:creator>Arunabh Bhattacharjee</dc:creator>
      <dc:date>2022-03-29T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: WxCC Queue Stats SLA from API</title>
      <link>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4581361#M3193</link>
      <description>&lt;P&gt;ah right, yeah I am using anz1&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 17:57:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/wxcc-queue-stats-sla-from-api/m-p/4581361#M3193</guid>
      <dc:creator>Sascha Monteiro</dc:creator>
      <dc:date>2022-03-29T17:57:07Z</dc:date>
    </item>
  </channel>
</rss>

