public class HistoricalMetric
extends java.lang.Object
implements java.io.Serializable
Contains information about a historical metric. For a description of each metric, see Historical Metrics Definitions in the Amazon Connect Administrator Guide.
| Constructor and Description |
|---|
HistoricalMetric() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the metric.
|
java.lang.String |
getStatistic()
The statistic for the metric.
|
Threshold |
getThreshold()
The threshold for the metric, used with service level metrics.
|
java.lang.String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
setName(HistoricalMetricName name)
The name of the metric.
|
void |
setName(java.lang.String name)
The name of the metric.
|
void |
setStatistic(Statistic statistic)
The statistic for the metric.
|
void |
setStatistic(java.lang.String statistic)
The statistic for the metric.
|
void |
setThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
|
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.
|
HistoricalMetric |
withName(HistoricalMetricName name)
The name of the metric.
|
HistoricalMetric |
withName(java.lang.String name)
The name of the metric.
|
HistoricalMetric |
withStatistic(Statistic statistic)
The statistic for the metric.
|
HistoricalMetric |
withStatistic(java.lang.String statistic)
The statistic for the metric.
|
HistoricalMetric |
withThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
|
HistoricalMetric |
withUnit(java.lang.String unit)
The unit for the metric.
|
HistoricalMetric |
withUnit(Unit unit)
The unit for the metric.
|
public java.lang.String getName()
The name of the metric.
Constraints:
Allowed Values: CONTACTS_QUEUED, CONTACTS_HANDLED,
CONTACTS_ABANDONED, CONTACTS_CONSULTED, CONTACTS_AGENT_HUNG_UP_FIRST,
CONTACTS_HANDLED_INCOMING, CONTACTS_HANDLED_OUTBOUND,
CONTACTS_HOLD_ABANDONS, CONTACTS_TRANSFERRED_IN,
CONTACTS_TRANSFERRED_OUT, CONTACTS_TRANSFERRED_IN_FROM_QUEUE,
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE, CONTACTS_MISSED,
CALLBACK_CONTACTS_HANDLED, API_CONTACTS_HANDLED, OCCUPANCY, HANDLE_TIME,
AFTER_CONTACT_WORK_TIME, QUEUED_TIME, ABANDON_TIME, QUEUE_ANSWER_TIME,
HOLD_TIME, INTERACTION_TIME, INTERACTION_AND_HOLD_TIME, SERVICE_LEVEL
The name of the metric.
HistoricalMetricNamepublic void setName(java.lang.String name)
The name of the metric.
Constraints:
Allowed Values: CONTACTS_QUEUED, CONTACTS_HANDLED,
CONTACTS_ABANDONED, CONTACTS_CONSULTED, CONTACTS_AGENT_HUNG_UP_FIRST,
CONTACTS_HANDLED_INCOMING, CONTACTS_HANDLED_OUTBOUND,
CONTACTS_HOLD_ABANDONS, CONTACTS_TRANSFERRED_IN,
CONTACTS_TRANSFERRED_OUT, CONTACTS_TRANSFERRED_IN_FROM_QUEUE,
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE, CONTACTS_MISSED,
CALLBACK_CONTACTS_HANDLED, API_CONTACTS_HANDLED, OCCUPANCY, HANDLE_TIME,
AFTER_CONTACT_WORK_TIME, QUEUED_TIME, ABANDON_TIME, QUEUE_ANSWER_TIME,
HOLD_TIME, INTERACTION_TIME, INTERACTION_AND_HOLD_TIME, SERVICE_LEVEL
name - The name of the metric.
HistoricalMetricNamepublic HistoricalMetric 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: CONTACTS_QUEUED, CONTACTS_HANDLED,
CONTACTS_ABANDONED, CONTACTS_CONSULTED, CONTACTS_AGENT_HUNG_UP_FIRST,
CONTACTS_HANDLED_INCOMING, CONTACTS_HANDLED_OUTBOUND,
CONTACTS_HOLD_ABANDONS, CONTACTS_TRANSFERRED_IN,
CONTACTS_TRANSFERRED_OUT, CONTACTS_TRANSFERRED_IN_FROM_QUEUE,
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE, CONTACTS_MISSED,
CALLBACK_CONTACTS_HANDLED, API_CONTACTS_HANDLED, OCCUPANCY, HANDLE_TIME,
AFTER_CONTACT_WORK_TIME, QUEUED_TIME, ABANDON_TIME, QUEUE_ANSWER_TIME,
HOLD_TIME, INTERACTION_TIME, INTERACTION_AND_HOLD_TIME, SERVICE_LEVEL
name - The name of the metric.
HistoricalMetricNamepublic void setName(HistoricalMetricName name)
The name of the metric.
Constraints:
Allowed Values: CONTACTS_QUEUED, CONTACTS_HANDLED,
CONTACTS_ABANDONED, CONTACTS_CONSULTED, CONTACTS_AGENT_HUNG_UP_FIRST,
CONTACTS_HANDLED_INCOMING, CONTACTS_HANDLED_OUTBOUND,
CONTACTS_HOLD_ABANDONS, CONTACTS_TRANSFERRED_IN,
CONTACTS_TRANSFERRED_OUT, CONTACTS_TRANSFERRED_IN_FROM_QUEUE,
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE, CONTACTS_MISSED,
CALLBACK_CONTACTS_HANDLED, API_CONTACTS_HANDLED, OCCUPANCY, HANDLE_TIME,
AFTER_CONTACT_WORK_TIME, QUEUED_TIME, ABANDON_TIME, QUEUE_ANSWER_TIME,
HOLD_TIME, INTERACTION_TIME, INTERACTION_AND_HOLD_TIME, SERVICE_LEVEL
name - The name of the metric.
HistoricalMetricNamepublic HistoricalMetric withName(HistoricalMetricName name)
The name of the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTACTS_QUEUED, CONTACTS_HANDLED,
CONTACTS_ABANDONED, CONTACTS_CONSULTED, CONTACTS_AGENT_HUNG_UP_FIRST,
CONTACTS_HANDLED_INCOMING, CONTACTS_HANDLED_OUTBOUND,
CONTACTS_HOLD_ABANDONS, CONTACTS_TRANSFERRED_IN,
CONTACTS_TRANSFERRED_OUT, CONTACTS_TRANSFERRED_IN_FROM_QUEUE,
CONTACTS_TRANSFERRED_OUT_FROM_QUEUE, CONTACTS_MISSED,
CALLBACK_CONTACTS_HANDLED, API_CONTACTS_HANDLED, OCCUPANCY, HANDLE_TIME,
AFTER_CONTACT_WORK_TIME, QUEUED_TIME, ABANDON_TIME, QUEUE_ANSWER_TIME,
HOLD_TIME, INTERACTION_TIME, INTERACTION_AND_HOLD_TIME, SERVICE_LEVEL
name - The name of the metric.
HistoricalMetricNamepublic Threshold getThreshold()
The threshold for the metric, used with service level metrics.
The threshold for the metric, used with service level metrics.
public void setThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
threshold - The threshold for the metric, used with service level metrics.
public HistoricalMetric withThreshold(Threshold threshold)
The threshold for the metric, used with service level metrics.
Returns a reference to this object so that method calls can be chained together.
threshold - The threshold for the metric, used with service level metrics.
public java.lang.String getStatistic()
The statistic for the metric.
Constraints:
Allowed Values: SUM, MAX, AVG
The statistic for the metric.
Statisticpublic void setStatistic(java.lang.String statistic)
The statistic for the metric.
Constraints:
Allowed Values: SUM, MAX, AVG
statistic - The statistic for the metric.
Statisticpublic HistoricalMetric withStatistic(java.lang.String statistic)
The statistic for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUM, MAX, AVG
statistic - The statistic for the metric.
Statisticpublic void setStatistic(Statistic statistic)
The statistic for the metric.
Constraints:
Allowed Values: SUM, MAX, AVG
statistic - The statistic for the metric.
Statisticpublic HistoricalMetric withStatistic(Statistic statistic)
The statistic for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SUM, MAX, AVG
statistic - The statistic for the metric.
Statisticpublic 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 HistoricalMetric 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 HistoricalMetric 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.