Struct aws_sdk_connect::types::MetricFilterV2
source · #[non_exhaustive]pub struct MetricFilterV2 {
pub metric_filter_key: Option<String>,
pub metric_filter_values: Option<Vec<String>>,
pub negate: bool,
}
Expand description
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
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.metric_filter_key: Option<String>
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.
metric_filter_values: Option<Vec<String>>
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
negate: bool
The flag to use to filter on requested metric filter values or to not filter on requested metric filter values. By default the negate is false
, which indicates to filter on the requested metric filter.
Implementations§
source§impl MetricFilterV2
impl MetricFilterV2
sourcepub fn metric_filter_key(&self) -> Option<&str>
pub fn metric_filter_key(&self) -> Option<&str>
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.
sourcepub fn metric_filter_values(&self) -> &[String]
pub fn metric_filter_values(&self) -> &[String]
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
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metric_filter_values.is_none()
.
source§impl MetricFilterV2
impl MetricFilterV2
sourcepub fn builder() -> MetricFilterV2Builder
pub fn builder() -> MetricFilterV2Builder
Creates a new builder-style object to manufacture MetricFilterV2
.
Trait Implementations§
source§impl Clone for MetricFilterV2
impl Clone for MetricFilterV2
source§fn clone(&self) -> MetricFilterV2
fn clone(&self) -> MetricFilterV2
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricFilterV2
impl Debug for MetricFilterV2
source§impl PartialEq for MetricFilterV2
impl PartialEq for MetricFilterV2
source§fn eq(&self, other: &MetricFilterV2) -> bool
fn eq(&self, other: &MetricFilterV2) -> bool
self
and other
values to be equal, and is used
by ==
.