Author Topic: How to get selected queue info and specify multiple statistic metric  (Read 4242 times)

Offline Alyw

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
I'm developing an agent desktop using PSDK 8.5 and C#.NET. In the agent desktop, there is a space to display the selected virtual queue info.

Here's what I've got from CCPulse:

Environment
  [-]Switches
      [-]prepaid_vqs
            prepaid_vq_bpo1
            technicalprepaid_vq_bpo1
      [-]symphony
            corporate_vq_bpo2

Question 1: How can I get to "prepaid_vq", which is under "prepaid_vqs"? As what I've tried below, it only reach to "prepaid_vqs" only.

RequestOpenStatistic requestOpenStatistic = RequestOpenStatistic.Create();
requestOpenStatistic.StatisticObject = StatisticObject.Create();
requestOpenStatistic.StatisticObject.ObjectId = "prepaid_vqs";
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.GroupQueues;
requestOpenStatistic.StatisticObject.TenantName = "Environment";
requestOpenStatistic.StatisticObject.TenantPassword = "";

Question 2: How can I specify multiple statistic metric (eg. ServiceFactor, CurrNumberWaitingCalls) at one time and send them together under the same ReferenceId?

requestOpenStatistic.StatisticMetric = StatisticMetric.Create("ServiceFactor");

At the end, my expected result is something like below that will be displayed on the agent desktop (with the statistic data for each column):

QueueName      Service Factor      CurrMaxWaitingTime
prepaid_vq       
corporate_vq   



Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: How to get selected queue info and specify multiple statistic metric
« Reply #1 on: August 24, 2015, 07:57:09 AM »
1. You can retrieve all VQ under any folder via Configuration SDK, After that just use these object's ids as "objectId" parameter
2. You cannot make a one request with multiple stat definition. Just create particular request for each stat.

Offline Alyw

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: How to get selected queue info and specify multiple statistic metric
« Reply #2 on: August 25, 2015, 01:32:49 PM »
Hi Kubig, thanks for your comments. For point 1, can it be done in Config Manager? Because it will be easier for me instead of using Configuration SDK.

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: How to get selected queue info and specify multiple statistic metric
« Reply #3 on: August 25, 2015, 01:54:08 PM »
I do not understand what did you mean by "can it be done in Config Manager?" - Yes, you can retrieve all requested VQs within CME (Configuration Manager), but it has nothing to do with PSDK. You cannot retrieve data within PSDK "through" CME - it does not make a sense, because the CME is just a client/gui.

Offline Alyw

  • Newbie
  • *
  • Posts: 20
  • Karma: 0
Re: How to get selected queue info and specify multiple statistic metric
« Reply #4 on: August 25, 2015, 02:33:35 PM »
As replied from Genesys, this works fine:

requestOpenStatistic.StatisticObject.ObjectId = "prepaid_vq@SwitchNameFromCME";
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.Queue;

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: How to get selected queue info and specify multiple statistic metric
« Reply #5 on: August 25, 2015, 02:54:37 PM »
Yes, it works - I think that your problem was in "how to retrieve the particulars VQs".