Platform SDK Java 8.5 API Reference

com.genesyslab.platform.reporting.protocol.statserver.requests
Class RequestGetStatisticEx

java.lang.Object
  extended by com.genesyslab.platform.commons.protocol.DataObject
      extended by com.genesyslab.platform.commons.protocol.Message
          extended by com.genesyslab.platform.reporting.protocol.statserver.requests.RequestGetStatisticEx
All Implemented Interfaces:
ProtocolDescriptionSupport

public abstract class RequestGetStatisticEx
extends Message

Requests one-time notification about a statistic that is defined in this request.

Required parameters:

Name Description
StatisticMetricEx Contains a detailed description of the type of statistical information to be gathered for the statistic object.
StatisticObject The statistic object for which data is requested.

Related Events:
Name Description
EventCurrentTargetStateSnapshot Contains the CurrentTargetStateSnapshot data structure, which includes information about routing targets such as agent, place, agent group, and place group states.
EventInfo Contains information about a statistics request that does not concern a routing target.
EventError Indicates that the request encountered an error.

Example:

 RequestGetStatisticEx request = RequestGetStatisticEx.create();
 StatisticObject object = StatisticObject.create();
 object.setObjectId("An_Agent");
 object.setObjectType(StatisticObjectType.Agent);
 object.setTenantName("The_Tenant");
 object.setTenantPassword("password");
 
 request.setStatisticObject(object);
 
 DnActionMask mainMask = ActionsMask.createDNActionsMask();
 mainMask.setBit(DnActions.WaitForNextCall);
 mainMask.setBit(DnActions.CallDialing);
 mainMask.setBit(DnActions.CallRinging);
 mainMask.setBit(DnActions.NotReadyForNextCall);
 mainMask.setBit(DnActions.CallOnHold);
 mainMask.setBit(DnActions.CallUnknown);
 mainMask.setBit(DnActions.CallConsult);
 mainMask.setBit(DnActions.CallInternal);
 mainMask.setBit(DnActions.CallOutbound);
 mainMask.setBit(DnActions.CallInbound);
 mainMask.setBit(DnActions.LoggedOut);
 
 DnActionMask relMask = ActionsMask.createDNActionsMask();
 
 StatisticMetricEx metric = StatisticMetricEx.create();
 metric.setCategory(StatisticCategory.CurrentState);
 metric.setMainMask(mainMask);
 metric.setRelativeMask(relMask);
 metric.setSubject(StatisticSubject.DNStatus);
 
 request.setStatisticMetricEx(metric);
 
 request.setReferenceId(anIntThatYouSpecify);
 
 Message response = statProtocol.request(request);
 


Field Summary
static int ID
           
static java.lang.String NAME
           
 
Method Summary
static RequestGetStatisticEx create()
          Creates instance of RequestGetStatisticEx with no parameters set.
static RequestGetStatisticEx create(StatisticObject statisticObject, StatisticMetricEx statisticMetricEx)
          Creates instance of RequestGetStatisticEx with required parameters set.
static RequestGetStatisticEx create(StatisticObject statisticObject, StatisticMetricEx statisticMetricEx, java.lang.String statisticExtension, java.lang.String statisticExtensionSubcategory, KeyValueCollection extensions, java.lang.Integer tag)
          Creates instance of RequestGetStatisticEx with all parameters set.
abstract  KeyValueCollection getExtensions()
           
abstract  java.lang.Integer getReferenceId()
          A unique integer that is specified for identification of requested statistics.
abstract  java.lang.String getStatisticExtension()
           
abstract  java.lang.String getStatisticExtensionSubcategory()
           
abstract  StatisticMetricEx getStatisticMetricEx()
           
abstract  StatisticObject getStatisticObject()
           
abstract  java.lang.Integer getTag()
          User reference ID.
abstract  void setExtensions(KeyValueCollection extensions)
           
abstract  void setReferenceId(int referenceId)
          A unique integer that is specified for identification of requested statistics.
abstract  void setReferenceId(java.lang.Integer referenceId)
          A unique integer that is specified for identification of requested statistics.
abstract  void setStatisticExtension(java.lang.String statisticExtension)
           
abstract  void setStatisticExtensionSubcategory(java.lang.String statisticExtensionSubcategory)
           
abstract  void setStatisticMetricEx(StatisticMetricEx statisticMetricEx)
           
abstract  void setStatisticObject(StatisticObject statisticObject)
           
abstract  void setTag(int tag)
          User reference ID.
abstract  void setTag(java.lang.Integer tag)
          User reference ID.
 
Methods inherited from class com.genesyslab.platform.commons.protocol.Message
cloneMessage, getEndpoint, getMessageAttribute, getProtocolDescription, getProtocolId, messageId, messageName, setProtocolDescription
 
Methods inherited from class com.genesyslab.platform.commons.protocol.DataObject
equals, hashCode, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final int ID
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Method Detail

create

public static RequestGetStatisticEx create()
Creates instance of RequestGetStatisticEx with no parameters set.

Returns:
instance of RequestGetStatisticEx

create

public static RequestGetStatisticEx create(StatisticObject statisticObject,
                                           StatisticMetricEx statisticMetricEx,
                                           java.lang.String statisticExtension,
                                           java.lang.String statisticExtensionSubcategory,
                                           KeyValueCollection extensions,
                                           java.lang.Integer tag)
Creates instance of RequestGetStatisticEx with all parameters set.

Parameters:
statisticObject - StatisticObject
statisticMetricEx - StatisticMetricEx
statisticExtension - StatisticExtension
statisticExtensionSubcategory - StatisticExtensionSubcategory
extensions - Extensions
tag - Tag
Returns:
instance of RequestGetStatisticEx

create

public static RequestGetStatisticEx create(StatisticObject statisticObject,
                                           StatisticMetricEx statisticMetricEx)
Creates instance of RequestGetStatisticEx with required parameters set.

Parameters:
statisticObject - StatisticObject
statisticMetricEx - StatisticMetricEx
Returns:
instance of RequestGetStatisticEx

getReferenceId

public abstract java.lang.Integer getReferenceId()
A unique integer that is specified for identification of requested statistics. This property can be assigned automatically just before sending a message. If property has already been assigned, it will not be modified automatically. If you specify this property on your own, you should guarantee its uniqueness.


setReferenceId

public abstract void setReferenceId(java.lang.Integer referenceId)
A unique integer that is specified for identification of requested statistics. This property can be assigned automatically just before sending a message. If property has already been assigned, it will not be modified automatically. If you specify this property on your own, you should guarantee its uniqueness.


setReferenceId

public abstract void setReferenceId(int referenceId)
A unique integer that is specified for identification of requested statistics. This property can be assigned automatically just before sending a message. If property has already been assigned, it will not be modified automatically. If you specify this property on your own, you should guarantee its uniqueness.


getStatisticObject

public abstract StatisticObject getStatisticObject()

setStatisticObject

public abstract void setStatisticObject(StatisticObject statisticObject)

getStatisticMetricEx

public abstract StatisticMetricEx getStatisticMetricEx()

setStatisticMetricEx

public abstract void setStatisticMetricEx(StatisticMetricEx statisticMetricEx)

getStatisticExtension

public abstract java.lang.String getStatisticExtension()

setStatisticExtension

public abstract void setStatisticExtension(java.lang.String statisticExtension)

getStatisticExtensionSubcategory

public abstract java.lang.String getStatisticExtensionSubcategory()

setStatisticExtensionSubcategory

public abstract void setStatisticExtensionSubcategory(java.lang.String statisticExtensionSubcategory)

getExtensions

public abstract KeyValueCollection getExtensions()

setExtensions

public abstract void setExtensions(KeyValueCollection extensions)

getTag

public abstract java.lang.Integer getTag()
User reference ID.


setTag

public abstract void setTag(java.lang.Integer tag)
User reference ID.


setTag

public abstract void setTag(int tag)
User reference ID.


Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.