public class CurrentMetric
extends java.lang.Object
implements java.io.Serializable
Contains information about a real-time metric. For a description of each metric, see Real-time Metrics Definitions in the Amazon Connect Administrator Guide.
| Constructor and Description |
|---|
CurrentMetric() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the metric.
|
java.lang.String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
setName(CurrentMetricName name)
The name of the metric.
|
void |
setName(java.lang.String name)
The name of the metric.
|
void |
setUnit(java.lang.String unit)
The unit for the metric.
|
void |
setUnit(Unit unit)
The unit for the metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CurrentMetric |
withName(CurrentMetricName name)
The name of the metric.
|
CurrentMetric |
withName(java.lang.String name)
The name of the metric.
|
CurrentMetric |
withUnit(java.lang.String unit)
The unit for the metric.
|
CurrentMetric |
withUnit(Unit unit)
The unit for the metric.
|
public java.lang.String getName()
The name of the metric.
Constraints:
Allowed Values: AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL,
AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR,
AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE,
CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
The name of the metric.
CurrentMetricNamepublic void setName(java.lang.String name)
The name of the metric.
Constraints:
Allowed Values: AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL,
AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR,
AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE,
CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
name - The name of the metric.
CurrentMetricNamepublic CurrentMetric withName(java.lang.String name)
The name of the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL,
AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR,
AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE,
CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
name - The name of the metric.
CurrentMetricNamepublic void setName(CurrentMetricName name)
The name of the metric.
Constraints:
Allowed Values: AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL,
AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR,
AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE,
CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
name - The name of the metric.
CurrentMetricNamepublic CurrentMetric withName(CurrentMetricName name)
The name of the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: AGENTS_ONLINE, AGENTS_AVAILABLE, AGENTS_ON_CALL,
AGENTS_NON_PRODUCTIVE, AGENTS_AFTER_CONTACT_WORK, AGENTS_ERROR,
AGENTS_STAFFED, CONTACTS_IN_QUEUE, OLDEST_CONTACT_AGE,
CONTACTS_SCHEDULED, AGENTS_ON_CONTACT, SLOTS_ACTIVE, SLOTS_AVAILABLE
name - The name of the metric.
CurrentMetricNamepublic java.lang.String getUnit()
The unit for the metric.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
The unit for the metric.
Unitpublic void setUnit(java.lang.String unit)
The unit for the metric.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
unit - The unit for the metric.
Unitpublic CurrentMetric withUnit(java.lang.String unit)
The unit for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
unit - The unit for the metric.
Unitpublic void setUnit(Unit unit)
The unit for the metric.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
unit - The unit for the metric.
Unitpublic CurrentMetric withUnit(Unit unit)
The unit for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
unit - The unit for the metric.
Unitpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.