Functions
_genesys.FMname.sData
This function returns the value of a statistic for a specified object. For example, this function can be used to get the number of interactions waiting in a queue (that is, number of callers ahead of this caller), so that it can be announced to the caller via an IVR application while waiting for a target.
value _genesys.FMname.sData(object, statistic)
Parameters:
-
object: STRING which can be a variable or a constant — This is the name of the object for which the statistic value is requested. The format of this parameter value must use the target formats (for details see the Target Formats
section), but there are some exceptions based on the type of statistic (that is, the value of the statistic parameter) being requested. The following describes those exceptions:
-
If the statistic parameter value is CallsDistributed, CallsAnswered, DistributedPercentage, DistributedWaitingTime, NotDistributedPercentage, or NotDistributedWaitingTime, then the object parameter value can only be one of the following:
-
"R" — This represents the Queue functional module system as a whole (router).
-
"RP" — This is the route point associated with this session (that is, _data._dest)
-
In all other cases, it is the name of a virtual queue.
-
statistic: STRING which can be a variable or a constant — This is the name of the statistic being requested. A value of zero (0) will returned if:
-
The connection to the functional module's statistical system (Stat Server) is not available.
-
If the specified statistic is neither on the list of predefined statistics nor defined in the strategy.
-
If the string defining the object is not of a valid format or the type of object does not support that requested statistic.
Returns: value: NUMBER (FLOAT) — This is the current value of the statistic.
_genesys.FMname.getAvgData
This function
calculates the specified statistic for all listed targets and returns the average value of this statistic.
value _genesys.FMname.getAvgData(objects, statistic)
Parameters:
-
objects: STRING which can be a variable or a constant — This parameter is the list of comma-separated objects (targets, in the case of target selection functionality) which this calculation is to be done against.
-
statistic: STRING which can be a variable or a constant — This parameter defines the statistic that is to be used in this calculation.
Returns: value: NUMBER (FLOAT) — The result of the function is the average value for the requested statistic, based on the list of objects and their statistical values.
_genesys.FMname.getMinData
This function
calculates the specified statistic for all listed targets and returns the minimum value of this statistic.
value _genesys.FMname.getMinData(objects, statistic)
Parameters:
-
objects: STRING which can be a variable or a constant — This parameter is the list of comma-separated objects (targets, in the case of target selection functionality) which this calculation is to be done against.
-
statistic: STRING which can be a variable or a constant — This parameter defines the statistic that is to be used in this calculation.
Returns: value: NUMBER (FLOAT) — The result of the function is the minimum value for the requested statistic, based on the list of objects and their statistical values.
_genesys.FMname.getMaxData
This function
calculates the specified statistic for all listed targets and returns the maximum value of this statistic.
value _genesys.FMname.getMaxData(objects, statistic)
Parameters:
-
objects: STRING which can be a variable or a constant — This parameter is the list of comma-separated objects (targets, in the case of target selection functionality) which this calculation is to be done against.
-
statistic: STRING which can be a variable or a constant — This parameter defines the statistic that is to be used in this calculation.
Returns: value: NUMBER (FLOAT) — The result of the function is the maximum value for the requested statistic, based on the list of objects and their statistical values.