Author Topic: Statistic new notification  (Read 3954 times)

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Statistic new notification
« on: December 23, 2010, 07:42:39 PM »
Hi guys,
I'm testing the StatSDK and using the sample provided from DevZone. For stats of Queue Type (CallsWaiting) when a notification arrives it does specify the name of the metric, but if I apply the same for Group of Agents then only the value of the statistic arribes, therefore makes a little bit complicated on how to handle the updates as there is no reference on what is being updated...do you have any suggestions?

My code sample:
Quote:StatisticObject objectDescription1 = new StatisticObject(tenantName, dn1, StatisticObjectType.AgentGroup );

StatisticMetric statisticMetric = new StatisticMetric("CurrNumberAgentsLoggedIn");

Statistic AGLOG1 = new Statistic(objectDescription1, statisticMetric);

statisticsCollection.AddStatistic(AGLOG1);

Notification notification = Notification.Create(NotificationMode.Immediate,5);

RequestOpenPackage requestOpenPackage = RequestOpenPackage.Create(132,StatisticType.Curren t ,statisticsCollection,notification);

First time result:

Quote:Statistic IntValue is: 3
Statistic StringValue is: 3
Statistic ObjectValue is:
Statistic ExtendedValue is:
Statistic Tenant is: eBD
Statistic Type is: AgentGroup
Statistic Id is: PM1
Statistic TimeProfile is: CollectorDefault
Statistic StatisticType is: CurrNumberAgentsLoggedIn
Statistic TimeRange is: Range0-120

Return after a change on the AG:
Quote:Statistic IntValue is: 1
Statistic StringValue is: 1
Statistic ObjectValue is:
Statistic ExtendedValue is:
Statistic Tenant is: eBD
Statistic Type is: AgentGroup
Statistic Id is: PM3
Statistic TimeProfile is:
Statistic StatisticType is: Value
Statistic TimeRange is:

Thanks in advance!

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Statistic new notification
« Reply #1 on: December 28, 2010, 03:03:02 PM »
Hi Cav,

First update doesn't look like to be queue-related and all details are available...

[font=courier]Statistic IntValue is: 3
Statistic StringValue is: 3
Statistic ObjectValue is:
Statistic ExtendedValue is:
Statistic Tenant is: eBD
Statistic [color=red][b]Type is: AgentGroup[/b][/color]
Statistic Id is: PM1
Statistic TimeProfile is: CollectorDefault
Statistic StatisticType is: CurrNumberAgentsLoggedIn
Statistic TimeRange is: Range0-120[/font]

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Statistic new notification
« Reply #2 on: December 28, 2010, 06:17:56 PM »
Yes, it is ok.
What I ment was that when I open by first time the statistic it arrives with all data values on the statistic object (first notification) however on consecutives ones the statistic object only arrives with the values of second result. However if I apply the same for Queue objects (haven't post output samples for it) it does work fine all the time.

Thanks René

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Statistic new notification
« Reply #3 on: December 29, 2010, 11:36:16 AM »
Hi Cav,

What version of Platform SDK do you have?
What is the name of sample from DevZone? I will download it and try it myself :)

R.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Statistic new notification
« Reply #4 on: December 29, 2010, 05:16:00 PM »
René,
Thanks a lot for your support :)

Version: 7.6.201.06
sdk_code_platform_stat-net

Thanks

PD: If you can't find the sample on DevZone let me know to send it to your email :)

Thanks