Revision as of 18:16, November 18, 2013 by Clondon (talk | contribs) (Sample statistics.yaml)
Jump to: navigation, search

List of statistics to be monitored

Entry Format

2 modes of statistics definitions are supported. In simple mode the statistic type is defined in Configuation Manager and the statistics.yaml entry defines the additional statistics options and the statistic name in HTCC API. In the extended mode the full definition of statistic is provided in statitics.yaml entry. In this case there is no need to use CME for statistic definition. The switch between modes is defined basing on presence of statisticDefinitionEx property. If it's specified mode is considered to be extended and statisticDefinitionName is ignored if present.

Simple Mode Entry Format

Example:

name: test
statisticDefinitionName: TestAgentStat
objectType: QUEUE
timeProfile: OneDay
notificationMode: PERIODICAL
notificationFrequency: 10
timeRange: Range0-60
timeRange2: Range0-5

The properties meaning are:

  • name - the name of statistic as it appears in API request
  • statisticDefinitionName - the name of statistic type (definition) as it's in CME (See stat server user guide)
  • objectType - the type of objects statistic is applied. Possible values: AGENT|QUEUE|SKILL_Q|SKILL_AG:
    • AGENT - statistic is monitored for agents
    • QUEUE - statistic is monitored for queues
    • SKILL_AG - statistic is monitored for agentGroup, associated with skill
    • SKILL_Q - statistic is monitored for virtual queue, associated with skill
  • notificationMode - PERIODICAL
  • notificationFrequency - the frequency of notification (in seconds)
  • timeProfile - the name of timeProfile in CME used for statistic aggregation (See stat server user guide)
  • timeRange/timeRange2 - the timeranges names which are defined in CME and are used for calculating statistic. (See stat server user guide).

Extended mode entry format

To use this mode replace the statisticDefinitionName string with statisticDefinitionEx containing full definition of statistic type. Here is the sample format:

name: testServiceLevel
statisticDefinitionEx: 
    category: TotalNumberInTimeRangePercentage
    mainMask: CallAnswered
    subject: DNAction
    intervalType: GrowingWindow
    dynamicTimeProfile: "0:00"
    timeRangeLeft: 0
    timeRangeRight: 60
objectType: QUEUE
notificationMode: PERIODICAL
notificationFrequency: 10

Fields name, objectType, notificationMode, notificationFrequency have the same meaning as for simple mode. The statisticDefinitionEx defines the statistic to be collected. Please note the indentation here. No tabs can be used (See YAML 1.1 Spec).

The supported properties are:

Option Type Mandatory Default Value Note
category String Y The statistic's category
mainMask comma-delimited list Y The statistic's main mask
relativeMask comma-delimited list N Empty list The statistic's relative mask
subject String Y The statistic's subject
intervalType GrowingWindow OR

SinceLogin OR SlidingSelection OR SlidingWindow

N The statistic's interval type
dynamicTimeProfile String N The time profile (interval) value to be used
timeRangeLeft Integer N null The "from/left/start/lower" value of TimeRange interval
timeRangeRight Integer N null The "to/right/end/upper" value of TimeRange interval
timeRangeLeft2 Integer N null The "from/left/start/lower" value of TimeRange2 interval
timeRangeRight2 Integer N null The "to/right/end/upper" value of TimeRange2 interval
dynamicFilter String N null filter to be used
distinguishByConnId Boolean N null look for DCID in StatServerUserGuide

Please note that those properties are used for defining the statistics. Not all combinations are supported by StatServer. See |File:81fr us-statserver.pdf Stat Server user guide for more info.

Queue Statistics

[+] Total_Answered

[+] Total_Abandoned

[+] Current_In_Queue

[+] CurrMaxCallWaitingTime

[+] ServiceLevel

[+] AverageWaitingTime

Skills Statistics

[+] CurrentNotReadyAgents

[+] CurrentReadyAgents

[+] CurrNumberInCall

[+] LongestIdleTime

[+] AverageHandlingTime

[+] ServiceLevel

Agent Statistics

[+] Internal statistics

[+] Other agent statistics

Sample statistics.yaml

This list is the minimal list - it contains only statistics which are required for current version of UI.

#internal stats
name: CurrentTargetState
statisticDefinitionEx:
    category: CurrentTargetState
    mainMask: '*'
    subject: DNStatus
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
objectType: AGENT
notificationMode: IMMEDIATE
notificationFrequency: 0
--- 
name: CurrentAgentState
notificationFrequency: 0
notificationMode: IMMEDIATE
objectType: AGENT
statisticDefinitionEx:
    category: CurrentState
    mainMask: '*'
    subject: DNAction
---
#queue
name: Total_Answered
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: QUEUE
statisticDefinitionEx:
    category: TotalNumber
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallAnswered
    subject: DNAction
--- 
name: Total_Abandoned
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: QUEUE
statisticDefinitionEx:
    category: TotalNumber
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallAbandoned
    subject: DNAction
--- 
name: Current_In_Queue
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: QUEUE
statisticDefinitionEx:
    category: CurrentNumber
    mainMask: CallWait
    subject: DNAction
--- 
name: CurrMaxCallWaitingTime
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: QUEUE
statisticDefinitionEx:
    category: CurrentMaxTime
    mainMask: CallWait
    relativeMask: CallWait
    subject: DNAction
--- 
name: AverageWaitingTime
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: QUEUE
statisticDefinitionEx:
    category: AverageTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallWait
    relativeMask: CallWait
    subject: DNAction
--- 
#Skill AG
name: CurrentNotReadyAgents
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: SKILL_AG
statisticDefinitionEx:
    category: CurrentNumber
    mainMask: AfterCallWork, NotReadyForNextCall
    subject: AgentStatus
--- 
name: CurrentReadyAgents
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: SKILL_AG
statisticDefinitionEx:
    category: CurrentNumber
    mainMask: WaitForNextCall
    subject: AgentStatus
--- 
name: CurrNumberInCall
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: SKILL_AG
statisticDefinitionEx:
    category: CurrentNumber
    mainMask: CallUnknown, CallConsult, CallInternal, CallOutbound, CallInbound, CallRinging, CallDialing
    subject: AgentStatus
---
name: CurrentNumberLoggedInAgents
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: SKILL_AG
statisticDefinitionEx:
    category: CurrentNumber
    mainMask: '*,~LoggedOut,~NotMonitored'
    subject: AgentStatus    
---  
name: LongestIdleTime
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: SKILL_AG
statisticDefinitionEx:
    category: CurrentMaxTime
    mainMask: WaitForNextCall
    subject: AgentStatus
--- 
name: AverageHandlingTime
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: SKILL_AG
statisticDefinitionEx:
    category: AverageTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallUnknown, CallConsult, CallInternal, CallOutbound, CallInbound, AfterCallWork
    relativeMask: CallUnknown, CallConsult, CallInternal, CallOutbound, CallInbound
    subject: DNStatus
--- 
#agent
name: AverageHandlingTime
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: AverageTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallUnknown, CallConsult, CallInternal, CallOutbound, CallInbound, AfterCallWork
    relativeMask: CallUnknown, CallConsult, CallInternal, CallOutbound, CallInbound
    subject: DNStatus
--- 
name: Productivity
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: AverageNumberPerRelativeHour
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallInbound,CallOutbound,CallInternal,CallConsult,CallUnknown
    relativeMask: '*,~LoggedOut,~NotMonitored'
    subject: AgentStatus
--- 
name: InboundCalls
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalNumber
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallInbound
    subject: DNAction
--- 
name: InternalCalls
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalNumber
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallInternal
    subject: DNAction
--- 
name: OutboundCalls
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalNumber
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallOutbound
    subject: DNAction
--- 
name: ConsultCalls
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalNumber
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallConsult
    subject: DNAction
--- 
name: ReadyDuration
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalAdjustedTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: WaitForNextCall
    subject: AgentStatus
--- 
name: WrapDuration
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalAdjustedTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: AfterCallWork
    relativeMask: AfterCallWork
    subject: AgentStatus
--- 
name: TalkDuration
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalAdjustedTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallUnknown, CallConsult, CallInternal, CallOutbound, CallInbound
    subject: DNAction
--- 
name: HoldDuration
notificationFrequency: 10
notificationMode: PERIODICAL
objectType: AGENT
statisticDefinitionEx:
    category: TotalAdjustedTime
    dynamicTimeProfile: "0:00"
    intervalType: GrowingWindow
    mainMask: CallOnHoldInbound,CallOnHoldOutbound,CallOnHoldInternal,CallOnHoldConsult,CallOnHoldUnknown
    subject: DNAction
--- 
#service level
name: ServiceLevel
statisticDefinitionEx: 
    category: ServiceFactor1
    subject: DNAction
    intervalType: GrowingWindow
    dynamicTimeProfile: "0:00+1:00"
    timeRangeLeft: 0
    timeRangeRight: 120
    timeRangeLeft2: 0
    timeRangeRight2: 10
objectType: QUEUE
notificationMode: PERIODICAL
notificationFrequency: 10
--- 
name: ServiceLevel
statisticDefinitionEx: 
    category: ServiceFactor1
    subject: DNAction
    intervalType: GrowingWindow
    dynamicTimeProfile: "0:00+1:00"
    timeRangeLeft: 0
    timeRangeRight: 120
    timeRangeLeft2: 0
    timeRangeRight2: 10
objectType: SKILL_Q
notificationMode: PERIODICAL
notificationFrequency: 10

Resources

Comments or questions about this documentation? Contact us for support!