public class MetricFilterV2
extends java.lang.Object
implements java.io.Serializable
Contains information about the filter used when retrieving metrics.
MetricFiltersV2 can be used on the following metrics:
AVG_AGENT_CONNECTING_TIME, CONTACTS_CREATED,
CONTACTS_HANDLED, SUM_CONTACTS_DISCONNECTED.
| Constructor and Description |
|---|
MetricFilterV2() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getMetricFilterKey()
The key to use for filtering data.
|
java.util.List<java.lang.String> |
getMetricFilterValues()
The values to use for filtering data.
|
int |
hashCode() |
void |
setMetricFilterKey(java.lang.String metricFilterKey)
The key to use for filtering data.
|
void |
setMetricFilterValues(java.util.Collection<java.lang.String> metricFilterValues)
The values to use for filtering data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MetricFilterV2 |
withMetricFilterKey(java.lang.String metricFilterKey)
The key to use for filtering data.
|
MetricFilterV2 |
withMetricFilterValues(java.util.Collection<java.lang.String> metricFilterValues)
The values to use for filtering data.
|
MetricFilterV2 |
withMetricFilterValues(java.lang.String... metricFilterValues)
The values to use for filtering data.
|
public java.lang.String getMetricFilterKey()
The key to use for filtering data.
Valid metric filter keys: INITIATION_METHOD,
DISCONNECT_REASON. These are the same values as the
InitiationMethod and DisconnectReason in the
contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's
Guide.
The key to use for filtering data.
Valid metric filter keys: INITIATION_METHOD,
DISCONNECT_REASON. These are the same values as the
InitiationMethod and DisconnectReason
in the contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's
Guide.
public void setMetricFilterKey(java.lang.String metricFilterKey)
The key to use for filtering data.
Valid metric filter keys: INITIATION_METHOD,
DISCONNECT_REASON. These are the same values as the
InitiationMethod and DisconnectReason in the
contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's
Guide.
metricFilterKey - The key to use for filtering data.
Valid metric filter keys: INITIATION_METHOD,
DISCONNECT_REASON. These are the same values as
the InitiationMethod and
DisconnectReason in the contact record. For more
information, see ContactTraceRecord in the Amazon Connect
Administrator's Guide.
public MetricFilterV2 withMetricFilterKey(java.lang.String metricFilterKey)
The key to use for filtering data.
Valid metric filter keys: INITIATION_METHOD,
DISCONNECT_REASON. These are the same values as the
InitiationMethod and DisconnectReason in the
contact record. For more information, see ContactTraceRecord in the Amazon Connect Administrator's
Guide.
Returns a reference to this object so that method calls can be chained together.
metricFilterKey - The key to use for filtering data.
Valid metric filter keys: INITIATION_METHOD,
DISCONNECT_REASON. These are the same values as
the InitiationMethod and
DisconnectReason in the contact record. For more
information, see ContactTraceRecord in the Amazon Connect
Administrator's Guide.
public java.util.List<java.lang.String> getMetricFilterValues()
The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND | TRANSFER |
QUEUE_TRANSFER | CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT | AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT | TELECOM_PROBLEM |
BARGED | CONTACT_FLOW_DISCONNECT |
OTHER | EXPIRED | API
The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND |
TRANSFER | QUEUE_TRANSFER |
CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT | AGENT_DISCONNECT
| THIRD_PARTY_DISCONNECT |
TELECOM_PROBLEM | BARGED |
CONTACT_FLOW_DISCONNECT | OTHER |
EXPIRED | API
public void setMetricFilterValues(java.util.Collection<java.lang.String> metricFilterValues)
The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND | TRANSFER |
QUEUE_TRANSFER | CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT | AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT | TELECOM_PROBLEM |
BARGED | CONTACT_FLOW_DISCONNECT |
OTHER | EXPIRED | API
metricFilterValues - The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND |
TRANSFER | QUEUE_TRANSFER |
CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT |
AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT |
TELECOM_PROBLEM | BARGED |
CONTACT_FLOW_DISCONNECT | OTHER |
EXPIRED | API
public MetricFilterV2 withMetricFilterValues(java.lang.String... metricFilterValues)
The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND | TRANSFER |
QUEUE_TRANSFER | CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT | AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT | TELECOM_PROBLEM |
BARGED | CONTACT_FLOW_DISCONNECT |
OTHER | EXPIRED | API
Returns a reference to this object so that method calls can be chained together.
metricFilterValues - The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND |
TRANSFER | QUEUE_TRANSFER |
CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT |
AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT |
TELECOM_PROBLEM | BARGED |
CONTACT_FLOW_DISCONNECT | OTHER |
EXPIRED | API
public MetricFilterV2 withMetricFilterValues(java.util.Collection<java.lang.String> metricFilterValues)
The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND | TRANSFER |
QUEUE_TRANSFER | CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT | AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT | TELECOM_PROBLEM |
BARGED | CONTACT_FLOW_DISCONNECT |
OTHER | EXPIRED | API
Returns a reference to this object so that method calls can be chained together.
metricFilterValues - The values to use for filtering data.
Valid metric filter values for INITIATION_METHOD:
INBOUND | OUTBOUND |
TRANSFER | QUEUE_TRANSFER |
CALLBACK | API
Valid metric filter values for DISCONNECT_REASON:
CUSTOMER_DISCONNECT |
AGENT_DISCONNECT |
THIRD_PARTY_DISCONNECT |
TELECOM_PROBLEM | BARGED |
CONTACT_FLOW_DISCONNECT | OTHER |
EXPIRED | API
public 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.Object