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.
CurrentMetricName
public 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.
CurrentMetricName
public 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.
CurrentMetricName
public 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.
CurrentMetricName
public 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.
CurrentMetricName
public java.lang.String getUnit()
The unit for the metric.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
The unit for the metric.
Unit
public void setUnit(java.lang.String unit)
The unit for the metric.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
unit
- The unit for the metric.
Unit
public 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.
Unit
public void setUnit(Unit unit)
The unit for the metric.
Constraints:
Allowed Values: SECONDS, COUNT, PERCENT
unit
- The unit for the metric.
Unit
public 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.
Unit
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.