{"id":5145,"date":"2022-07-14T13:44:27","date_gmt":"2022-07-14T08:14:27","guid":{"rendered":"https:\/\/docs.kore.ai\/smartassist\/?p=5145"},"modified":"2022-07-14T13:44:27","modified_gmt":"2022-07-14T08:14:27","slug":"get-agent-desktop-queue-stats","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/agentassist\/get-agent-desktop-queue-stats\/","title":{"rendered":"Get Agent desktop queue stats"},"content":{"rendered":"<h2><span class=\"ez-toc-section\" id=\"Overview\"><\/span>Overview<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400\">This method is used to fetch the statuses of Agent Desktop queues.<\/span><\/p>\n<p><span style=\"font-weight: 400\">(TBD)<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Request\"><\/span>Request<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>This section describes the information that is available in the request<\/p>\n<table>\n<tbody>\n<tr>\n<th><b>Method<\/b><\/th>\n<th>URL<\/th>\n<th>End Point<\/th>\n<\/tr>\n<tr>\n<td>\n<pre>GET<\/pre>\n<\/td>\n<td><\/td>\n<td>\n<pre>\/public\/{streamId}\/analytics\/queue<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Request_Parameters\"><\/span>Request Parameters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"Path_Parameters\"><\/span>Path Parameters<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<th><b>Type\/Value<\/b><\/th>\n<\/tr>\n<tr>\n<td>streamId *<\/td>\n<td>\u00a0Y<\/td>\n<td>Stream ID<br \/>\n<span style=\"font-weight: 400\">(e.g. <\/span><span style=\"font-weight: 400\">\u00a0st-606c43de5e00ca5f4e27e38a)<\/span><\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span class=\"ez-toc-section\" id=\"Query_Parameters\"><\/span>Query Parameters<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<th><b>Type\/Value<\/b><\/th>\n<\/tr>\n<tr>\n<td>metrics<\/td>\n<td>N<\/td>\n<td>Comma separated widget list<\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td>startDate *<\/td>\n<td>\u00a0Y<\/td>\n<td>Date in ISO81 format<br \/>\n(e.g.. 2021-03-31T12:01:00.000Z)<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>endDate *<\/td>\n<td>\u00a0Y<\/td>\n<td>Date in ISO81 format<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>compareStartDate<\/td>\n<td>\u00a0N<\/td>\n<td>Date in ISO81 format<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>compareEndDate<\/td>\n<td>\u00a0N<\/td>\n<td>Date in ISO81 format<\/td>\n<td>Date<\/td>\n<\/tr>\n<tr>\n<td>agentGroupIds[]<\/td>\n<td>\u00a0N<\/td>\n<td>Agent group ids<\/td>\n<td>String<\/td>\n<\/tr>\n<tr>\n<td>agentIds[]<\/td>\n<td>\u00a0N<\/td>\n<td>List of user ids<\/td>\n<td>String<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Sample_Request\"><\/span>Sample Request<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre>TBD<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Response\"><\/span><span style=\"color: #26344a;font-size: 16px;letter-spacing: 0em\">Response<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following table describes the information that is available in the response.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Response_Fields\"><\/span>Response Fields<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<table>\n<tbody>\n<tr>\n<th><b>Parameter<\/b><\/th>\n<th><b>Required\/Optional<\/b><\/th>\n<th><b>Description<\/b><\/th>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n[\/vc_column_text]<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Authorization\"><\/span>Authorization<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400\">Invoke the API with JWT in the header with the following syntax:<\/span><\/p>\n<pre><span style=\"font-weight: 400\">auth: {{JWT}}<\/span><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Response_Content_Type\"><\/span>Response Content Type<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><code>application\/json<\/code><\/p>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Sample_Response\"><\/span>Sample Response<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre><code>{\n  <span class=\"hljs-attr\">\"queue\"<\/span>: [\n    {\n      <span class=\"hljs-attr\">\"previous\"<\/span>: 10,\n      <span class=\"hljs-attr\">\"total\"<\/span>: 10,\n      <span class=\"hljs-attr\">\"voice\"<\/span>: 10,\n      <span class=\"hljs-attr\">\"chat\"<\/span>: 10,\n      <span class=\"hljs-attr\">\"email\"<\/span>: 10,\n      <span class=\"hljs-attr\">\"time\"<\/span>: \"2021-03-31T12:01:00.000Z\"\n    }\n  ],\n  <span class=\"hljs-attr\">\"averageWaitTime\"<\/span>: {\n    <span class=\"hljs-attr\">\"total\"<\/span>: 10,\n    <span class=\"hljs-attr\">\"percentageChange\"<\/span>: 10,\n    <span class=\"hljs-attr\">\"previous\"<\/span>: 10\n  }\n}<\/code><\/pre>\n<\/div><\/div><div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>[\/vc_column][\/vc_row]\n","protected":false},"excerpt":{"rendered":"<p>Overview This method is used to fetch the statuses of Agent Desktop queues. (TBD) Request This section describes the information that is available in the request Method URL End Point GET \/public\/{streamId}\/analytics\/queue Request Parameters Path Parameters Parameter Required Description Type\/Value streamId * \u00a0Y Stream ID (e.g. \u00a0st-606c43de5e00ca5f4e27e38a) String Query Parameters Parameter Required Description Type\/Value metrics&#8230;<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5145"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/comments?post=5145"}],"version-history":[{"count":0,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/posts\/5145\/revisions"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/media?parent=5145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/categories?post=5145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/agentassist\/wp-json\/wp\/v2\/tags?post=5145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}