toValue method
Implementation
String toValue() {
switch (this) {
case CurrentMetricName.agentsOnline:
return 'AGENTS_ONLINE';
case CurrentMetricName.agentsAvailable:
return 'AGENTS_AVAILABLE';
case CurrentMetricName.agentsOnCall:
return 'AGENTS_ON_CALL';
case CurrentMetricName.agentsNonProductive:
return 'AGENTS_NON_PRODUCTIVE';
case CurrentMetricName.agentsAfterContactWork:
return 'AGENTS_AFTER_CONTACT_WORK';
case CurrentMetricName.agentsError:
return 'AGENTS_ERROR';
case CurrentMetricName.agentsStaffed:
return 'AGENTS_STAFFED';
case CurrentMetricName.contactsInQueue:
return 'CONTACTS_IN_QUEUE';
case CurrentMetricName.oldestContactAge:
return 'OLDEST_CONTACT_AGE';
case CurrentMetricName.contactsScheduled:
return 'CONTACTS_SCHEDULED';
case CurrentMetricName.agentsOnContact:
return 'AGENTS_ON_CONTACT';
case CurrentMetricName.slotsActive:
return 'SLOTS_ACTIVE';
case CurrentMetricName.slotsAvailable:
return 'SLOTS_AVAILABLE';
}
}