Hello,
I am using ccpulse. I know what I'm doing could also be done with CCAnalyze or getting data directly from the statserver, but both of those are not doable by me at this moment, it has to be done in ccpulse.
I have a formula that puts several statistics of a VQ object into a csv string (like "N_CURR_WAIT;OCN;ANS;AHT;SVL")... you get the idea.
I have also written an Action that writes the value of this string into a .csv file (it first checks if the specific VQ Object eg "VQ_Spanish" already exists in the file and if yes, it overwrites the line and if not, it adds the VQ and its values as a new line.
All this works fine, however I face a very specific problem now:
In order to actually make the Action fire, I of course need a Threshold. I have written several, but for simplicity, let's take this one:
[code]
if Minute(Now) mod 2 = 0 then
Threshold.Result = true
else
Threshold.Result = false
end if
[/code]
So the Threshold is true every even minute of the hour and false every odd minute. So far so good. I now apply this Threshold to the Export String Formula, but now I have the following problem: In order for the action to fire, not only must the minute of the hour be even, but also, the formula has to recalculate during this period (if no one is calling on that VQ during the minute or no other statistic changes, nothing happens). Also, in order to later fire the Action again, the Formula also has to recalculate during an odd minute of the hour, so it sets the Threshold to false and be ready, to set it to true again later and fire the action again.
This works fine for queues with constant activity, but it creates problems for VQs with very little activity (maybe 10 calls a day). I am already using a different Threshold, where true and false alternates every 5 seconds, but even then values of VQs with very little activity are not always reliably recalculated both during the true and false interval, which results the export file showing e.g. one waiting call on that VQ, even though the last call happened several hours ago.
Is there a way to force recalculate a formula even when no statistic changes? Or to force fire an Action after a set time interval without the need to have a Threshold be true?