CCPulse statistic calculation

Does anybody Know the custom script for Maximum waiting time in Queue in CCPulse+? If there are 3 calls in Queue, the output should be the maximum wait time.

Please help..

Hi linalf,

Can i ask why you would only want to see max wait time if there is more than 3 calls waiting?

Mark

CurrMaxWaitTime is standard in CCPulse.
Run it against Queue or VQ.

1 Like

Don’t have CCPulse to hand to try this, but something like this could work:


if ccpulse.statistic("CurrMaxWaitingCalls") < 3
	'-- : -- : --'
else
	result.Duration = ccpulse.statistic("CurrMaxWaitTime")

Basically, if there are less than 3 calls queuing, Max Wait Time will be --:–:–.

Potentially the above might not work, but it can be done from the stats within the template easily, would make it like:


if(ccpulse.Calls.Wait < 1)
	'-- : -- : --'
else
	result.Duration = ccpulse.Time.MaxWait

ccpulse.Calls.Wait is your CurrNumberWaitingCalls stat in the template
ccpulse.Time.MaxWait is your CurrMaxWaitTime stat in the template.

Hope that helps!

1 Like