aws_sdk_connect/operation/get_metric_data_v2/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::get_metric_data_v2::_get_metric_data_v2_output::GetMetricDataV2OutputBuilder;
3
4pub use crate::operation::get_metric_data_v2::_get_metric_data_v2_input::GetMetricDataV2InputBuilder;
5
6impl crate::operation::get_metric_data_v2::builders::GetMetricDataV2InputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::get_metric_data_v2::GetMetricDataV2Output,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::get_metric_data_v2::GetMetricDataV2Error,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.get_metric_data_v2();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `GetMetricDataV2`.
24///
25/// <p>Gets metric data from the specified Amazon Connect instance.</p>
26/// <p><code>GetMetricDataV2</code> offers more features than <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_GetMetricData.html">GetMetricData</a>, the previous version of this API. It has new metrics, offers filtering at a metric level, and offers the ability to filter and group data by channels, queues, routing profiles, agents, and agent hierarchy levels. It can retrieve historical data for the last 3 months, at varying intervals. It does not support agent queues.</p>
27/// <p>For a description of the historical metrics that are supported by <code>GetMetricDataV2</code> and <code>GetMetricData</code>, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definitions</a> in the <i>Amazon Connect Administrator Guide</i>.</p><note>
28/// <p>When you make a successful API request, you can expect the following metric values in the response:</p>
29/// <ol>
30/// <li>
31/// <p><b>Metric value is null</b>: The calculation cannot be performed due to divide by zero or insufficient data</p></li>
32/// <li>
33/// <p><b>Metric value is a number (including 0) of defined type</b>: The number provided is the calculation result</p></li>
34/// <li>
35/// <p><b>MetricResult list is empty</b>: The request cannot find any data in the system</p></li>
36/// </ol>
37/// <p>The following guidelines can help you work with the API:</p>
38/// <ul>
39/// <li>
40/// <p>Each dimension in the metric response must contain a value</p></li>
41/// <li>
42/// <p>Each item in MetricResult must include all requested metrics</p></li>
43/// <li>
44/// <p>If the response is slow due to large result sets, try these approaches:</p>
45/// <ul>
46/// <li>
47/// <p>Narrow the time range of your request</p></li>
48/// <li>
49/// <p>Add filters to reduce the amount of data returned</p></li>
50/// </ul></li>
51/// </ul>
52/// </note>
53#[derive(::std::clone::Clone, ::std::fmt::Debug)]
54pub struct GetMetricDataV2FluentBuilder {
55    handle: ::std::sync::Arc<crate::client::Handle>,
56    inner: crate::operation::get_metric_data_v2::builders::GetMetricDataV2InputBuilder,
57    config_override: ::std::option::Option<crate::config::Builder>,
58}
59impl
60    crate::client::customize::internal::CustomizableSend<
61        crate::operation::get_metric_data_v2::GetMetricDataV2Output,
62        crate::operation::get_metric_data_v2::GetMetricDataV2Error,
63    > for GetMetricDataV2FluentBuilder
64{
65    fn send(
66        self,
67        config_override: crate::config::Builder,
68    ) -> crate::client::customize::internal::BoxFuture<
69        crate::client::customize::internal::SendResult<
70            crate::operation::get_metric_data_v2::GetMetricDataV2Output,
71            crate::operation::get_metric_data_v2::GetMetricDataV2Error,
72        >,
73    > {
74        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
75    }
76}
77impl GetMetricDataV2FluentBuilder {
78    /// Creates a new `GetMetricDataV2FluentBuilder`.
79    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
80        Self {
81            handle,
82            inner: ::std::default::Default::default(),
83            config_override: ::std::option::Option::None,
84        }
85    }
86    /// Access the GetMetricDataV2 as a reference.
87    pub fn as_input(&self) -> &crate::operation::get_metric_data_v2::builders::GetMetricDataV2InputBuilder {
88        &self.inner
89    }
90    /// Sends the request and returns the response.
91    ///
92    /// If an error occurs, an `SdkError` will be returned with additional details that
93    /// can be matched against.
94    ///
95    /// By default, any retryable failures will be retried twice. Retry behavior
96    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
97    /// set when configuring the client.
98    pub async fn send(
99        self,
100    ) -> ::std::result::Result<
101        crate::operation::get_metric_data_v2::GetMetricDataV2Output,
102        ::aws_smithy_runtime_api::client::result::SdkError<
103            crate::operation::get_metric_data_v2::GetMetricDataV2Error,
104            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
105        >,
106    > {
107        let input = self
108            .inner
109            .build()
110            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
111        let runtime_plugins = crate::operation::get_metric_data_v2::GetMetricDataV2::operation_runtime_plugins(
112            self.handle.runtime_plugins.clone(),
113            &self.handle.conf,
114            self.config_override,
115        );
116        crate::operation::get_metric_data_v2::GetMetricDataV2::orchestrate(&runtime_plugins, input).await
117    }
118
119    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
120    pub fn customize(
121        self,
122    ) -> crate::client::customize::CustomizableOperation<
123        crate::operation::get_metric_data_v2::GetMetricDataV2Output,
124        crate::operation::get_metric_data_v2::GetMetricDataV2Error,
125        Self,
126    > {
127        crate::client::customize::CustomizableOperation::new(self)
128    }
129    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
130        self.set_config_override(::std::option::Option::Some(config_override.into()));
131        self
132    }
133
134    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
135        self.config_override = config_override;
136        self
137    }
138    /// Create a paginator for this request
139    ///
140    /// Paginators are used by calling [`send().await`](crate::operation::get_metric_data_v2::paginator::GetMetricDataV2Paginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
141    pub fn into_paginator(self) -> crate::operation::get_metric_data_v2::paginator::GetMetricDataV2Paginator {
142        crate::operation::get_metric_data_v2::paginator::GetMetricDataV2Paginator::new(self.handle, self.inner)
143    }
144    /// <p>The Amazon Resource Name (ARN) of the resource. This includes the <code>instanceId</code> an Amazon Connect instance.</p>
145    pub fn resource_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
146        self.inner = self.inner.resource_arn(input.into());
147        self
148    }
149    /// <p>The Amazon Resource Name (ARN) of the resource. This includes the <code>instanceId</code> an Amazon Connect instance.</p>
150    pub fn set_resource_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151        self.inner = self.inner.set_resource_arn(input);
152        self
153    }
154    /// <p>The Amazon Resource Name (ARN) of the resource. This includes the <code>instanceId</code> an Amazon Connect instance.</p>
155    pub fn get_resource_arn(&self) -> &::std::option::Option<::std::string::String> {
156        self.inner.get_resource_arn()
157    }
158    /// <p>The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The start and end time depends on the <code>IntervalPeriod</code> selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.</p>
159    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
160        self.inner = self.inner.start_time(input);
161        self
162    }
163    /// <p>The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The start and end time depends on the <code>IntervalPeriod</code> selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.</p>
164    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
165        self.inner = self.inner.set_start_time(input);
166        self
167    }
168    /// <p>The timestamp, in UNIX Epoch time format, at which to start the reporting interval for the retrieval of historical metrics data. The time must be before the end time timestamp. The start and end time depends on the <code>IntervalPeriod</code> selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.</p>
169    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
170        self.inner.get_start_time()
171    }
172    /// <p>The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.</p>
173    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
174        self.inner = self.inner.end_time(input);
175        self
176    }
177    /// <p>The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.</p>
178    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
179        self.inner = self.inner.set_end_time(input);
180        self
181    }
182    /// <p>The timestamp, in UNIX Epoch time format, at which to end the reporting interval for the retrieval of historical metrics data. The time must be later than the start time timestamp. It cannot be later than the current timestamp.</p>
183    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
184        self.inner.get_end_time()
185    }
186    /// <p>The interval period and timezone to apply to returned metrics.</p>
187    /// <ul>
188    /// <li>
189    /// <p><code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid <code>IntervalPeriod</code> values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> | <code>HOUR</code> | <code>DAY</code> | <code>WEEK</code> | <code>TOTAL</code>.</p>
190    /// <p>For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>, <code>StartTime</code> and <code>EndTime</code> differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the <code>TOTAL</code> interval period.</p>
191    /// <p>The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code> based on which <code>IntervalPeriod</code> is requested.</p>
192    /// <ul>
193    /// <li>
194    /// <p><code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
195    /// <li>
196    /// <p><code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
197    /// <li>
198    /// <p><code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
199    /// <li>
200    /// <p><code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
201    /// <li>
202    /// <p><code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
203    /// <li>
204    /// <p><code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
205    /// </ul></li>
206    /// <li>
207    /// <p><code>TimeZone</code>: The timezone applied to requested metrics.</p></li>
208    /// </ul>
209    pub fn interval(mut self, input: crate::types::IntervalDetails) -> Self {
210        self.inner = self.inner.interval(input);
211        self
212    }
213    /// <p>The interval period and timezone to apply to returned metrics.</p>
214    /// <ul>
215    /// <li>
216    /// <p><code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid <code>IntervalPeriod</code> values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> | <code>HOUR</code> | <code>DAY</code> | <code>WEEK</code> | <code>TOTAL</code>.</p>
217    /// <p>For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>, <code>StartTime</code> and <code>EndTime</code> differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the <code>TOTAL</code> interval period.</p>
218    /// <p>The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code> based on which <code>IntervalPeriod</code> is requested.</p>
219    /// <ul>
220    /// <li>
221    /// <p><code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
222    /// <li>
223    /// <p><code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
224    /// <li>
225    /// <p><code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
226    /// <li>
227    /// <p><code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
228    /// <li>
229    /// <p><code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
230    /// <li>
231    /// <p><code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
232    /// </ul></li>
233    /// <li>
234    /// <p><code>TimeZone</code>: The timezone applied to requested metrics.</p></li>
235    /// </ul>
236    pub fn set_interval(mut self, input: ::std::option::Option<crate::types::IntervalDetails>) -> Self {
237        self.inner = self.inner.set_interval(input);
238        self
239    }
240    /// <p>The interval period and timezone to apply to returned metrics.</p>
241    /// <ul>
242    /// <li>
243    /// <p><code>IntervalPeriod</code>: An aggregated grouping applied to request metrics. Valid <code>IntervalPeriod</code> values are: <code>FIFTEEN_MIN</code> | <code>THIRTY_MIN</code> | <code>HOUR</code> | <code>DAY</code> | <code>WEEK</code> | <code>TOTAL</code>.</p>
244    /// <p>For example, if <code>IntervalPeriod</code> is selected <code>THIRTY_MIN</code>, <code>StartTime</code> and <code>EndTime</code> differs by 1 day, then Amazon Connect returns 48 results in the response. Each result is aggregated by the THIRTY_MIN period. By default Amazon Connect aggregates results based on the <code>TOTAL</code> interval period.</p>
245    /// <p>The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code> based on which <code>IntervalPeriod</code> is requested.</p>
246    /// <ul>
247    /// <li>
248    /// <p><code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
249    /// <li>
250    /// <p><code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
251    /// <li>
252    /// <p><code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>
253    /// <li>
254    /// <p><code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
255    /// <li>
256    /// <p><code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
257    /// <li>
258    /// <p><code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>
259    /// </ul></li>
260    /// <li>
261    /// <p><code>TimeZone</code>: The timezone applied to requested metrics.</p></li>
262    /// </ul>
263    pub fn get_interval(&self) -> &::std::option::Option<crate::types::IntervalDetails> {
264        self.inner.get_interval()
265    }
266    ///
267    /// Appends an item to `Filters`.
268    ///
269    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
270    ///
271    /// <p>The filters to apply to returned metrics. You can filter on the following resources:</p>
272    /// <ul>
273    /// <li>
274    /// <p>Agents</p></li>
275    /// <li>
276    /// <p>Campaigns</p></li>
277    /// <li>
278    /// <p>Channels</p></li>
279    /// <li>
280    /// <p>Feature</p></li>
281    /// <li>
282    /// <p>Queues</p></li>
283    /// <li>
284    /// <p>Routing profiles</p></li>
285    /// <li>
286    /// <p>Routing step expression</p></li>
287    /// <li>
288    /// <p>User hierarchy groups</p></li>
289    /// </ul>
290    /// <p>At least one filter must be passed from queues, routing profiles, agents, or user hierarchy groups.</p>
291    /// <p>For metrics for outbound campaigns analytics, you can also use campaigns to satisfy at least one filter requirement.</p>
292    /// <p>To filter by phone number, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-historical-metrics-report.html">Create a historical metrics report</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
293    /// <p>Note the following limits:</p>
294    /// <ul>
295    /// <li>
296    /// <p><b>Filter keys</b>: A maximum of 5 filter keys are supported in a single request. Valid filter keys: <code>AGENT</code> | <code>AGENT_HIERARCHY_LEVEL_ONE</code> | <code>AGENT_HIERARCHY_LEVEL_TWO</code> | <code>AGENT_HIERARCHY_LEVEL_THREE</code> | <code>AGENT_HIERARCHY_LEVEL_FOUR</code> | <code>AGENT_HIERARCHY_LEVEL_FIVE</code> | <code>ANSWERING_MACHINE_DETECTION_STATUS</code> | <code> BOT_ID</code> | <code>BOT_ALIAS</code> | <code>BOT_VERSION</code> | <code>BOT_LOCALE</code> | <code>BOT_INTENT_NAME</code> | <code>CAMPAIGN</code> | <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code> | <code>CAMPAIGN_EXCLUDED_EVENT_TYPE </code> | <code>CASE_TEMPLATE_ARN</code> | <code>CASE_STATUS</code> | <code>CHANNEL</code> | <code>contact/segmentAttributes/connect:Subtype</code> | <code>DISCONNECT_REASON</code> | <code>EVALUATION_FORM</code> | <code>EVALUATION_SECTION</code> | <code>EVALUATION_QUESTION</code> | <code>EVALUATION_SOURCE</code> | <code>EVALUATOR_ID</code> | <code>FEATURE</code> | <code>FLOW_ACTION_ID</code> | <code>FLOW_TYPE</code> | <code>FLOWS_MODULE_RESOURCE_ID</code> | <code>FLOWS_NEXT_RESOURCE_ID</code> | <code>FLOWS_NEXT_RESOURCE_QUEUE_ID</code> | <code>FLOWS_OUTCOME_TYPE</code> | <code>FLOWS_RESOURCE_ID</code> | <code>FORM_VERSION</code> | <code>INITIATION_METHOD</code> | <code>INVOKING_RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>INVOKING_RESOURCE_TYPE</code> | <code>PARENT_FLOWS_RESOURCE_ID</code> | <code>RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>ROUTING_PROFILE</code> | <code>ROUTING_STEP_EXPRESSION</code> | <code>QUEUE</code> | <code>Q_CONNECT_ENABLED</code> |</p></li>
297    /// <li>
298    /// <p><b>Filter values</b>: A maximum of 100 filter values are supported in a single request. VOICE, CHAT, and TASK are valid <code>filterValue</code> for the CHANNEL filter key. They do not count towards limitation of 100 filter values. For example, a GetMetricDataV2 request can filter by 50 queues, 35 agents, and 15 routing profiles for a total of 100 filter values, along with 3 channel filters.</p>
299    /// <p><code>contact_lens_conversational_analytics</code> is a valid filterValue for the <code>FEATURE</code> filter key. It is available only to contacts analyzed by Contact Lens conversational analytics.</p>
300    /// <p><code>connect:Chat</code>, <code>connect:SMS</code>, <code>connect:Telephony</code>, and <code>connect:WebRTC</code> are valid <code>filterValue</code> examples (not exhaustive) for the <code>contact/segmentAttributes/connect:Subtype filter</code> key.</p>
301    /// <p><code>ROUTING_STEP_EXPRESSION</code> is a valid filter key with a filter value up to 3000 length. This filter is case and order sensitive. JSON string fields must be sorted in ascending order and JSON array order should be kept as is.</p>
302    /// <p><code>Q_CONNECT_ENABLED</code>. TRUE and FALSE are the only valid filterValues for the <code>Q_CONNECT_ENABLED</code> filter key.</p>
303    /// <ul>
304    /// <li>
305    /// <p>TRUE includes all contacts that had Amazon Q in Connect enabled as part of the flow.</p></li>
306    /// <li>
307    /// <p>FALSE includes all contacts that did not have Amazon Q in Connect enabled as part of the flow</p></li>
308    /// </ul>
309    /// <p>This filter is available only for contact record-driven metrics.</p>
310    /// <p><a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-outbound-campaigns_Campaign.html">Campaign</a> ARNs are valid <code>filterValues</code> for the <code>CAMPAIGN</code> filter key.</p></li>
311    /// </ul>
312    pub fn filters(mut self, input: crate::types::FilterV2) -> Self {
313        self.inner = self.inner.filters(input);
314        self
315    }
316    /// <p>The filters to apply to returned metrics. You can filter on the following resources:</p>
317    /// <ul>
318    /// <li>
319    /// <p>Agents</p></li>
320    /// <li>
321    /// <p>Campaigns</p></li>
322    /// <li>
323    /// <p>Channels</p></li>
324    /// <li>
325    /// <p>Feature</p></li>
326    /// <li>
327    /// <p>Queues</p></li>
328    /// <li>
329    /// <p>Routing profiles</p></li>
330    /// <li>
331    /// <p>Routing step expression</p></li>
332    /// <li>
333    /// <p>User hierarchy groups</p></li>
334    /// </ul>
335    /// <p>At least one filter must be passed from queues, routing profiles, agents, or user hierarchy groups.</p>
336    /// <p>For metrics for outbound campaigns analytics, you can also use campaigns to satisfy at least one filter requirement.</p>
337    /// <p>To filter by phone number, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-historical-metrics-report.html">Create a historical metrics report</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
338    /// <p>Note the following limits:</p>
339    /// <ul>
340    /// <li>
341    /// <p><b>Filter keys</b>: A maximum of 5 filter keys are supported in a single request. Valid filter keys: <code>AGENT</code> | <code>AGENT_HIERARCHY_LEVEL_ONE</code> | <code>AGENT_HIERARCHY_LEVEL_TWO</code> | <code>AGENT_HIERARCHY_LEVEL_THREE</code> | <code>AGENT_HIERARCHY_LEVEL_FOUR</code> | <code>AGENT_HIERARCHY_LEVEL_FIVE</code> | <code>ANSWERING_MACHINE_DETECTION_STATUS</code> | <code> BOT_ID</code> | <code>BOT_ALIAS</code> | <code>BOT_VERSION</code> | <code>BOT_LOCALE</code> | <code>BOT_INTENT_NAME</code> | <code>CAMPAIGN</code> | <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code> | <code>CAMPAIGN_EXCLUDED_EVENT_TYPE </code> | <code>CASE_TEMPLATE_ARN</code> | <code>CASE_STATUS</code> | <code>CHANNEL</code> | <code>contact/segmentAttributes/connect:Subtype</code> | <code>DISCONNECT_REASON</code> | <code>EVALUATION_FORM</code> | <code>EVALUATION_SECTION</code> | <code>EVALUATION_QUESTION</code> | <code>EVALUATION_SOURCE</code> | <code>EVALUATOR_ID</code> | <code>FEATURE</code> | <code>FLOW_ACTION_ID</code> | <code>FLOW_TYPE</code> | <code>FLOWS_MODULE_RESOURCE_ID</code> | <code>FLOWS_NEXT_RESOURCE_ID</code> | <code>FLOWS_NEXT_RESOURCE_QUEUE_ID</code> | <code>FLOWS_OUTCOME_TYPE</code> | <code>FLOWS_RESOURCE_ID</code> | <code>FORM_VERSION</code> | <code>INITIATION_METHOD</code> | <code>INVOKING_RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>INVOKING_RESOURCE_TYPE</code> | <code>PARENT_FLOWS_RESOURCE_ID</code> | <code>RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>ROUTING_PROFILE</code> | <code>ROUTING_STEP_EXPRESSION</code> | <code>QUEUE</code> | <code>Q_CONNECT_ENABLED</code> |</p></li>
342    /// <li>
343    /// <p><b>Filter values</b>: A maximum of 100 filter values are supported in a single request. VOICE, CHAT, and TASK are valid <code>filterValue</code> for the CHANNEL filter key. They do not count towards limitation of 100 filter values. For example, a GetMetricDataV2 request can filter by 50 queues, 35 agents, and 15 routing profiles for a total of 100 filter values, along with 3 channel filters.</p>
344    /// <p><code>contact_lens_conversational_analytics</code> is a valid filterValue for the <code>FEATURE</code> filter key. It is available only to contacts analyzed by Contact Lens conversational analytics.</p>
345    /// <p><code>connect:Chat</code>, <code>connect:SMS</code>, <code>connect:Telephony</code>, and <code>connect:WebRTC</code> are valid <code>filterValue</code> examples (not exhaustive) for the <code>contact/segmentAttributes/connect:Subtype filter</code> key.</p>
346    /// <p><code>ROUTING_STEP_EXPRESSION</code> is a valid filter key with a filter value up to 3000 length. This filter is case and order sensitive. JSON string fields must be sorted in ascending order and JSON array order should be kept as is.</p>
347    /// <p><code>Q_CONNECT_ENABLED</code>. TRUE and FALSE are the only valid filterValues for the <code>Q_CONNECT_ENABLED</code> filter key.</p>
348    /// <ul>
349    /// <li>
350    /// <p>TRUE includes all contacts that had Amazon Q in Connect enabled as part of the flow.</p></li>
351    /// <li>
352    /// <p>FALSE includes all contacts that did not have Amazon Q in Connect enabled as part of the flow</p></li>
353    /// </ul>
354    /// <p>This filter is available only for contact record-driven metrics.</p>
355    /// <p><a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-outbound-campaigns_Campaign.html">Campaign</a> ARNs are valid <code>filterValues</code> for the <code>CAMPAIGN</code> filter key.</p></li>
356    /// </ul>
357    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FilterV2>>) -> Self {
358        self.inner = self.inner.set_filters(input);
359        self
360    }
361    /// <p>The filters to apply to returned metrics. You can filter on the following resources:</p>
362    /// <ul>
363    /// <li>
364    /// <p>Agents</p></li>
365    /// <li>
366    /// <p>Campaigns</p></li>
367    /// <li>
368    /// <p>Channels</p></li>
369    /// <li>
370    /// <p>Feature</p></li>
371    /// <li>
372    /// <p>Queues</p></li>
373    /// <li>
374    /// <p>Routing profiles</p></li>
375    /// <li>
376    /// <p>Routing step expression</p></li>
377    /// <li>
378    /// <p>User hierarchy groups</p></li>
379    /// </ul>
380    /// <p>At least one filter must be passed from queues, routing profiles, agents, or user hierarchy groups.</p>
381    /// <p>For metrics for outbound campaigns analytics, you can also use campaigns to satisfy at least one filter requirement.</p>
382    /// <p>To filter by phone number, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/create-historical-metrics-report.html">Create a historical metrics report</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
383    /// <p>Note the following limits:</p>
384    /// <ul>
385    /// <li>
386    /// <p><b>Filter keys</b>: A maximum of 5 filter keys are supported in a single request. Valid filter keys: <code>AGENT</code> | <code>AGENT_HIERARCHY_LEVEL_ONE</code> | <code>AGENT_HIERARCHY_LEVEL_TWO</code> | <code>AGENT_HIERARCHY_LEVEL_THREE</code> | <code>AGENT_HIERARCHY_LEVEL_FOUR</code> | <code>AGENT_HIERARCHY_LEVEL_FIVE</code> | <code>ANSWERING_MACHINE_DETECTION_STATUS</code> | <code> BOT_ID</code> | <code>BOT_ALIAS</code> | <code>BOT_VERSION</code> | <code>BOT_LOCALE</code> | <code>BOT_INTENT_NAME</code> | <code>CAMPAIGN</code> | <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code> | <code>CAMPAIGN_EXCLUDED_EVENT_TYPE </code> | <code>CASE_TEMPLATE_ARN</code> | <code>CASE_STATUS</code> | <code>CHANNEL</code> | <code>contact/segmentAttributes/connect:Subtype</code> | <code>DISCONNECT_REASON</code> | <code>EVALUATION_FORM</code> | <code>EVALUATION_SECTION</code> | <code>EVALUATION_QUESTION</code> | <code>EVALUATION_SOURCE</code> | <code>EVALUATOR_ID</code> | <code>FEATURE</code> | <code>FLOW_ACTION_ID</code> | <code>FLOW_TYPE</code> | <code>FLOWS_MODULE_RESOURCE_ID</code> | <code>FLOWS_NEXT_RESOURCE_ID</code> | <code>FLOWS_NEXT_RESOURCE_QUEUE_ID</code> | <code>FLOWS_OUTCOME_TYPE</code> | <code>FLOWS_RESOURCE_ID</code> | <code>FORM_VERSION</code> | <code>INITIATION_METHOD</code> | <code>INVOKING_RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>INVOKING_RESOURCE_TYPE</code> | <code>PARENT_FLOWS_RESOURCE_ID</code> | <code>RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>ROUTING_PROFILE</code> | <code>ROUTING_STEP_EXPRESSION</code> | <code>QUEUE</code> | <code>Q_CONNECT_ENABLED</code> |</p></li>
387    /// <li>
388    /// <p><b>Filter values</b>: A maximum of 100 filter values are supported in a single request. VOICE, CHAT, and TASK are valid <code>filterValue</code> for the CHANNEL filter key. They do not count towards limitation of 100 filter values. For example, a GetMetricDataV2 request can filter by 50 queues, 35 agents, and 15 routing profiles for a total of 100 filter values, along with 3 channel filters.</p>
389    /// <p><code>contact_lens_conversational_analytics</code> is a valid filterValue for the <code>FEATURE</code> filter key. It is available only to contacts analyzed by Contact Lens conversational analytics.</p>
390    /// <p><code>connect:Chat</code>, <code>connect:SMS</code>, <code>connect:Telephony</code>, and <code>connect:WebRTC</code> are valid <code>filterValue</code> examples (not exhaustive) for the <code>contact/segmentAttributes/connect:Subtype filter</code> key.</p>
391    /// <p><code>ROUTING_STEP_EXPRESSION</code> is a valid filter key with a filter value up to 3000 length. This filter is case and order sensitive. JSON string fields must be sorted in ascending order and JSON array order should be kept as is.</p>
392    /// <p><code>Q_CONNECT_ENABLED</code>. TRUE and FALSE are the only valid filterValues for the <code>Q_CONNECT_ENABLED</code> filter key.</p>
393    /// <ul>
394    /// <li>
395    /// <p>TRUE includes all contacts that had Amazon Q in Connect enabled as part of the flow.</p></li>
396    /// <li>
397    /// <p>FALSE includes all contacts that did not have Amazon Q in Connect enabled as part of the flow</p></li>
398    /// </ul>
399    /// <p>This filter is available only for contact record-driven metrics.</p>
400    /// <p><a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_connect-outbound-campaigns_Campaign.html">Campaign</a> ARNs are valid <code>filterValues</code> for the <code>CAMPAIGN</code> filter key.</p></li>
401    /// </ul>
402    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FilterV2>> {
403        self.inner.get_filters()
404    }
405    ///
406    /// Appends an item to `Groupings`.
407    ///
408    /// To override the contents of this collection use [`set_groupings`](Self::set_groupings).
409    ///
410    /// <p>The grouping applied to the metrics that are returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values that are returned apply to the metrics for each queue. They are not aggregated for all queues.</p>
411    /// <p>If no grouping is specified, a summary of all metrics is returned.</p>
412    /// <p>Valid grouping keys: <code>AGENT</code> | <code>AGENT_HIERARCHY_LEVEL_ONE</code> | <code>AGENT_HIERARCHY_LEVEL_TWO</code> | <code>AGENT_HIERARCHY_LEVEL_THREE</code> | <code>AGENT_HIERARCHY_LEVEL_FOUR</code> | <code>AGENT_HIERARCHY_LEVEL_FIVE</code> | <code>ANSWERING_MACHINE_DETECTION_STATUS</code> | <code>BOT_ID</code> | <code>BOT_ALIAS</code> | <code>BOT_VERSION</code> | <code>BOT_LOCALE</code> | <code>BOT_INTENT_NAME</code> | <code>CAMPAIGN</code> | <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code> | <code>CAMPAIGN_EXCLUDED_EVENT_TYPE</code> | <code>CAMPAIGN_EXECUTION_TIMESTAMP</code> | <code>CASE_TEMPLATE_ARN</code> | <code>CASE_STATUS</code> | <code>CHANNEL</code> | <code>contact/segmentAttributes/connect:Subtype</code> | <code>DISCONNECT_REASON</code> | <code>EVALUATION_FORM</code> | <code>EVALUATION_SECTION</code> | <code>EVALUATION_QUESTION</code> | <code>EVALUATION_SOURCE</code> | <code>EVALUATOR_ID</code> | <code>FLOWS_RESOURCE_ID</code> | <code>FLOWS_MODULE_RESOURCE_ID</code> | <code>FLOW_ACTION_ID</code> | <code>FLOW_TYPE</code> | <code>FLOWS_OUTCOME_TYPE</code> | <code>FORM_VERSION</code> | <code>INITIATION_METHOD</code> | <code>INVOKING_RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>INVOKING_RESOURCE_TYPE</code> | <code>PARENT_FLOWS_RESOURCE_ID</code> | <code>Q_CONNECT_ENABLED</code> | <code>QUEUE</code> | <code>RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>ROUTING_PROFILE</code> | <code>ROUTING_STEP_EXPRESSION</code></p>
413    /// <p>Type: Array of strings</p>
414    /// <p>Array Members: Maximum number of 4 items</p>
415    /// <p>Required: No</p>
416    pub fn groupings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
417        self.inner = self.inner.groupings(input.into());
418        self
419    }
420    /// <p>The grouping applied to the metrics that are returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values that are returned apply to the metrics for each queue. They are not aggregated for all queues.</p>
421    /// <p>If no grouping is specified, a summary of all metrics is returned.</p>
422    /// <p>Valid grouping keys: <code>AGENT</code> | <code>AGENT_HIERARCHY_LEVEL_ONE</code> | <code>AGENT_HIERARCHY_LEVEL_TWO</code> | <code>AGENT_HIERARCHY_LEVEL_THREE</code> | <code>AGENT_HIERARCHY_LEVEL_FOUR</code> | <code>AGENT_HIERARCHY_LEVEL_FIVE</code> | <code>ANSWERING_MACHINE_DETECTION_STATUS</code> | <code>BOT_ID</code> | <code>BOT_ALIAS</code> | <code>BOT_VERSION</code> | <code>BOT_LOCALE</code> | <code>BOT_INTENT_NAME</code> | <code>CAMPAIGN</code> | <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code> | <code>CAMPAIGN_EXCLUDED_EVENT_TYPE</code> | <code>CAMPAIGN_EXECUTION_TIMESTAMP</code> | <code>CASE_TEMPLATE_ARN</code> | <code>CASE_STATUS</code> | <code>CHANNEL</code> | <code>contact/segmentAttributes/connect:Subtype</code> | <code>DISCONNECT_REASON</code> | <code>EVALUATION_FORM</code> | <code>EVALUATION_SECTION</code> | <code>EVALUATION_QUESTION</code> | <code>EVALUATION_SOURCE</code> | <code>EVALUATOR_ID</code> | <code>FLOWS_RESOURCE_ID</code> | <code>FLOWS_MODULE_RESOURCE_ID</code> | <code>FLOW_ACTION_ID</code> | <code>FLOW_TYPE</code> | <code>FLOWS_OUTCOME_TYPE</code> | <code>FORM_VERSION</code> | <code>INITIATION_METHOD</code> | <code>INVOKING_RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>INVOKING_RESOURCE_TYPE</code> | <code>PARENT_FLOWS_RESOURCE_ID</code> | <code>Q_CONNECT_ENABLED</code> | <code>QUEUE</code> | <code>RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>ROUTING_PROFILE</code> | <code>ROUTING_STEP_EXPRESSION</code></p>
423    /// <p>Type: Array of strings</p>
424    /// <p>Array Members: Maximum number of 4 items</p>
425    /// <p>Required: No</p>
426    pub fn set_groupings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
427        self.inner = self.inner.set_groupings(input);
428        self
429    }
430    /// <p>The grouping applied to the metrics that are returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values that are returned apply to the metrics for each queue. They are not aggregated for all queues.</p>
431    /// <p>If no grouping is specified, a summary of all metrics is returned.</p>
432    /// <p>Valid grouping keys: <code>AGENT</code> | <code>AGENT_HIERARCHY_LEVEL_ONE</code> | <code>AGENT_HIERARCHY_LEVEL_TWO</code> | <code>AGENT_HIERARCHY_LEVEL_THREE</code> | <code>AGENT_HIERARCHY_LEVEL_FOUR</code> | <code>AGENT_HIERARCHY_LEVEL_FIVE</code> | <code>ANSWERING_MACHINE_DETECTION_STATUS</code> | <code>BOT_ID</code> | <code>BOT_ALIAS</code> | <code>BOT_VERSION</code> | <code>BOT_LOCALE</code> | <code>BOT_INTENT_NAME</code> | <code>CAMPAIGN</code> | <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code> | <code>CAMPAIGN_EXCLUDED_EVENT_TYPE</code> | <code>CAMPAIGN_EXECUTION_TIMESTAMP</code> | <code>CASE_TEMPLATE_ARN</code> | <code>CASE_STATUS</code> | <code>CHANNEL</code> | <code>contact/segmentAttributes/connect:Subtype</code> | <code>DISCONNECT_REASON</code> | <code>EVALUATION_FORM</code> | <code>EVALUATION_SECTION</code> | <code>EVALUATION_QUESTION</code> | <code>EVALUATION_SOURCE</code> | <code>EVALUATOR_ID</code> | <code>FLOWS_RESOURCE_ID</code> | <code>FLOWS_MODULE_RESOURCE_ID</code> | <code>FLOW_ACTION_ID</code> | <code>FLOW_TYPE</code> | <code>FLOWS_OUTCOME_TYPE</code> | <code>FORM_VERSION</code> | <code>INITIATION_METHOD</code> | <code>INVOKING_RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>INVOKING_RESOURCE_TYPE</code> | <code>PARENT_FLOWS_RESOURCE_ID</code> | <code>Q_CONNECT_ENABLED</code> | <code>QUEUE</code> | <code>RESOURCE_PUBLISHED_TIMESTAMP</code> | <code>ROUTING_PROFILE</code> | <code>ROUTING_STEP_EXPRESSION</code></p>
433    /// <p>Type: Array of strings</p>
434    /// <p>Array Members: Maximum number of 4 items</p>
435    /// <p>Required: No</p>
436    pub fn get_groupings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
437        self.inner.get_groupings()
438    }
439    ///
440    /// Appends an item to `Metrics`.
441    ///
442    /// To override the contents of this collection use [`set_metrics`](Self::set_metrics).
443    ///
444    /// <p>The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definition</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
445    /// <dl>
446    /// <dt>
447    /// ABANDONMENT_RATE
448    /// </dt>
449    /// <dd>
450    /// <p>Unit: Percent</p>
451    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
452    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#abandonment-rate">Abandonment rate</a></p>
453    /// </dd>
454    /// <dt>
455    /// AGENT_ADHERENT_TIME
456    /// </dt>
457    /// <dd>
458    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
459    /// <p>Unit: Seconds</p>
460    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
461    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#adherent-time">Adherent time</a></p>
462    /// </dd>
463    /// <dt>
464    /// AGENT_ANSWER_RATE
465    /// </dt>
466    /// <dd>
467    /// <p>Unit: Percent</p>
468    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
469    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-answer-rate">Agent answer rate</a></p>
470    /// </dd>
471    /// <dt>
472    /// AGENT_NON_ADHERENT_TIME
473    /// </dt>
474    /// <dd>
475    /// <p>Unit: Seconds</p>
476    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
477    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-adherent-time">Non-adherent time</a></p>
478    /// </dd>
479    /// <dt>
480    /// AGENT_NON_RESPONSE
481    /// </dt>
482    /// <dd>
483    /// <p>Unit: Count</p>
484    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
485    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response">Agent non-response</a></p>
486    /// </dd>
487    /// <dt>
488    /// AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
489    /// </dt>
490    /// <dd>
491    /// <p>Unit: Count</p>
492    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
493    /// <p>Data for this metric is available starting from October 1, 2023 0:00:00 GMT.</p>
494    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response-without-customer-abandons">Agent non-response without customer abandons</a></p>
495    /// </dd>
496    /// <dt>
497    /// AGENT_OCCUPANCY
498    /// </dt>
499    /// <dd>
500    /// <p>Unit: Percentage</p>
501    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
502    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#occupancy">Occupancy</a></p>
503    /// </dd>
504    /// <dt>
505    /// AGENT_SCHEDULE_ADHERENCE
506    /// </dt>
507    /// <dd>
508    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
509    /// <p>Unit: Percent</p>
510    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
511    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#adherence">Adherence</a></p>
512    /// </dd>
513    /// <dt>
514    /// AGENT_SCHEDULED_TIME
515    /// </dt>
516    /// <dd>
517    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
518    /// <p>Unit: Seconds</p>
519    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
520    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#scheduled-time">Scheduled time</a></p>
521    /// </dd>
522    /// <dt>
523    /// AVG_ABANDON_TIME
524    /// </dt>
525    /// <dd>
526    /// <p>Unit: Seconds</p>
527    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
528    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
529    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-abandon-time">Average queue abandon time</a></p>
530    /// </dd>
531    /// <dt>
532    /// AVG_ACTIVE_TIME
533    /// </dt>
534    /// <dd>
535    /// <p>Unit: Seconds</p>
536    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
537    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-active-time">Average active time</a></p>
538    /// </dd>
539    /// <dt>
540    /// AVG_AFTER_CONTACT_WORK_TIME
541    /// </dt>
542    /// <dd>
543    /// <p>Unit: Seconds</p>
544    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
545    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
546    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">Average after contact work time</a></p><note>
547    /// <p>Feature is a valid filter but not a valid grouping.</p>
548    /// </note>
549    /// </dd>
550    /// <dt>
551    /// AVG_AGENT_CONCURRENCY
552    /// </dt>
553    /// <dd>
554    /// <p>Unit: Count</p>
555    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
556    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-concurrency">Average agent concurrency</a></p>
557    /// </dd>
558    /// <dt>
559    /// AVG_AGENT_CONNECTING_TIME
560    /// </dt>
561    /// <dd>
562    /// <p>Unit: Seconds</p>
563    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>. For now, this metric only supports the following as <code>INITIATION_METHOD</code>: <code>INBOUND</code> | <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code></p>
564    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
565    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-api-connecting-time">Average agent API connecting time</a></p><note>
566    /// <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>
567    /// </note>
568    /// </dd>
569    /// <dt>
570    /// AVG_AGENT_PAUSE_TIME
571    /// </dt>
572    /// <dd>
573    /// <p>Unit: Seconds</p>
574    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
575    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-pause-time">Average agent pause time</a></p>
576    /// </dd>
577    /// <dt>
578    /// AVG_BOT_CONVERSATION_TIME
579    /// </dt>
580    /// <dd>
581    /// <p>Unit: Seconds</p>
582    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
583    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#average-bot-conversation-time">Average bot conversation time</a></p>
584    /// </dd>
585    /// <dt>
586    /// AVG_BOT_CONVERSATION_TURNS
587    /// </dt>
588    /// <dd>
589    /// <p>Unit: Count</p>
590    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
591    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#average-bot-conversation-turns">Average bot conversation turns</a></p>
592    /// </dd>
593    /// <dt>
594    /// AVG_CASE_RELATED_CONTACTS
595    /// </dt>
596    /// <dd>
597    /// <p>Unit: Count</p>
598    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
599    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
600    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-contacts-per-case">Average contacts per case</a></p>
601    /// </dd>
602    /// <dt>
603    /// AVG_CASE_RESOLUTION_TIME
604    /// </dt>
605    /// <dd>
606    /// <p>Unit: Seconds</p>
607    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
608    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
609    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-case-resolution-time">Average case resolution time</a></p>
610    /// </dd>
611    /// <dt>
612    /// AVG_CONTACT_DURATION
613    /// </dt>
614    /// <dd>
615    /// <p>Unit: Seconds</p>
616    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
617    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-contact-duration">Average contact duration</a></p><note>
618    /// <p>Feature is a valid filter but not a valid grouping.</p>
619    /// </note>
620    /// </dd>
621    /// <dt>
622    /// AVG_CONTACT_FIRST_RESPONSE_TIME_AGENT
623    /// </dt>
624    /// <dd>
625    /// <p>Unit: Seconds</p>
626    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
627    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-average-contact-first-response-wait-time">Agent average contact first response wait time</a></p>
628    /// </dd>
629    /// <dt>
630    /// AVG_CONVERSATION_CLOSE_TIME
631    /// </dt>
632    /// <dd>
633    /// <p>Unit: Seconds</p>
634    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
635    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-conversation-close-time">Average conversation close time</a></p>
636    /// </dd>
637    /// <dt>
638    /// AVG_CONVERSATION_DURATION
639    /// </dt>
640    /// <dd>
641    /// <p>Unit: Seconds</p>
642    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
643    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-conversation-duration">Average conversation duration</a></p>
644    /// </dd>
645    /// <dt>
646    /// AVG_DIALS_PER_MINUTE
647    /// </dt>
648    /// <dd>
649    /// <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>
650    /// <p>Unit: Count</p>
651    /// <p>Valid groupings and filters: Agent, Campaign, Queue, Routing Profile</p>
652    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-dials-per-minute">Average dials per minute</a></p>
653    /// </dd>
654    /// <dt>
655    /// AVG_EVALUATION_SCORE
656    /// </dt>
657    /// <dd>
658    /// <p>Unit: Percent</p>
659    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Section ID, Evaluation Question ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
660    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-evaluation-score">Average evaluation score</a></p>
661    /// </dd>
662    /// <dt>
663    /// AVG_FIRST_RESPONSE_TIME_AGENT
664    /// </dt>
665    /// <dd>
666    /// <p>Unit: Seconds</p>
667    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
668    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-first-response-time">Average agent first response time</a></p>
669    /// </dd>
670    /// <dt>
671    /// AVG_FLOW_TIME
672    /// </dt>
673    /// <dd>
674    /// <p>Unit: Seconds</p>
675    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
676    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-flow-time">Average flow time</a></p>
677    /// </dd>
678    /// <dt>
679    /// AVG_GREETING_TIME_AGENT
680    /// </dt>
681    /// <dd>
682    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
683    /// <p>Unit: Seconds</p>
684    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
685    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-greeting-time">Average agent greeting time</a></p>
686    /// </dd>
687    /// <dt>
688    /// AVG_HANDLE_TIME
689    /// </dt>
690    /// <dd>
691    /// <p>Unit: Seconds</p>
692    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression</p>
693    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-handle-time">Average handle time</a></p><note>
694    /// <p>Feature is a valid filter but not a valid grouping.</p>
695    /// </note>
696    /// </dd>
697    /// <dt>
698    /// AVG_HOLD_TIME
699    /// </dt>
700    /// <dd>
701    /// <p>Unit: Seconds</p>
702    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
703    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time">Average customer hold time</a></p><note>
704    /// <p>Feature is a valid filter but not a valid grouping.</p>
705    /// </note>
706    /// </dd>
707    /// <dt>
708    /// AVG_HOLD_TIME_ALL_CONTACTS
709    /// </dt>
710    /// <dd>
711    /// <p>Unit: Seconds</p>
712    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
713    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time-all-contacts">Average customer hold time all contacts</a></p>
714    /// </dd>
715    /// <dt>
716    /// AVG_HOLDS
717    /// </dt>
718    /// <dd>
719    /// <p>Unit: Count</p>
720    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
721    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-holds">Average holds</a></p><note>
722    /// <p>Feature is a valid filter but not a valid grouping.</p>
723    /// </note>
724    /// </dd>
725    /// <dt>
726    /// AVG_INTERACTION_AND_HOLD_TIME
727    /// </dt>
728    /// <dd>
729    /// <p>Unit: Seconds</p>
730    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
731    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-and-customer-hold-time">Average agent interaction and customer hold time</a></p>
732    /// </dd>
733    /// <dt>
734    /// AVG_INTERACTION_TIME
735    /// </dt>
736    /// <dd>
737    /// <p>Unit: Seconds</p>
738    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
739    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
740    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-time">Average agent interaction time</a></p><note>
741    /// <p>Feature is a valid filter but not a valid grouping.</p>
742    /// </note>
743    /// </dd>
744    /// <dt>
745    /// AVG_INTERRUPTIONS_AGENT
746    /// </dt>
747    /// <dd>
748    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
749    /// <p>Unit: Count</p>
750    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
751    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interruptions">Average agent interruptions</a></p>
752    /// </dd>
753    /// <dt>
754    /// AVG_INTERRUPTION_TIME_AGENT
755    /// </dt>
756    /// <dd>
757    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
758    /// <p>Unit: Seconds</p>
759    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
760    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interruption-time">Average agent interruption time</a></p>
761    /// </dd>
762    /// <dt>
763    /// AVG_MESSAGE_LENGTH_AGENT
764    /// </dt>
765    /// <dd>
766    /// <p>Unit: Count</p>
767    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
768    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-message-length">Average agent message length</a></p>
769    /// </dd>
770    /// <dt>
771    /// AVG_MESSAGE_LENGTH_CUSTOMER
772    /// </dt>
773    /// <dd>
774    /// <p>Unit: Count</p>
775    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
776    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-message-length">Average customer message length</a></p>
777    /// </dd>
778    /// <dt>
779    /// AVG_MESSAGES
780    /// </dt>
781    /// <dd>
782    /// <p>Unit: Count</p>
783    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
784    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-messages">Average messages</a></p>
785    /// </dd>
786    /// <dt>
787    /// AVG_MESSAGES_AGENT
788    /// </dt>
789    /// <dd>
790    /// <p>Unit: Count</p>
791    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
792    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-messages">Average agent messages</a></p>
793    /// </dd>
794    /// <dt>
795    /// AVG_MESSAGES_BOT
796    /// </dt>
797    /// <dd>
798    /// <p>Unit: Count</p>
799    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
800    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-bot-messages">Average bot messages</a></p>
801    /// </dd>
802    /// <dt>
803    /// AVG_MESSAGES_CUSTOMER
804    /// </dt>
805    /// <dd>
806    /// <p>Unit: Count</p>
807    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
808    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-messages">Average customer messages</a></p>
809    /// </dd>
810    /// <dt>
811    /// AVG_NON_TALK_TIME
812    /// </dt>
813    /// <dd>
814    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
815    /// <p>Unit: Seconds</p>
816    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
817    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-non-talk-time">Average non-talk time</a></p>
818    /// </dd>
819    /// <dt>
820    /// AVG_QUEUE_ANSWER_TIME
821    /// </dt>
822    /// <dd>
823    /// <p>Unit: Seconds</p>
824    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
825    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-answer-time">Average queue answer time</a></p>
826    /// <p>Valid metric level filters: <code>INITIATION_METHOD</code>, <code>FEATURE</code>, <code>DISCONNECT_REASON</code></p><note>
827    /// <p>Feature is a valid filter but not a valid grouping.</p>
828    /// </note>
829    /// </dd>
830    /// <dt>
831    /// AVG_QUEUE_ANSWER_TIME_CUSTOMER_FIRST_CALLBACK
832    /// </dt>
833    /// <dd>
834    /// <p>Unit: Seconds</p>
835    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect, Agent Hierarchy</p>
836    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-answer-time-customer-first-callback">Avg. queue answer time - customer first callback</a></p>
837    /// </dd>
838    /// <dt>
839    /// AVG_RESPONSE_TIME_AGENT
840    /// </dt>
841    /// <dd>
842    /// <p>Unit: Seconds</p>
843    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
844    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-response-time-agent">Average agent response time</a></p>
845    /// </dd>
846    /// <dt>
847    /// AVG_RESPONSE_TIME_CUSTOMER
848    /// </dt>
849    /// <dd>
850    /// <p>Unit: Seconds</p>
851    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
852    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-time-agent">Average customer response time</a></p>
853    /// </dd>
854    /// <dt>
855    /// AVG_RESOLUTION_TIME
856    /// </dt>
857    /// <dd>
858    /// <p>Unit: Seconds</p>
859    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
860    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-resolution-time">Average resolution time</a></p>
861    /// </dd>
862    /// <dt>
863    /// AVG_TALK_TIME
864    /// </dt>
865    /// <dd>
866    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
867    /// <p>Unit: Seconds</p>
868    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
869    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-talk-time">Average talk time</a></p>
870    /// </dd>
871    /// <dt>
872    /// AVG_TALK_TIME_AGENT
873    /// </dt>
874    /// <dd>
875    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
876    /// <p>Unit: Seconds</p>
877    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
878    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-talk-time">Average agent talk time</a></p>
879    /// </dd>
880    /// <dt>
881    /// AVG_TALK_TIME_CUSTOMER
882    /// </dt>
883    /// <dd>
884    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
885    /// <p>Unit: Seconds</p>
886    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
887    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-talk-time">Average customer talk time</a></p>
888    /// </dd>
889    /// <dt>
890    /// AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION
891    /// </dt>
892    /// <dd>
893    /// <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>
894    /// <p>Unit: Seconds</p>
895    /// <p>Valid groupings and filters: Campaign</p>
896    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-wait-time-after-customer-connection">Average wait time after customer connection</a></p>
897    /// </dd>
898    /// <dt>
899    /// AVG_WAIT_TIME_AFTER_CUSTOMER_FIRST_CALLBACK_CONNECTION
900    /// </dt>
901    /// <dd>
902    /// <p>Unit: Seconds</p>
903    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect, Agent Hierarchy</p>
904    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-wait-time-after-customer-connection-customer-first-callback">Avg. wait time after customer connection - customer first callback</a></p>
905    /// </dd>
906    /// <dt>
907    /// AVG_WEIGHTED_EVALUATION_SCORE
908    /// </dt>
909    /// <dd>
910    /// <p>Unit: Percent</p>
911    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form Id, Evaluation Section ID, Evaluation Question ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
912    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-weighted-evaluation-score">Average weighted evaluation score</a></p>
913    /// </dd>
914    /// <dt>
915    /// BOT_CONVERSATIONS_COMPLETED
916    /// </dt>
917    /// <dd>
918    /// <p>Unit: Count</p>
919    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
920    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-conversations-completed">Bot conversations completed</a></p>
921    /// </dd>
922    /// <dt>
923    /// BOT_INTENTS_COMPLETED
924    /// </dt>
925    /// <dd>
926    /// <p>Unit: Count</p>
927    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Bot intent name, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
928    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-intents-completed">Bot intents completed</a></p>
929    /// </dd>
930    /// <dt>
931    /// CAMPAIGN_CONTACTS_ABANDONED_AFTER_X
932    /// </dt>
933    /// <dd>
934    /// <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>
935    /// <p>Unit: Count</p>
936    /// <p>Valid groupings and filters: Agent, Campaign</p>
937    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>GT</code> (for <i>Greater than</i>).</p>
938    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-contacts-abandoned-after-x">Campaign contacts abandoned after X</a></p>
939    /// </dd>
940    /// <dt>
941    /// CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE
942    /// </dt>
943    /// <dd>
944    /// <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>
945    /// <p>Unit: Percent</p>
946    /// <p>Valid groupings and filters: Agent, Campaign</p>
947    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>GT</code> (for <i>Greater than</i>).</p>
948    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-contacts-abandoned-after-x-rate">Campaign contacts abandoned after X rate</a></p>
949    /// </dd>
950    /// <dt>
951    /// CAMPAIGN_INTERACTIONS
952    /// </dt>
953    /// <dd>
954    /// <p>This metric is available only for outbound campaigns using the email delivery mode.</p>
955    /// <p>Unit: Count</p>
956    /// <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>
957    /// <p>Valid groupings and filters: Campaign</p>
958    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-interactions">Campaign interactions</a></p>
959    /// </dd>
960    /// <dt>
961    /// CAMPAIGN_PROGRESS_RATE
962    /// </dt>
963    /// <dd>
964    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
965    /// <p>Unit: Percent</p>
966    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
967    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-progress-rate">Campaign progress rate</a></p>
968    /// </dd>
969    /// <dt>
970    /// CAMPAIGN_SEND_ATTEMPTS
971    /// </dt>
972    /// <dd>
973    /// <p>This metric is available only for outbound campaigns.</p>
974    /// <p>Unit: Count</p>
975    /// <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype</p>
976    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-send-attempts">Campaign send attempts</a></p>
977    /// </dd>
978    /// <dt>
979    /// CAMPAIGN_SEND_EXCLUSIONS
980    /// </dt>
981    /// <dd>
982    /// <p>This metric is available only for outbound campaigns.</p>
983    /// <p>Valid metric filter key: CAMPAIGN_EXCLUDED_EVENT_TYPE</p>
984    /// <p>Unit: Count</p>
985    /// <p>Valid groupings and filters: Campaign, Campaign Excluded Event Type, Campaign Execution Timestamp</p>
986    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-send-exclusions">Campaign send exclusions</a></p>
987    /// </dd>
988    /// <dt>
989    /// CASES_CREATED
990    /// </dt>
991    /// <dd>
992    /// <p>Unit: Count</p>
993    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
994    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
995    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-created">Cases created</a></p>
996    /// </dd>
997    /// <dt>
998    /// CONTACTS_CREATED
999    /// </dt>
1000    /// <dd>
1001    /// <p>Unit: Count</p>
1002    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
1003    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1004    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-created">Contacts created</a></p><note>
1005    /// <p>Feature is a valid filter but not a valid grouping.</p>
1006    /// </note>
1007    /// </dd>
1008    /// <dt>
1009    /// CONTACTS_HANDLED
1010    /// </dt>
1011    /// <dd>
1012    /// <p>Unit: Count</p>
1013    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>, <code>DISCONNECT_REASON</code></p>
1014    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>
1015    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled">Contacts handled</a></p><note>
1016    /// <p>Feature is a valid filter but not a valid grouping.</p>
1017    /// </note>
1018    /// </dd>
1019    /// <dt>
1020    /// CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
1021    /// </dt>
1022    /// <dd>
1023    /// <p>Unit: Count</p>
1024    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
1025    /// <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1026    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled-by-connected-to-agent-timestamp">Contacts handled (connected to agent timestamp)</a></p>
1027    /// </dd>
1028    /// <dt>
1029    /// CONTACTS_HOLD_ABANDONS
1030    /// </dt>
1031    /// <dd>
1032    /// <p>Unit: Count</p>
1033    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1034    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-disconnect">Contacts hold disconnect</a></p>
1035    /// </dd>
1036    /// <dt>
1037    /// CONTACTS_ON_HOLD_AGENT_DISCONNECT
1038    /// </dt>
1039    /// <dd>
1040    /// <p>Unit: Count</p>
1041    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1042    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-agent-disconnect">Contacts hold agent disconnect</a></p>
1043    /// </dd>
1044    /// <dt>
1045    /// CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
1046    /// </dt>
1047    /// <dd>
1048    /// <p>Unit: Count</p>
1049    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1050    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-customer-disconnect">Contacts hold customer disconnect</a></p>
1051    /// </dd>
1052    /// <dt>
1053    /// CONTACTS_PUT_ON_HOLD
1054    /// </dt>
1055    /// <dd>
1056    /// <p>Unit: Count</p>
1057    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1058    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-put-on-hold">Contacts put on hold</a></p>
1059    /// </dd>
1060    /// <dt>
1061    /// CONTACTS_TRANSFERRED_OUT_EXTERNAL
1062    /// </dt>
1063    /// <dd>
1064    /// <p>Unit: Count</p>
1065    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1066    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-external">Contacts transferred out external</a></p>
1067    /// </dd>
1068    /// <dt>
1069    /// CONTACTS_TRANSFERRED_OUT_INTERNAL
1070    /// </dt>
1071    /// <dd>
1072    /// <p>Unit: Percent</p>
1073    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1074    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-internal">Contacts transferred out internal</a></p>
1075    /// </dd>
1076    /// <dt>
1077    /// CONTACTS_QUEUED
1078    /// </dt>
1079    /// <dd>
1080    /// <p>Unit: Count</p>
1081    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1082    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued">Contacts queued</a></p>
1083    /// </dd>
1084    /// <dt>
1085    /// CONTACTS_QUEUED_BY_ENQUEUE
1086    /// </dt>
1087    /// <dd>
1088    /// <p>Unit: Count</p>
1089    /// <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype</p>
1090    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued-by-enqueue">Contacts queued (enqueue timestamp)</a></p>
1091    /// </dd>
1092    /// <dt>
1093    /// CONTACTS_REMOVED_FROM_QUEUE_IN_X
1094    /// </dt>
1095    /// <dd>
1096    /// <p>Unit: Count</p>
1097    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>
1098    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
1099    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-removed-from-queue">Contacts removed from queue in X seconds</a></p>
1100    /// </dd>
1101    /// <dt>
1102    /// CONTACTS_RESOLVED_IN_X
1103    /// </dt>
1104    /// <dd>
1105    /// <p>Unit: Count</p>
1106    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1107    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
1108    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-resolved">Contacts resolved in X</a></p>
1109    /// </dd>
1110    /// <dt>
1111    /// CONTACTS_TRANSFERRED_OUT
1112    /// </dt>
1113    /// <dd>
1114    /// <p>Unit: Count</p>
1115    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1116    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out">Contacts transferred out</a></p><note>
1117    /// <p>Feature is a valid filter but not a valid grouping.</p>
1118    /// </note>
1119    /// </dd>
1120    /// <dt>
1121    /// CONTACTS_TRANSFERRED_OUT_BY_AGENT
1122    /// </dt>
1123    /// <dd>
1124    /// <p>Unit: Count</p>
1125    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1126    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-by-agent">Contacts transferred out by agent</a></p>
1127    /// </dd>
1128    /// <dt>
1129    /// CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
1130    /// </dt>
1131    /// <dd>
1132    /// <p>Unit: Count</p>
1133    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1134    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-queue">Contacts transferred out queue</a></p>
1135    /// </dd>
1136    /// <dt>
1137    /// CURRENT_CASES
1138    /// </dt>
1139    /// <dd>
1140    /// <p>Unit: Count</p>
1141    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
1142    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
1143    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#current-cases">Current cases</a></p>
1144    /// </dd>
1145    /// <dt>
1146    /// CONVERSATIONS_ABANDONED
1147    /// </dt>
1148    /// <dd>
1149    /// <p>Unit: Count</p>
1150    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1151    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#conversations-abandoned">Conversations abandoned</a></p>
1152    /// </dd>
1153    /// <dt>
1154    /// DELIVERY_ATTEMPTS
1155    /// </dt>
1156    /// <dd>
1157    /// <p>This metric is available only for outbound campaigns.</p>
1158    /// <p>Unit: Count</p>
1159    /// <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>
1160    /// <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Campaign Delivery EventType, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>
1161    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#delivery-attempts">Delivery attempts</a></p><note>
1162    /// <p>Campaign Delivery EventType filter and grouping are only available for SMS and Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status and Disconnect Reason are only available for agent assisted voice and automated voice delivery modes.</p>
1163    /// </note>
1164    /// </dd>
1165    /// <dt>
1166    /// DELIVERY_ATTEMPT_DISPOSITION_RATE
1167    /// </dt>
1168    /// <dd>
1169    /// <p>This metric is available only for outbound campaigns. Dispositions for the agent assisted voice and automated voice delivery modes are only available with answering machine detection enabled.</p>
1170    /// <p>Unit: Percent</p>
1171    /// <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>
1172    /// <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>
1173    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#delivery-attempt-disposition-rate">Delivery attempt disposition rate</a></p><note>
1174    /// <p>Campaign Delivery Event Type filter and grouping are only available for SMS and Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status and Disconnect Reason are only available for agent assisted voice and automated voice delivery modes.</p>
1175    /// </note>
1176    /// </dd>
1177    /// <dt>
1178    /// EVALUATIONS_PERFORMED
1179    /// </dt>
1180    /// <dd>
1181    /// <p>Unit: Count</p>
1182    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
1183    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#evaluations-performed">Evaluations performed</a></p>
1184    /// </dd>
1185    /// <dt>
1186    /// FLOWS_OUTCOME
1187    /// </dt>
1188    /// <dd>
1189    /// <p>Unit: Count</p>
1190    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
1191    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-outcome">Flows outcome</a></p>
1192    /// </dd>
1193    /// <dt>
1194    /// FLOWS_STARTED
1195    /// </dt>
1196    /// <dd>
1197    /// <p>Unit: Count</p>
1198    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows resource ID, Initiation method, Resource published timestamp</p>
1199    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-started">Flows started</a></p>
1200    /// </dd>
1201    /// <dt>
1202    /// HUMAN_ANSWERED_CALLS
1203    /// </dt>
1204    /// <dd>
1205    /// <p>This metric is available only for outbound campaigns. Dispositions for the agent assisted voice and automated voice delivery modes are only available with answering machine detection enabled.</p>
1206    /// <p>Unit: Count</p>
1207    /// <p>Valid groupings and filters: Agent, Campaign</p>
1208    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#human-answered">Human answered</a></p>
1209    /// </dd>
1210    /// <dt>
1211    /// MAX_FLOW_TIME
1212    /// </dt>
1213    /// <dd>
1214    /// <p>Unit: Seconds</p>
1215    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
1216    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#maximum-flow-time">Maximum flow time</a></p>
1217    /// </dd>
1218    /// <dt>
1219    /// MAX_QUEUED_TIME
1220    /// </dt>
1221    /// <dd>
1222    /// <p>Unit: Seconds</p>
1223    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1224    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#maximum-queued-time">Maximum queued time</a></p>
1225    /// </dd>
1226    /// <dt>
1227    /// MIN_FLOW_TIME
1228    /// </dt>
1229    /// <dd>
1230    /// <p>Unit: Seconds</p>
1231    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
1232    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#minimum-flow-time">Minimum flow time</a></p>
1233    /// </dd>
1234    /// <dt>
1235    /// PERCENT_AUTOMATIC_FAILS
1236    /// </dt>
1237    /// <dd>
1238    /// <p>Unit: Percent</p>
1239    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
1240    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#automatic-fails-percent">Automatic fails percent</a></p>
1241    /// </dd>
1242    /// <dt>
1243    /// PERCENT_BOT_CONVERSATIONS_OUTCOME
1244    /// </dt>
1245    /// <dd>
1246    /// <p>Unit: Percent</p>
1247    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
1248    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#percent-bot-conversations-outcome">Percent bot conversations outcome</a></p>
1249    /// </dd>
1250    /// <dt>
1251    /// PERCENT_BOT_INTENTS_OUTCOME
1252    /// </dt>
1253    /// <dd>
1254    /// <p>Unit: Percent</p>
1255    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Bot intent name, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
1256    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#percent-bot-intents-outcome">Percent bot intents outcome</a></p>
1257    /// </dd>
1258    /// <dt>
1259    /// PERCENT_CASES_FIRST_CONTACT_RESOLVED
1260    /// </dt>
1261    /// <dd>
1262    /// <p>Unit: Percent</p>
1263    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
1264    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
1265    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-resolved-on-first-contact">Cases resolved on first contact</a></p>
1266    /// </dd>
1267    /// <dt>
1268    /// PERCENT_CONTACTS_STEP_EXPIRED
1269    /// </dt>
1270    /// <dd>
1271    /// <p>Unit: Percent</p>
1272    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
1273    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
1274    /// </dd>
1275    /// <dt>
1276    /// PERCENT_CONTACTS_STEP_JOINED
1277    /// </dt>
1278    /// <dd>
1279    /// <p>Unit: Percent</p>
1280    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
1281    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
1282    /// </dd>
1283    /// <dt>
1284    /// PERCENT_FLOWS_OUTCOME
1285    /// </dt>
1286    /// <dd>
1287    /// <p>Unit: Percent</p>
1288    /// <p>Valid metric filter key: <code>FLOWS_OUTCOME_TYPE</code></p>
1289    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
1290    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-outcome-percentage">Flows outcome percentage</a>.</p><note>
1291    /// <p>The <code>FLOWS_OUTCOME_TYPE</code> is not a valid grouping.</p>
1292    /// </note>
1293    /// </dd>
1294    /// <dt>
1295    /// PERCENT_NON_TALK_TIME
1296    /// </dt>
1297    /// <dd>
1298    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1299    /// <p>Unit: Percentage</p>
1300    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1301    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-talk-time-percent">Non-talk time percent</a></p>
1302    /// </dd>
1303    /// <dt>
1304    /// PERCENT_TALK_TIME
1305    /// </dt>
1306    /// <dd>
1307    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1308    /// <p>Unit: Percentage</p>
1309    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1310    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#talk-time-percent">Talk time percent</a></p>
1311    /// </dd>
1312    /// <dt>
1313    /// PERCENT_TALK_TIME_AGENT
1314    /// </dt>
1315    /// <dd>
1316    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1317    /// <p>Unit: Percentage</p>
1318    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1319    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-talk-time-percent">Agent talk time percent</a></p>
1320    /// </dd>
1321    /// <dt>
1322    /// PERCENT_TALK_TIME_CUSTOMER
1323    /// </dt>
1324    /// <dd>
1325    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1326    /// <p>Unit: Percentage</p>
1327    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1328    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#customer-talk-time-percent">Customer talk time percent</a></p>
1329    /// </dd>
1330    /// <dt>
1331    /// RECIPIENTS_ATTEMPTED
1332    /// </dt>
1333    /// <dd>
1334    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
1335    /// <p>Unit: Count</p>
1336    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
1337    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-attempted">Recipients attempted</a></p>
1338    /// </dd>
1339    /// <dt>
1340    /// RECIPIENTS_INTERACTED
1341    /// </dt>
1342    /// <dd>
1343    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
1344    /// <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>
1345    /// <p>Unit: Count</p>
1346    /// <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype, Campaign Execution Timestamp</p>
1347    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-interacted">Recipients interacted</a></p>
1348    /// </dd>
1349    /// <dt>
1350    /// RECIPIENTS_TARGETED
1351    /// </dt>
1352    /// <dd>
1353    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
1354    /// <p>Unit: Count</p>
1355    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
1356    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-targeted">Recipients targeted</a></p>
1357    /// </dd>
1358    /// <dt>
1359    /// REOPENED_CASE_ACTIONS
1360    /// </dt>
1361    /// <dd>
1362    /// <p>Unit: Count</p>
1363    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
1364    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
1365    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-reopened">Cases reopened</a></p>
1366    /// </dd>
1367    /// <dt>
1368    /// RESOLVED_CASE_ACTIONS
1369    /// </dt>
1370    /// <dd>
1371    /// <p>Unit: Count</p>
1372    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
1373    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
1374    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-resolved">Cases resolved</a></p>
1375    /// </dd>
1376    /// <dt>
1377    /// SERVICE_LEVEL
1378    /// </dt>
1379    /// <dd>
1380    /// <p>You can include up to 20 SERVICE_LEVEL metrics in a request.</p>
1381    /// <p>Unit: Percent</p>
1382    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>
1383    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
1384    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#service-level">Service level X</a></p>
1385    /// </dd>
1386    /// <dt>
1387    /// STEP_CONTACTS_QUEUED
1388    /// </dt>
1389    /// <dd>
1390    /// <p>Unit: Count</p>
1391    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
1392    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
1393    /// </dd>
1394    /// <dt>
1395    /// SUM_AFTER_CONTACT_WORK_TIME
1396    /// </dt>
1397    /// <dd>
1398    /// <p>Unit: Seconds</p>
1399    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1400    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">After contact work time</a></p>
1401    /// </dd>
1402    /// <dt>
1403    /// SUM_CONNECTING_TIME_AGENT
1404    /// </dt>
1405    /// <dd>
1406    /// <p>Unit: Seconds</p>
1407    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>. This metric only supports the following filter keys as <code>INITIATION_METHOD</code>: <code>INBOUND</code> | <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code> | <code>CALLBACK_CUSTOMER_FIRST_DIALED</code></p>
1408    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1409    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-api-connecting-time">Agent API connecting time</a></p><note>
1410    /// <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>
1411    /// </note>
1412    /// </dd>
1413    /// <dt>
1414    /// CONTACTS_ABANDONED
1415    /// </dt>
1416    /// <dd>
1417    /// <p>Unit: Count</p>
1418    /// <p>Metric filter:</p>
1419    /// <ul>
1420    /// <li>
1421    /// <p>Valid values: <code>API</code>| <code>INCOMING</code> | <code>OUTBOUND</code> | <code>TRANSFER</code> | <code>CALLBACK</code> | <code>QUEUE_TRANSFER</code>| <code>Disconnect</code> | <code>CALLBACK_CUSTOMER_FIRST_DIALED</code></p></li>
1422    /// </ul>
1423    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>
1424    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned">Contact abandoned</a></p>
1425    /// </dd>
1426    /// <dt>
1427    /// SUM_CONTACTS_ABANDONED_IN_X
1428    /// </dt>
1429    /// <dd>
1430    /// <p>Unit: Count</p>
1431    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1432    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
1433    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned-in-x-seconds">Contacts abandoned in X seconds</a></p>
1434    /// </dd>
1435    /// <dt>
1436    /// SUM_CONTACTS_ANSWERED_IN_X
1437    /// </dt>
1438    /// <dd>
1439    /// <p>Unit: Count</p>
1440    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1441    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
1442    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-answered-in-x-seconds">Contacts answered in X seconds</a></p>
1443    /// </dd>
1444    /// <dt>
1445    /// SUM_CONTACT_FLOW_TIME
1446    /// </dt>
1447    /// <dd>
1448    /// <p>Unit: Seconds</p>
1449    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1450    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-flow-time">Contact flow time</a></p>
1451    /// </dd>
1452    /// <dt>
1453    /// SUM_CONTACT_TIME_AGENT
1454    /// </dt>
1455    /// <dd>
1456    /// <p>Unit: Seconds</p>
1457    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
1458    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-on-contact-time">Agent on contact time</a></p>
1459    /// </dd>
1460    /// <dt>
1461    /// SUM_CONTACTS_DISCONNECTED
1462    /// </dt>
1463    /// <dd>
1464    /// <p>Valid metric filter key: <code>DISCONNECT_REASON</code></p>
1465    /// <p>Unit: Count</p>
1466    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1467    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-disconnected">Contact disconnected</a></p>
1468    /// </dd>
1469    /// <dt>
1470    /// SUM_ERROR_STATUS_TIME_AGENT
1471    /// </dt>
1472    /// <dd>
1473    /// <p>Unit: Seconds</p>
1474    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
1475    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#error-status-time">Error status time</a></p>
1476    /// </dd>
1477    /// <dt>
1478    /// SUM_HANDLE_TIME
1479    /// </dt>
1480    /// <dd>
1481    /// <p>Unit: Seconds</p>
1482    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1483    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-handle-time">Contact handle time</a></p>
1484    /// </dd>
1485    /// <dt>
1486    /// SUM_HOLD_TIME
1487    /// </dt>
1488    /// <dd>
1489    /// <p>Unit: Count</p>
1490    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1491    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#customer-hold-time">Customer hold time</a></p>
1492    /// </dd>
1493    /// <dt>
1494    /// SUM_IDLE_TIME_AGENT
1495    /// </dt>
1496    /// <dd>
1497    /// <p>Unit: Seconds</p>
1498    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
1499    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-idle-time">Agent idle time</a></p>
1500    /// </dd>
1501    /// <dt>
1502    /// SUM_INTERACTION_AND_HOLD_TIME
1503    /// </dt>
1504    /// <dd>
1505    /// <p>Unit: Seconds</p>
1506    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1507    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-interaction-and-hold-time">Agent interaction and hold time</a></p>
1508    /// </dd>
1509    /// <dt>
1510    /// SUM_INTERACTION_TIME
1511    /// </dt>
1512    /// <dd>
1513    /// <p>Unit: Seconds</p>
1514    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1515    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-interaction-time">Agent interaction time</a></p>
1516    /// </dd>
1517    /// <dt>
1518    /// SUM_NON_PRODUCTIVE_TIME_AGENT
1519    /// </dt>
1520    /// <dd>
1521    /// <p>Unit: Seconds</p>
1522    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
1523    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-productive-time">Agent non-productive time</a></p>
1524    /// </dd>
1525    /// <dt>
1526    /// SUM_ONLINE_TIME_AGENT
1527    /// </dt>
1528    /// <dd>
1529    /// <p>Unit: Seconds</p>
1530    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
1531    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#online-time">Online time</a></p>
1532    /// </dd>
1533    /// <dt>
1534    /// SUM_RETRY_CALLBACK_ATTEMPTS
1535    /// </dt>
1536    /// <dd>
1537    /// <p>Unit: Count</p>
1538    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1539    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#callback-attempts">Callback attempts</a></p>
1540    /// </dd>
1541    /// </dl>
1542    pub fn metrics(mut self, input: crate::types::MetricV2) -> Self {
1543        self.inner = self.inner.metrics(input);
1544        self
1545    }
1546    /// <p>The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definition</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
1547    /// <dl>
1548    /// <dt>
1549    /// ABANDONMENT_RATE
1550    /// </dt>
1551    /// <dd>
1552    /// <p>Unit: Percent</p>
1553    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1554    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#abandonment-rate">Abandonment rate</a></p>
1555    /// </dd>
1556    /// <dt>
1557    /// AGENT_ADHERENT_TIME
1558    /// </dt>
1559    /// <dd>
1560    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
1561    /// <p>Unit: Seconds</p>
1562    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1563    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#adherent-time">Adherent time</a></p>
1564    /// </dd>
1565    /// <dt>
1566    /// AGENT_ANSWER_RATE
1567    /// </dt>
1568    /// <dd>
1569    /// <p>Unit: Percent</p>
1570    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1571    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-answer-rate">Agent answer rate</a></p>
1572    /// </dd>
1573    /// <dt>
1574    /// AGENT_NON_ADHERENT_TIME
1575    /// </dt>
1576    /// <dd>
1577    /// <p>Unit: Seconds</p>
1578    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1579    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-adherent-time">Non-adherent time</a></p>
1580    /// </dd>
1581    /// <dt>
1582    /// AGENT_NON_RESPONSE
1583    /// </dt>
1584    /// <dd>
1585    /// <p>Unit: Count</p>
1586    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1587    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response">Agent non-response</a></p>
1588    /// </dd>
1589    /// <dt>
1590    /// AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
1591    /// </dt>
1592    /// <dd>
1593    /// <p>Unit: Count</p>
1594    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1595    /// <p>Data for this metric is available starting from October 1, 2023 0:00:00 GMT.</p>
1596    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response-without-customer-abandons">Agent non-response without customer abandons</a></p>
1597    /// </dd>
1598    /// <dt>
1599    /// AGENT_OCCUPANCY
1600    /// </dt>
1601    /// <dd>
1602    /// <p>Unit: Percentage</p>
1603    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
1604    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#occupancy">Occupancy</a></p>
1605    /// </dd>
1606    /// <dt>
1607    /// AGENT_SCHEDULE_ADHERENCE
1608    /// </dt>
1609    /// <dd>
1610    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
1611    /// <p>Unit: Percent</p>
1612    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1613    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#adherence">Adherence</a></p>
1614    /// </dd>
1615    /// <dt>
1616    /// AGENT_SCHEDULED_TIME
1617    /// </dt>
1618    /// <dd>
1619    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
1620    /// <p>Unit: Seconds</p>
1621    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1622    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#scheduled-time">Scheduled time</a></p>
1623    /// </dd>
1624    /// <dt>
1625    /// AVG_ABANDON_TIME
1626    /// </dt>
1627    /// <dd>
1628    /// <p>Unit: Seconds</p>
1629    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1630    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
1631    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-abandon-time">Average queue abandon time</a></p>
1632    /// </dd>
1633    /// <dt>
1634    /// AVG_ACTIVE_TIME
1635    /// </dt>
1636    /// <dd>
1637    /// <p>Unit: Seconds</p>
1638    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1639    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-active-time">Average active time</a></p>
1640    /// </dd>
1641    /// <dt>
1642    /// AVG_AFTER_CONTACT_WORK_TIME
1643    /// </dt>
1644    /// <dd>
1645    /// <p>Unit: Seconds</p>
1646    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
1647    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1648    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">Average after contact work time</a></p><note>
1649    /// <p>Feature is a valid filter but not a valid grouping.</p>
1650    /// </note>
1651    /// </dd>
1652    /// <dt>
1653    /// AVG_AGENT_CONCURRENCY
1654    /// </dt>
1655    /// <dd>
1656    /// <p>Unit: Count</p>
1657    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1658    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-concurrency">Average agent concurrency</a></p>
1659    /// </dd>
1660    /// <dt>
1661    /// AVG_AGENT_CONNECTING_TIME
1662    /// </dt>
1663    /// <dd>
1664    /// <p>Unit: Seconds</p>
1665    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>. For now, this metric only supports the following as <code>INITIATION_METHOD</code>: <code>INBOUND</code> | <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code></p>
1666    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
1667    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-api-connecting-time">Average agent API connecting time</a></p><note>
1668    /// <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>
1669    /// </note>
1670    /// </dd>
1671    /// <dt>
1672    /// AVG_AGENT_PAUSE_TIME
1673    /// </dt>
1674    /// <dd>
1675    /// <p>Unit: Seconds</p>
1676    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
1677    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-pause-time">Average agent pause time</a></p>
1678    /// </dd>
1679    /// <dt>
1680    /// AVG_BOT_CONVERSATION_TIME
1681    /// </dt>
1682    /// <dd>
1683    /// <p>Unit: Seconds</p>
1684    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
1685    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#average-bot-conversation-time">Average bot conversation time</a></p>
1686    /// </dd>
1687    /// <dt>
1688    /// AVG_BOT_CONVERSATION_TURNS
1689    /// </dt>
1690    /// <dd>
1691    /// <p>Unit: Count</p>
1692    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
1693    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#average-bot-conversation-turns">Average bot conversation turns</a></p>
1694    /// </dd>
1695    /// <dt>
1696    /// AVG_CASE_RELATED_CONTACTS
1697    /// </dt>
1698    /// <dd>
1699    /// <p>Unit: Count</p>
1700    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
1701    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
1702    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-contacts-per-case">Average contacts per case</a></p>
1703    /// </dd>
1704    /// <dt>
1705    /// AVG_CASE_RESOLUTION_TIME
1706    /// </dt>
1707    /// <dd>
1708    /// <p>Unit: Seconds</p>
1709    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
1710    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
1711    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-case-resolution-time">Average case resolution time</a></p>
1712    /// </dd>
1713    /// <dt>
1714    /// AVG_CONTACT_DURATION
1715    /// </dt>
1716    /// <dd>
1717    /// <p>Unit: Seconds</p>
1718    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1719    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-contact-duration">Average contact duration</a></p><note>
1720    /// <p>Feature is a valid filter but not a valid grouping.</p>
1721    /// </note>
1722    /// </dd>
1723    /// <dt>
1724    /// AVG_CONTACT_FIRST_RESPONSE_TIME_AGENT
1725    /// </dt>
1726    /// <dd>
1727    /// <p>Unit: Seconds</p>
1728    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1729    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-average-contact-first-response-wait-time">Agent average contact first response wait time</a></p>
1730    /// </dd>
1731    /// <dt>
1732    /// AVG_CONVERSATION_CLOSE_TIME
1733    /// </dt>
1734    /// <dd>
1735    /// <p>Unit: Seconds</p>
1736    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1737    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-conversation-close-time">Average conversation close time</a></p>
1738    /// </dd>
1739    /// <dt>
1740    /// AVG_CONVERSATION_DURATION
1741    /// </dt>
1742    /// <dd>
1743    /// <p>Unit: Seconds</p>
1744    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1745    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-conversation-duration">Average conversation duration</a></p>
1746    /// </dd>
1747    /// <dt>
1748    /// AVG_DIALS_PER_MINUTE
1749    /// </dt>
1750    /// <dd>
1751    /// <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>
1752    /// <p>Unit: Count</p>
1753    /// <p>Valid groupings and filters: Agent, Campaign, Queue, Routing Profile</p>
1754    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-dials-per-minute">Average dials per minute</a></p>
1755    /// </dd>
1756    /// <dt>
1757    /// AVG_EVALUATION_SCORE
1758    /// </dt>
1759    /// <dd>
1760    /// <p>Unit: Percent</p>
1761    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Section ID, Evaluation Question ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
1762    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-evaluation-score">Average evaluation score</a></p>
1763    /// </dd>
1764    /// <dt>
1765    /// AVG_FIRST_RESPONSE_TIME_AGENT
1766    /// </dt>
1767    /// <dd>
1768    /// <p>Unit: Seconds</p>
1769    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1770    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-first-response-time">Average agent first response time</a></p>
1771    /// </dd>
1772    /// <dt>
1773    /// AVG_FLOW_TIME
1774    /// </dt>
1775    /// <dd>
1776    /// <p>Unit: Seconds</p>
1777    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
1778    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-flow-time">Average flow time</a></p>
1779    /// </dd>
1780    /// <dt>
1781    /// AVG_GREETING_TIME_AGENT
1782    /// </dt>
1783    /// <dd>
1784    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1785    /// <p>Unit: Seconds</p>
1786    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1787    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-greeting-time">Average agent greeting time</a></p>
1788    /// </dd>
1789    /// <dt>
1790    /// AVG_HANDLE_TIME
1791    /// </dt>
1792    /// <dd>
1793    /// <p>Unit: Seconds</p>
1794    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression</p>
1795    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-handle-time">Average handle time</a></p><note>
1796    /// <p>Feature is a valid filter but not a valid grouping.</p>
1797    /// </note>
1798    /// </dd>
1799    /// <dt>
1800    /// AVG_HOLD_TIME
1801    /// </dt>
1802    /// <dd>
1803    /// <p>Unit: Seconds</p>
1804    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1805    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time">Average customer hold time</a></p><note>
1806    /// <p>Feature is a valid filter but not a valid grouping.</p>
1807    /// </note>
1808    /// </dd>
1809    /// <dt>
1810    /// AVG_HOLD_TIME_ALL_CONTACTS
1811    /// </dt>
1812    /// <dd>
1813    /// <p>Unit: Seconds</p>
1814    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1815    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time-all-contacts">Average customer hold time all contacts</a></p>
1816    /// </dd>
1817    /// <dt>
1818    /// AVG_HOLDS
1819    /// </dt>
1820    /// <dd>
1821    /// <p>Unit: Count</p>
1822    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1823    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-holds">Average holds</a></p><note>
1824    /// <p>Feature is a valid filter but not a valid grouping.</p>
1825    /// </note>
1826    /// </dd>
1827    /// <dt>
1828    /// AVG_INTERACTION_AND_HOLD_TIME
1829    /// </dt>
1830    /// <dd>
1831    /// <p>Unit: Seconds</p>
1832    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1833    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-and-customer-hold-time">Average agent interaction and customer hold time</a></p>
1834    /// </dd>
1835    /// <dt>
1836    /// AVG_INTERACTION_TIME
1837    /// </dt>
1838    /// <dd>
1839    /// <p>Unit: Seconds</p>
1840    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
1841    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1842    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-time">Average agent interaction time</a></p><note>
1843    /// <p>Feature is a valid filter but not a valid grouping.</p>
1844    /// </note>
1845    /// </dd>
1846    /// <dt>
1847    /// AVG_INTERRUPTIONS_AGENT
1848    /// </dt>
1849    /// <dd>
1850    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1851    /// <p>Unit: Count</p>
1852    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1853    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interruptions">Average agent interruptions</a></p>
1854    /// </dd>
1855    /// <dt>
1856    /// AVG_INTERRUPTION_TIME_AGENT
1857    /// </dt>
1858    /// <dd>
1859    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1860    /// <p>Unit: Seconds</p>
1861    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1862    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interruption-time">Average agent interruption time</a></p>
1863    /// </dd>
1864    /// <dt>
1865    /// AVG_MESSAGE_LENGTH_AGENT
1866    /// </dt>
1867    /// <dd>
1868    /// <p>Unit: Count</p>
1869    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1870    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-message-length">Average agent message length</a></p>
1871    /// </dd>
1872    /// <dt>
1873    /// AVG_MESSAGE_LENGTH_CUSTOMER
1874    /// </dt>
1875    /// <dd>
1876    /// <p>Unit: Count</p>
1877    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1878    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-message-length">Average customer message length</a></p>
1879    /// </dd>
1880    /// <dt>
1881    /// AVG_MESSAGES
1882    /// </dt>
1883    /// <dd>
1884    /// <p>Unit: Count</p>
1885    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1886    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-messages">Average messages</a></p>
1887    /// </dd>
1888    /// <dt>
1889    /// AVG_MESSAGES_AGENT
1890    /// </dt>
1891    /// <dd>
1892    /// <p>Unit: Count</p>
1893    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1894    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-messages">Average agent messages</a></p>
1895    /// </dd>
1896    /// <dt>
1897    /// AVG_MESSAGES_BOT
1898    /// </dt>
1899    /// <dd>
1900    /// <p>Unit: Count</p>
1901    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1902    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-bot-messages">Average bot messages</a></p>
1903    /// </dd>
1904    /// <dt>
1905    /// AVG_MESSAGES_CUSTOMER
1906    /// </dt>
1907    /// <dd>
1908    /// <p>Unit: Count</p>
1909    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1910    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-messages">Average customer messages</a></p>
1911    /// </dd>
1912    /// <dt>
1913    /// AVG_NON_TALK_TIME
1914    /// </dt>
1915    /// <dd>
1916    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1917    /// <p>Unit: Seconds</p>
1918    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1919    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-non-talk-time">Average non-talk time</a></p>
1920    /// </dd>
1921    /// <dt>
1922    /// AVG_QUEUE_ANSWER_TIME
1923    /// </dt>
1924    /// <dd>
1925    /// <p>Unit: Seconds</p>
1926    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1927    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-answer-time">Average queue answer time</a></p>
1928    /// <p>Valid metric level filters: <code>INITIATION_METHOD</code>, <code>FEATURE</code>, <code>DISCONNECT_REASON</code></p><note>
1929    /// <p>Feature is a valid filter but not a valid grouping.</p>
1930    /// </note>
1931    /// </dd>
1932    /// <dt>
1933    /// AVG_QUEUE_ANSWER_TIME_CUSTOMER_FIRST_CALLBACK
1934    /// </dt>
1935    /// <dd>
1936    /// <p>Unit: Seconds</p>
1937    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect, Agent Hierarchy</p>
1938    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-answer-time-customer-first-callback">Avg. queue answer time - customer first callback</a></p>
1939    /// </dd>
1940    /// <dt>
1941    /// AVG_RESPONSE_TIME_AGENT
1942    /// </dt>
1943    /// <dd>
1944    /// <p>Unit: Seconds</p>
1945    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1946    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-response-time-agent">Average agent response time</a></p>
1947    /// </dd>
1948    /// <dt>
1949    /// AVG_RESPONSE_TIME_CUSTOMER
1950    /// </dt>
1951    /// <dd>
1952    /// <p>Unit: Seconds</p>
1953    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
1954    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-time-agent">Average customer response time</a></p>
1955    /// </dd>
1956    /// <dt>
1957    /// AVG_RESOLUTION_TIME
1958    /// </dt>
1959    /// <dd>
1960    /// <p>Unit: Seconds</p>
1961    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1962    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-resolution-time">Average resolution time</a></p>
1963    /// </dd>
1964    /// <dt>
1965    /// AVG_TALK_TIME
1966    /// </dt>
1967    /// <dd>
1968    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1969    /// <p>Unit: Seconds</p>
1970    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1971    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-talk-time">Average talk time</a></p>
1972    /// </dd>
1973    /// <dt>
1974    /// AVG_TALK_TIME_AGENT
1975    /// </dt>
1976    /// <dd>
1977    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1978    /// <p>Unit: Seconds</p>
1979    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1980    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-talk-time">Average agent talk time</a></p>
1981    /// </dd>
1982    /// <dt>
1983    /// AVG_TALK_TIME_CUSTOMER
1984    /// </dt>
1985    /// <dd>
1986    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
1987    /// <p>Unit: Seconds</p>
1988    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
1989    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-talk-time">Average customer talk time</a></p>
1990    /// </dd>
1991    /// <dt>
1992    /// AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION
1993    /// </dt>
1994    /// <dd>
1995    /// <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>
1996    /// <p>Unit: Seconds</p>
1997    /// <p>Valid groupings and filters: Campaign</p>
1998    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-wait-time-after-customer-connection">Average wait time after customer connection</a></p>
1999    /// </dd>
2000    /// <dt>
2001    /// AVG_WAIT_TIME_AFTER_CUSTOMER_FIRST_CALLBACK_CONNECTION
2002    /// </dt>
2003    /// <dd>
2004    /// <p>Unit: Seconds</p>
2005    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect, Agent Hierarchy</p>
2006    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-wait-time-after-customer-connection-customer-first-callback">Avg. wait time after customer connection - customer first callback</a></p>
2007    /// </dd>
2008    /// <dt>
2009    /// AVG_WEIGHTED_EVALUATION_SCORE
2010    /// </dt>
2011    /// <dd>
2012    /// <p>Unit: Percent</p>
2013    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form Id, Evaluation Section ID, Evaluation Question ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
2014    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-weighted-evaluation-score">Average weighted evaluation score</a></p>
2015    /// </dd>
2016    /// <dt>
2017    /// BOT_CONVERSATIONS_COMPLETED
2018    /// </dt>
2019    /// <dd>
2020    /// <p>Unit: Count</p>
2021    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
2022    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-conversations-completed">Bot conversations completed</a></p>
2023    /// </dd>
2024    /// <dt>
2025    /// BOT_INTENTS_COMPLETED
2026    /// </dt>
2027    /// <dd>
2028    /// <p>Unit: Count</p>
2029    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Bot intent name, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
2030    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-intents-completed">Bot intents completed</a></p>
2031    /// </dd>
2032    /// <dt>
2033    /// CAMPAIGN_CONTACTS_ABANDONED_AFTER_X
2034    /// </dt>
2035    /// <dd>
2036    /// <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>
2037    /// <p>Unit: Count</p>
2038    /// <p>Valid groupings and filters: Agent, Campaign</p>
2039    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>GT</code> (for <i>Greater than</i>).</p>
2040    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-contacts-abandoned-after-x">Campaign contacts abandoned after X</a></p>
2041    /// </dd>
2042    /// <dt>
2043    /// CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE
2044    /// </dt>
2045    /// <dd>
2046    /// <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>
2047    /// <p>Unit: Percent</p>
2048    /// <p>Valid groupings and filters: Agent, Campaign</p>
2049    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>GT</code> (for <i>Greater than</i>).</p>
2050    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-contacts-abandoned-after-x-rate">Campaign contacts abandoned after X rate</a></p>
2051    /// </dd>
2052    /// <dt>
2053    /// CAMPAIGN_INTERACTIONS
2054    /// </dt>
2055    /// <dd>
2056    /// <p>This metric is available only for outbound campaigns using the email delivery mode.</p>
2057    /// <p>Unit: Count</p>
2058    /// <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>
2059    /// <p>Valid groupings and filters: Campaign</p>
2060    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-interactions">Campaign interactions</a></p>
2061    /// </dd>
2062    /// <dt>
2063    /// CAMPAIGN_PROGRESS_RATE
2064    /// </dt>
2065    /// <dd>
2066    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
2067    /// <p>Unit: Percent</p>
2068    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
2069    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-progress-rate">Campaign progress rate</a></p>
2070    /// </dd>
2071    /// <dt>
2072    /// CAMPAIGN_SEND_ATTEMPTS
2073    /// </dt>
2074    /// <dd>
2075    /// <p>This metric is available only for outbound campaigns.</p>
2076    /// <p>Unit: Count</p>
2077    /// <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype</p>
2078    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-send-attempts">Campaign send attempts</a></p>
2079    /// </dd>
2080    /// <dt>
2081    /// CAMPAIGN_SEND_EXCLUSIONS
2082    /// </dt>
2083    /// <dd>
2084    /// <p>This metric is available only for outbound campaigns.</p>
2085    /// <p>Valid metric filter key: CAMPAIGN_EXCLUDED_EVENT_TYPE</p>
2086    /// <p>Unit: Count</p>
2087    /// <p>Valid groupings and filters: Campaign, Campaign Excluded Event Type, Campaign Execution Timestamp</p>
2088    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-send-exclusions">Campaign send exclusions</a></p>
2089    /// </dd>
2090    /// <dt>
2091    /// CASES_CREATED
2092    /// </dt>
2093    /// <dd>
2094    /// <p>Unit: Count</p>
2095    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2096    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2097    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-created">Cases created</a></p>
2098    /// </dd>
2099    /// <dt>
2100    /// CONTACTS_CREATED
2101    /// </dt>
2102    /// <dd>
2103    /// <p>Unit: Count</p>
2104    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
2105    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2106    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-created">Contacts created</a></p><note>
2107    /// <p>Feature is a valid filter but not a valid grouping.</p>
2108    /// </note>
2109    /// </dd>
2110    /// <dt>
2111    /// CONTACTS_HANDLED
2112    /// </dt>
2113    /// <dd>
2114    /// <p>Unit: Count</p>
2115    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>, <code>DISCONNECT_REASON</code></p>
2116    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>
2117    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled">Contacts handled</a></p><note>
2118    /// <p>Feature is a valid filter but not a valid grouping.</p>
2119    /// </note>
2120    /// </dd>
2121    /// <dt>
2122    /// CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
2123    /// </dt>
2124    /// <dd>
2125    /// <p>Unit: Count</p>
2126    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
2127    /// <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2128    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled-by-connected-to-agent-timestamp">Contacts handled (connected to agent timestamp)</a></p>
2129    /// </dd>
2130    /// <dt>
2131    /// CONTACTS_HOLD_ABANDONS
2132    /// </dt>
2133    /// <dd>
2134    /// <p>Unit: Count</p>
2135    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2136    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-disconnect">Contacts hold disconnect</a></p>
2137    /// </dd>
2138    /// <dt>
2139    /// CONTACTS_ON_HOLD_AGENT_DISCONNECT
2140    /// </dt>
2141    /// <dd>
2142    /// <p>Unit: Count</p>
2143    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2144    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-agent-disconnect">Contacts hold agent disconnect</a></p>
2145    /// </dd>
2146    /// <dt>
2147    /// CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
2148    /// </dt>
2149    /// <dd>
2150    /// <p>Unit: Count</p>
2151    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2152    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-customer-disconnect">Contacts hold customer disconnect</a></p>
2153    /// </dd>
2154    /// <dt>
2155    /// CONTACTS_PUT_ON_HOLD
2156    /// </dt>
2157    /// <dd>
2158    /// <p>Unit: Count</p>
2159    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2160    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-put-on-hold">Contacts put on hold</a></p>
2161    /// </dd>
2162    /// <dt>
2163    /// CONTACTS_TRANSFERRED_OUT_EXTERNAL
2164    /// </dt>
2165    /// <dd>
2166    /// <p>Unit: Count</p>
2167    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2168    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-external">Contacts transferred out external</a></p>
2169    /// </dd>
2170    /// <dt>
2171    /// CONTACTS_TRANSFERRED_OUT_INTERNAL
2172    /// </dt>
2173    /// <dd>
2174    /// <p>Unit: Percent</p>
2175    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2176    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-internal">Contacts transferred out internal</a></p>
2177    /// </dd>
2178    /// <dt>
2179    /// CONTACTS_QUEUED
2180    /// </dt>
2181    /// <dd>
2182    /// <p>Unit: Count</p>
2183    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2184    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued">Contacts queued</a></p>
2185    /// </dd>
2186    /// <dt>
2187    /// CONTACTS_QUEUED_BY_ENQUEUE
2188    /// </dt>
2189    /// <dd>
2190    /// <p>Unit: Count</p>
2191    /// <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype</p>
2192    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued-by-enqueue">Contacts queued (enqueue timestamp)</a></p>
2193    /// </dd>
2194    /// <dt>
2195    /// CONTACTS_REMOVED_FROM_QUEUE_IN_X
2196    /// </dt>
2197    /// <dd>
2198    /// <p>Unit: Count</p>
2199    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>
2200    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
2201    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-removed-from-queue">Contacts removed from queue in X seconds</a></p>
2202    /// </dd>
2203    /// <dt>
2204    /// CONTACTS_RESOLVED_IN_X
2205    /// </dt>
2206    /// <dd>
2207    /// <p>Unit: Count</p>
2208    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2209    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
2210    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-resolved">Contacts resolved in X</a></p>
2211    /// </dd>
2212    /// <dt>
2213    /// CONTACTS_TRANSFERRED_OUT
2214    /// </dt>
2215    /// <dd>
2216    /// <p>Unit: Count</p>
2217    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2218    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out">Contacts transferred out</a></p><note>
2219    /// <p>Feature is a valid filter but not a valid grouping.</p>
2220    /// </note>
2221    /// </dd>
2222    /// <dt>
2223    /// CONTACTS_TRANSFERRED_OUT_BY_AGENT
2224    /// </dt>
2225    /// <dd>
2226    /// <p>Unit: Count</p>
2227    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2228    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-by-agent">Contacts transferred out by agent</a></p>
2229    /// </dd>
2230    /// <dt>
2231    /// CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
2232    /// </dt>
2233    /// <dd>
2234    /// <p>Unit: Count</p>
2235    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2236    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-queue">Contacts transferred out queue</a></p>
2237    /// </dd>
2238    /// <dt>
2239    /// CURRENT_CASES
2240    /// </dt>
2241    /// <dd>
2242    /// <p>Unit: Count</p>
2243    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2244    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2245    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#current-cases">Current cases</a></p>
2246    /// </dd>
2247    /// <dt>
2248    /// CONVERSATIONS_ABANDONED
2249    /// </dt>
2250    /// <dd>
2251    /// <p>Unit: Count</p>
2252    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2253    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#conversations-abandoned">Conversations abandoned</a></p>
2254    /// </dd>
2255    /// <dt>
2256    /// DELIVERY_ATTEMPTS
2257    /// </dt>
2258    /// <dd>
2259    /// <p>This metric is available only for outbound campaigns.</p>
2260    /// <p>Unit: Count</p>
2261    /// <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>
2262    /// <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Campaign Delivery EventType, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>
2263    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#delivery-attempts">Delivery attempts</a></p><note>
2264    /// <p>Campaign Delivery EventType filter and grouping are only available for SMS and Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status and Disconnect Reason are only available for agent assisted voice and automated voice delivery modes.</p>
2265    /// </note>
2266    /// </dd>
2267    /// <dt>
2268    /// DELIVERY_ATTEMPT_DISPOSITION_RATE
2269    /// </dt>
2270    /// <dd>
2271    /// <p>This metric is available only for outbound campaigns. Dispositions for the agent assisted voice and automated voice delivery modes are only available with answering machine detection enabled.</p>
2272    /// <p>Unit: Percent</p>
2273    /// <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>
2274    /// <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>
2275    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#delivery-attempt-disposition-rate">Delivery attempt disposition rate</a></p><note>
2276    /// <p>Campaign Delivery Event Type filter and grouping are only available for SMS and Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status and Disconnect Reason are only available for agent assisted voice and automated voice delivery modes.</p>
2277    /// </note>
2278    /// </dd>
2279    /// <dt>
2280    /// EVALUATIONS_PERFORMED
2281    /// </dt>
2282    /// <dd>
2283    /// <p>Unit: Count</p>
2284    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
2285    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#evaluations-performed">Evaluations performed</a></p>
2286    /// </dd>
2287    /// <dt>
2288    /// FLOWS_OUTCOME
2289    /// </dt>
2290    /// <dd>
2291    /// <p>Unit: Count</p>
2292    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
2293    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-outcome">Flows outcome</a></p>
2294    /// </dd>
2295    /// <dt>
2296    /// FLOWS_STARTED
2297    /// </dt>
2298    /// <dd>
2299    /// <p>Unit: Count</p>
2300    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows resource ID, Initiation method, Resource published timestamp</p>
2301    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-started">Flows started</a></p>
2302    /// </dd>
2303    /// <dt>
2304    /// HUMAN_ANSWERED_CALLS
2305    /// </dt>
2306    /// <dd>
2307    /// <p>This metric is available only for outbound campaigns. Dispositions for the agent assisted voice and automated voice delivery modes are only available with answering machine detection enabled.</p>
2308    /// <p>Unit: Count</p>
2309    /// <p>Valid groupings and filters: Agent, Campaign</p>
2310    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#human-answered">Human answered</a></p>
2311    /// </dd>
2312    /// <dt>
2313    /// MAX_FLOW_TIME
2314    /// </dt>
2315    /// <dd>
2316    /// <p>Unit: Seconds</p>
2317    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
2318    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#maximum-flow-time">Maximum flow time</a></p>
2319    /// </dd>
2320    /// <dt>
2321    /// MAX_QUEUED_TIME
2322    /// </dt>
2323    /// <dd>
2324    /// <p>Unit: Seconds</p>
2325    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2326    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#maximum-queued-time">Maximum queued time</a></p>
2327    /// </dd>
2328    /// <dt>
2329    /// MIN_FLOW_TIME
2330    /// </dt>
2331    /// <dd>
2332    /// <p>Unit: Seconds</p>
2333    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
2334    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#minimum-flow-time">Minimum flow time</a></p>
2335    /// </dd>
2336    /// <dt>
2337    /// PERCENT_AUTOMATIC_FAILS
2338    /// </dt>
2339    /// <dd>
2340    /// <p>Unit: Percent</p>
2341    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
2342    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#automatic-fails-percent">Automatic fails percent</a></p>
2343    /// </dd>
2344    /// <dt>
2345    /// PERCENT_BOT_CONVERSATIONS_OUTCOME
2346    /// </dt>
2347    /// <dd>
2348    /// <p>Unit: Percent</p>
2349    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
2350    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#percent-bot-conversations-outcome">Percent bot conversations outcome</a></p>
2351    /// </dd>
2352    /// <dt>
2353    /// PERCENT_BOT_INTENTS_OUTCOME
2354    /// </dt>
2355    /// <dd>
2356    /// <p>Unit: Percent</p>
2357    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Bot intent name, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
2358    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#percent-bot-intents-outcome">Percent bot intents outcome</a></p>
2359    /// </dd>
2360    /// <dt>
2361    /// PERCENT_CASES_FIRST_CONTACT_RESOLVED
2362    /// </dt>
2363    /// <dd>
2364    /// <p>Unit: Percent</p>
2365    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2366    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2367    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-resolved-on-first-contact">Cases resolved on first contact</a></p>
2368    /// </dd>
2369    /// <dt>
2370    /// PERCENT_CONTACTS_STEP_EXPIRED
2371    /// </dt>
2372    /// <dd>
2373    /// <p>Unit: Percent</p>
2374    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
2375    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
2376    /// </dd>
2377    /// <dt>
2378    /// PERCENT_CONTACTS_STEP_JOINED
2379    /// </dt>
2380    /// <dd>
2381    /// <p>Unit: Percent</p>
2382    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
2383    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
2384    /// </dd>
2385    /// <dt>
2386    /// PERCENT_FLOWS_OUTCOME
2387    /// </dt>
2388    /// <dd>
2389    /// <p>Unit: Percent</p>
2390    /// <p>Valid metric filter key: <code>FLOWS_OUTCOME_TYPE</code></p>
2391    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
2392    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-outcome-percentage">Flows outcome percentage</a>.</p><note>
2393    /// <p>The <code>FLOWS_OUTCOME_TYPE</code> is not a valid grouping.</p>
2394    /// </note>
2395    /// </dd>
2396    /// <dt>
2397    /// PERCENT_NON_TALK_TIME
2398    /// </dt>
2399    /// <dd>
2400    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2401    /// <p>Unit: Percentage</p>
2402    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2403    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-talk-time-percent">Non-talk time percent</a></p>
2404    /// </dd>
2405    /// <dt>
2406    /// PERCENT_TALK_TIME
2407    /// </dt>
2408    /// <dd>
2409    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2410    /// <p>Unit: Percentage</p>
2411    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2412    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#talk-time-percent">Talk time percent</a></p>
2413    /// </dd>
2414    /// <dt>
2415    /// PERCENT_TALK_TIME_AGENT
2416    /// </dt>
2417    /// <dd>
2418    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2419    /// <p>Unit: Percentage</p>
2420    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2421    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-talk-time-percent">Agent talk time percent</a></p>
2422    /// </dd>
2423    /// <dt>
2424    /// PERCENT_TALK_TIME_CUSTOMER
2425    /// </dt>
2426    /// <dd>
2427    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2428    /// <p>Unit: Percentage</p>
2429    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2430    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#customer-talk-time-percent">Customer talk time percent</a></p>
2431    /// </dd>
2432    /// <dt>
2433    /// RECIPIENTS_ATTEMPTED
2434    /// </dt>
2435    /// <dd>
2436    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
2437    /// <p>Unit: Count</p>
2438    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
2439    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-attempted">Recipients attempted</a></p>
2440    /// </dd>
2441    /// <dt>
2442    /// RECIPIENTS_INTERACTED
2443    /// </dt>
2444    /// <dd>
2445    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
2446    /// <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>
2447    /// <p>Unit: Count</p>
2448    /// <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype, Campaign Execution Timestamp</p>
2449    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-interacted">Recipients interacted</a></p>
2450    /// </dd>
2451    /// <dt>
2452    /// RECIPIENTS_TARGETED
2453    /// </dt>
2454    /// <dd>
2455    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
2456    /// <p>Unit: Count</p>
2457    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
2458    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-targeted">Recipients targeted</a></p>
2459    /// </dd>
2460    /// <dt>
2461    /// REOPENED_CASE_ACTIONS
2462    /// </dt>
2463    /// <dd>
2464    /// <p>Unit: Count</p>
2465    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2466    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2467    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-reopened">Cases reopened</a></p>
2468    /// </dd>
2469    /// <dt>
2470    /// RESOLVED_CASE_ACTIONS
2471    /// </dt>
2472    /// <dd>
2473    /// <p>Unit: Count</p>
2474    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2475    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2476    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-resolved">Cases resolved</a></p>
2477    /// </dd>
2478    /// <dt>
2479    /// SERVICE_LEVEL
2480    /// </dt>
2481    /// <dd>
2482    /// <p>You can include up to 20 SERVICE_LEVEL metrics in a request.</p>
2483    /// <p>Unit: Percent</p>
2484    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>
2485    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
2486    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#service-level">Service level X</a></p>
2487    /// </dd>
2488    /// <dt>
2489    /// STEP_CONTACTS_QUEUED
2490    /// </dt>
2491    /// <dd>
2492    /// <p>Unit: Count</p>
2493    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
2494    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
2495    /// </dd>
2496    /// <dt>
2497    /// SUM_AFTER_CONTACT_WORK_TIME
2498    /// </dt>
2499    /// <dd>
2500    /// <p>Unit: Seconds</p>
2501    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2502    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">After contact work time</a></p>
2503    /// </dd>
2504    /// <dt>
2505    /// SUM_CONNECTING_TIME_AGENT
2506    /// </dt>
2507    /// <dd>
2508    /// <p>Unit: Seconds</p>
2509    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>. This metric only supports the following filter keys as <code>INITIATION_METHOD</code>: <code>INBOUND</code> | <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code> | <code>CALLBACK_CUSTOMER_FIRST_DIALED</code></p>
2510    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2511    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-api-connecting-time">Agent API connecting time</a></p><note>
2512    /// <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>
2513    /// </note>
2514    /// </dd>
2515    /// <dt>
2516    /// CONTACTS_ABANDONED
2517    /// </dt>
2518    /// <dd>
2519    /// <p>Unit: Count</p>
2520    /// <p>Metric filter:</p>
2521    /// <ul>
2522    /// <li>
2523    /// <p>Valid values: <code>API</code>| <code>INCOMING</code> | <code>OUTBOUND</code> | <code>TRANSFER</code> | <code>CALLBACK</code> | <code>QUEUE_TRANSFER</code>| <code>Disconnect</code> | <code>CALLBACK_CUSTOMER_FIRST_DIALED</code></p></li>
2524    /// </ul>
2525    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>
2526    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned">Contact abandoned</a></p>
2527    /// </dd>
2528    /// <dt>
2529    /// SUM_CONTACTS_ABANDONED_IN_X
2530    /// </dt>
2531    /// <dd>
2532    /// <p>Unit: Count</p>
2533    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2534    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
2535    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned-in-x-seconds">Contacts abandoned in X seconds</a></p>
2536    /// </dd>
2537    /// <dt>
2538    /// SUM_CONTACTS_ANSWERED_IN_X
2539    /// </dt>
2540    /// <dd>
2541    /// <p>Unit: Count</p>
2542    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2543    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
2544    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-answered-in-x-seconds">Contacts answered in X seconds</a></p>
2545    /// </dd>
2546    /// <dt>
2547    /// SUM_CONTACT_FLOW_TIME
2548    /// </dt>
2549    /// <dd>
2550    /// <p>Unit: Seconds</p>
2551    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2552    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-flow-time">Contact flow time</a></p>
2553    /// </dd>
2554    /// <dt>
2555    /// SUM_CONTACT_TIME_AGENT
2556    /// </dt>
2557    /// <dd>
2558    /// <p>Unit: Seconds</p>
2559    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
2560    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-on-contact-time">Agent on contact time</a></p>
2561    /// </dd>
2562    /// <dt>
2563    /// SUM_CONTACTS_DISCONNECTED
2564    /// </dt>
2565    /// <dd>
2566    /// <p>Valid metric filter key: <code>DISCONNECT_REASON</code></p>
2567    /// <p>Unit: Count</p>
2568    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2569    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-disconnected">Contact disconnected</a></p>
2570    /// </dd>
2571    /// <dt>
2572    /// SUM_ERROR_STATUS_TIME_AGENT
2573    /// </dt>
2574    /// <dd>
2575    /// <p>Unit: Seconds</p>
2576    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
2577    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#error-status-time">Error status time</a></p>
2578    /// </dd>
2579    /// <dt>
2580    /// SUM_HANDLE_TIME
2581    /// </dt>
2582    /// <dd>
2583    /// <p>Unit: Seconds</p>
2584    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2585    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-handle-time">Contact handle time</a></p>
2586    /// </dd>
2587    /// <dt>
2588    /// SUM_HOLD_TIME
2589    /// </dt>
2590    /// <dd>
2591    /// <p>Unit: Count</p>
2592    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2593    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#customer-hold-time">Customer hold time</a></p>
2594    /// </dd>
2595    /// <dt>
2596    /// SUM_IDLE_TIME_AGENT
2597    /// </dt>
2598    /// <dd>
2599    /// <p>Unit: Seconds</p>
2600    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
2601    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-idle-time">Agent idle time</a></p>
2602    /// </dd>
2603    /// <dt>
2604    /// SUM_INTERACTION_AND_HOLD_TIME
2605    /// </dt>
2606    /// <dd>
2607    /// <p>Unit: Seconds</p>
2608    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2609    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-interaction-and-hold-time">Agent interaction and hold time</a></p>
2610    /// </dd>
2611    /// <dt>
2612    /// SUM_INTERACTION_TIME
2613    /// </dt>
2614    /// <dd>
2615    /// <p>Unit: Seconds</p>
2616    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2617    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-interaction-time">Agent interaction time</a></p>
2618    /// </dd>
2619    /// <dt>
2620    /// SUM_NON_PRODUCTIVE_TIME_AGENT
2621    /// </dt>
2622    /// <dd>
2623    /// <p>Unit: Seconds</p>
2624    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
2625    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-productive-time">Agent non-productive time</a></p>
2626    /// </dd>
2627    /// <dt>
2628    /// SUM_ONLINE_TIME_AGENT
2629    /// </dt>
2630    /// <dd>
2631    /// <p>Unit: Seconds</p>
2632    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
2633    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#online-time">Online time</a></p>
2634    /// </dd>
2635    /// <dt>
2636    /// SUM_RETRY_CALLBACK_ATTEMPTS
2637    /// </dt>
2638    /// <dd>
2639    /// <p>Unit: Count</p>
2640    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2641    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#callback-attempts">Callback attempts</a></p>
2642    /// </dd>
2643    /// </dl>
2644    pub fn set_metrics(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::MetricV2>>) -> Self {
2645        self.inner = self.inner.set_metrics(input);
2646        self
2647    }
2648    /// <p>The metrics to retrieve. Specify the name, groupings, and filters for each metric. The following historical metrics are available. For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definition</a> in the <i>Amazon Connect Administrator Guide</i>.</p>
2649    /// <dl>
2650    /// <dt>
2651    /// ABANDONMENT_RATE
2652    /// </dt>
2653    /// <dd>
2654    /// <p>Unit: Percent</p>
2655    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2656    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#abandonment-rate">Abandonment rate</a></p>
2657    /// </dd>
2658    /// <dt>
2659    /// AGENT_ADHERENT_TIME
2660    /// </dt>
2661    /// <dd>
2662    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
2663    /// <p>Unit: Seconds</p>
2664    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2665    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#adherent-time">Adherent time</a></p>
2666    /// </dd>
2667    /// <dt>
2668    /// AGENT_ANSWER_RATE
2669    /// </dt>
2670    /// <dd>
2671    /// <p>Unit: Percent</p>
2672    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2673    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-answer-rate">Agent answer rate</a></p>
2674    /// </dd>
2675    /// <dt>
2676    /// AGENT_NON_ADHERENT_TIME
2677    /// </dt>
2678    /// <dd>
2679    /// <p>Unit: Seconds</p>
2680    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2681    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-adherent-time">Non-adherent time</a></p>
2682    /// </dd>
2683    /// <dt>
2684    /// AGENT_NON_RESPONSE
2685    /// </dt>
2686    /// <dd>
2687    /// <p>Unit: Count</p>
2688    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2689    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response">Agent non-response</a></p>
2690    /// </dd>
2691    /// <dt>
2692    /// AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS
2693    /// </dt>
2694    /// <dd>
2695    /// <p>Unit: Count</p>
2696    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2697    /// <p>Data for this metric is available starting from October 1, 2023 0:00:00 GMT.</p>
2698    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response-without-customer-abandons">Agent non-response without customer abandons</a></p>
2699    /// </dd>
2700    /// <dt>
2701    /// AGENT_OCCUPANCY
2702    /// </dt>
2703    /// <dd>
2704    /// <p>Unit: Percentage</p>
2705    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
2706    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#occupancy">Occupancy</a></p>
2707    /// </dd>
2708    /// <dt>
2709    /// AGENT_SCHEDULE_ADHERENCE
2710    /// </dt>
2711    /// <dd>
2712    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
2713    /// <p>Unit: Percent</p>
2714    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2715    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#adherence">Adherence</a></p>
2716    /// </dd>
2717    /// <dt>
2718    /// AGENT_SCHEDULED_TIME
2719    /// </dt>
2720    /// <dd>
2721    /// <p>This metric is available only in Amazon Web Services Regions where <a href="https://docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region">Forecasting, capacity planning, and scheduling</a> is available.</p>
2722    /// <p>Unit: Seconds</p>
2723    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2724    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#scheduled-time">Scheduled time</a></p>
2725    /// </dd>
2726    /// <dt>
2727    /// AVG_ABANDON_TIME
2728    /// </dt>
2729    /// <dd>
2730    /// <p>Unit: Seconds</p>
2731    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2732    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
2733    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-abandon-time">Average queue abandon time</a></p>
2734    /// </dd>
2735    /// <dt>
2736    /// AVG_ACTIVE_TIME
2737    /// </dt>
2738    /// <dd>
2739    /// <p>Unit: Seconds</p>
2740    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2741    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-active-time">Average active time</a></p>
2742    /// </dd>
2743    /// <dt>
2744    /// AVG_AFTER_CONTACT_WORK_TIME
2745    /// </dt>
2746    /// <dd>
2747    /// <p>Unit: Seconds</p>
2748    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
2749    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2750    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">Average after contact work time</a></p><note>
2751    /// <p>Feature is a valid filter but not a valid grouping.</p>
2752    /// </note>
2753    /// </dd>
2754    /// <dt>
2755    /// AVG_AGENT_CONCURRENCY
2756    /// </dt>
2757    /// <dd>
2758    /// <p>Unit: Count</p>
2759    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2760    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-concurrency">Average agent concurrency</a></p>
2761    /// </dd>
2762    /// <dt>
2763    /// AVG_AGENT_CONNECTING_TIME
2764    /// </dt>
2765    /// <dd>
2766    /// <p>Unit: Seconds</p>
2767    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>. For now, this metric only supports the following as <code>INITIATION_METHOD</code>: <code>INBOUND</code> | <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code></p>
2768    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
2769    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-api-connecting-time">Average agent API connecting time</a></p><note>
2770    /// <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>
2771    /// </note>
2772    /// </dd>
2773    /// <dt>
2774    /// AVG_AGENT_PAUSE_TIME
2775    /// </dt>
2776    /// <dd>
2777    /// <p>Unit: Seconds</p>
2778    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
2779    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-pause-time">Average agent pause time</a></p>
2780    /// </dd>
2781    /// <dt>
2782    /// AVG_BOT_CONVERSATION_TIME
2783    /// </dt>
2784    /// <dd>
2785    /// <p>Unit: Seconds</p>
2786    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
2787    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#average-bot-conversation-time">Average bot conversation time</a></p>
2788    /// </dd>
2789    /// <dt>
2790    /// AVG_BOT_CONVERSATION_TURNS
2791    /// </dt>
2792    /// <dd>
2793    /// <p>Unit: Count</p>
2794    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
2795    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#average-bot-conversation-turns">Average bot conversation turns</a></p>
2796    /// </dd>
2797    /// <dt>
2798    /// AVG_CASE_RELATED_CONTACTS
2799    /// </dt>
2800    /// <dd>
2801    /// <p>Unit: Count</p>
2802    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2803    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2804    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-contacts-per-case">Average contacts per case</a></p>
2805    /// </dd>
2806    /// <dt>
2807    /// AVG_CASE_RESOLUTION_TIME
2808    /// </dt>
2809    /// <dd>
2810    /// <p>Unit: Seconds</p>
2811    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
2812    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
2813    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-case-resolution-time">Average case resolution time</a></p>
2814    /// </dd>
2815    /// <dt>
2816    /// AVG_CONTACT_DURATION
2817    /// </dt>
2818    /// <dd>
2819    /// <p>Unit: Seconds</p>
2820    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2821    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-contact-duration">Average contact duration</a></p><note>
2822    /// <p>Feature is a valid filter but not a valid grouping.</p>
2823    /// </note>
2824    /// </dd>
2825    /// <dt>
2826    /// AVG_CONTACT_FIRST_RESPONSE_TIME_AGENT
2827    /// </dt>
2828    /// <dd>
2829    /// <p>Unit: Seconds</p>
2830    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2831    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-average-contact-first-response-wait-time">Agent average contact first response wait time</a></p>
2832    /// </dd>
2833    /// <dt>
2834    /// AVG_CONVERSATION_CLOSE_TIME
2835    /// </dt>
2836    /// <dd>
2837    /// <p>Unit: Seconds</p>
2838    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2839    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-conversation-close-time">Average conversation close time</a></p>
2840    /// </dd>
2841    /// <dt>
2842    /// AVG_CONVERSATION_DURATION
2843    /// </dt>
2844    /// <dd>
2845    /// <p>Unit: Seconds</p>
2846    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2847    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-conversation-duration">Average conversation duration</a></p>
2848    /// </dd>
2849    /// <dt>
2850    /// AVG_DIALS_PER_MINUTE
2851    /// </dt>
2852    /// <dd>
2853    /// <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>
2854    /// <p>Unit: Count</p>
2855    /// <p>Valid groupings and filters: Agent, Campaign, Queue, Routing Profile</p>
2856    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-dials-per-minute">Average dials per minute</a></p>
2857    /// </dd>
2858    /// <dt>
2859    /// AVG_EVALUATION_SCORE
2860    /// </dt>
2861    /// <dd>
2862    /// <p>Unit: Percent</p>
2863    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Section ID, Evaluation Question ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
2864    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-evaluation-score">Average evaluation score</a></p>
2865    /// </dd>
2866    /// <dt>
2867    /// AVG_FIRST_RESPONSE_TIME_AGENT
2868    /// </dt>
2869    /// <dd>
2870    /// <p>Unit: Seconds</p>
2871    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2872    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-first-response-time">Average agent first response time</a></p>
2873    /// </dd>
2874    /// <dt>
2875    /// AVG_FLOW_TIME
2876    /// </dt>
2877    /// <dd>
2878    /// <p>Unit: Seconds</p>
2879    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
2880    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-flow-time">Average flow time</a></p>
2881    /// </dd>
2882    /// <dt>
2883    /// AVG_GREETING_TIME_AGENT
2884    /// </dt>
2885    /// <dd>
2886    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2887    /// <p>Unit: Seconds</p>
2888    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2889    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-greeting-time">Average agent greeting time</a></p>
2890    /// </dd>
2891    /// <dt>
2892    /// AVG_HANDLE_TIME
2893    /// </dt>
2894    /// <dd>
2895    /// <p>Unit: Seconds</p>
2896    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression</p>
2897    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-handle-time">Average handle time</a></p><note>
2898    /// <p>Feature is a valid filter but not a valid grouping.</p>
2899    /// </note>
2900    /// </dd>
2901    /// <dt>
2902    /// AVG_HOLD_TIME
2903    /// </dt>
2904    /// <dd>
2905    /// <p>Unit: Seconds</p>
2906    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2907    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time">Average customer hold time</a></p><note>
2908    /// <p>Feature is a valid filter but not a valid grouping.</p>
2909    /// </note>
2910    /// </dd>
2911    /// <dt>
2912    /// AVG_HOLD_TIME_ALL_CONTACTS
2913    /// </dt>
2914    /// <dd>
2915    /// <p>Unit: Seconds</p>
2916    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2917    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time-all-contacts">Average customer hold time all contacts</a></p>
2918    /// </dd>
2919    /// <dt>
2920    /// AVG_HOLDS
2921    /// </dt>
2922    /// <dd>
2923    /// <p>Unit: Count</p>
2924    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2925    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-holds">Average holds</a></p><note>
2926    /// <p>Feature is a valid filter but not a valid grouping.</p>
2927    /// </note>
2928    /// </dd>
2929    /// <dt>
2930    /// AVG_INTERACTION_AND_HOLD_TIME
2931    /// </dt>
2932    /// <dd>
2933    /// <p>Unit: Seconds</p>
2934    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2935    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-and-customer-hold-time">Average agent interaction and customer hold time</a></p>
2936    /// </dd>
2937    /// <dt>
2938    /// AVG_INTERACTION_TIME
2939    /// </dt>
2940    /// <dd>
2941    /// <p>Unit: Seconds</p>
2942    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
2943    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2944    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-time">Average agent interaction time</a></p><note>
2945    /// <p>Feature is a valid filter but not a valid grouping.</p>
2946    /// </note>
2947    /// </dd>
2948    /// <dt>
2949    /// AVG_INTERRUPTIONS_AGENT
2950    /// </dt>
2951    /// <dd>
2952    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2953    /// <p>Unit: Count</p>
2954    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2955    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interruptions">Average agent interruptions</a></p>
2956    /// </dd>
2957    /// <dt>
2958    /// AVG_INTERRUPTION_TIME_AGENT
2959    /// </dt>
2960    /// <dd>
2961    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
2962    /// <p>Unit: Seconds</p>
2963    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
2964    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interruption-time">Average agent interruption time</a></p>
2965    /// </dd>
2966    /// <dt>
2967    /// AVG_MESSAGE_LENGTH_AGENT
2968    /// </dt>
2969    /// <dd>
2970    /// <p>Unit: Count</p>
2971    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2972    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-message-length">Average agent message length</a></p>
2973    /// </dd>
2974    /// <dt>
2975    /// AVG_MESSAGE_LENGTH_CUSTOMER
2976    /// </dt>
2977    /// <dd>
2978    /// <p>Unit: Count</p>
2979    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2980    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-message-length">Average customer message length</a></p>
2981    /// </dd>
2982    /// <dt>
2983    /// AVG_MESSAGES
2984    /// </dt>
2985    /// <dd>
2986    /// <p>Unit: Count</p>
2987    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2988    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-messages">Average messages</a></p>
2989    /// </dd>
2990    /// <dt>
2991    /// AVG_MESSAGES_AGENT
2992    /// </dt>
2993    /// <dd>
2994    /// <p>Unit: Count</p>
2995    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
2996    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-messages">Average agent messages</a></p>
2997    /// </dd>
2998    /// <dt>
2999    /// AVG_MESSAGES_BOT
3000    /// </dt>
3001    /// <dd>
3002    /// <p>Unit: Count</p>
3003    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
3004    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-bot-messages">Average bot messages</a></p>
3005    /// </dd>
3006    /// <dt>
3007    /// AVG_MESSAGES_CUSTOMER
3008    /// </dt>
3009    /// <dd>
3010    /// <p>Unit: Count</p>
3011    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
3012    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-messages">Average customer messages</a></p>
3013    /// </dd>
3014    /// <dt>
3015    /// AVG_NON_TALK_TIME
3016    /// </dt>
3017    /// <dd>
3018    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3019    /// <p>Unit: Seconds</p>
3020    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3021    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-non-talk-time">Average non-talk time</a></p>
3022    /// </dd>
3023    /// <dt>
3024    /// AVG_QUEUE_ANSWER_TIME
3025    /// </dt>
3026    /// <dd>
3027    /// <p>Unit: Seconds</p>
3028    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3029    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-answer-time">Average queue answer time</a></p>
3030    /// <p>Valid metric level filters: <code>INITIATION_METHOD</code>, <code>FEATURE</code>, <code>DISCONNECT_REASON</code></p><note>
3031    /// <p>Feature is a valid filter but not a valid grouping.</p>
3032    /// </note>
3033    /// </dd>
3034    /// <dt>
3035    /// AVG_QUEUE_ANSWER_TIME_CUSTOMER_FIRST_CALLBACK
3036    /// </dt>
3037    /// <dd>
3038    /// <p>Unit: Seconds</p>
3039    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect, Agent Hierarchy</p>
3040    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-answer-time-customer-first-callback">Avg. queue answer time - customer first callback</a></p>
3041    /// </dd>
3042    /// <dt>
3043    /// AVG_RESPONSE_TIME_AGENT
3044    /// </dt>
3045    /// <dd>
3046    /// <p>Unit: Seconds</p>
3047    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
3048    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-response-time-agent">Average agent response time</a></p>
3049    /// </dd>
3050    /// <dt>
3051    /// AVG_RESPONSE_TIME_CUSTOMER
3052    /// </dt>
3053    /// <dd>
3054    /// <p>Unit: Seconds</p>
3055    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
3056    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-time-agent">Average customer response time</a></p>
3057    /// </dd>
3058    /// <dt>
3059    /// AVG_RESOLUTION_TIME
3060    /// </dt>
3061    /// <dd>
3062    /// <p>Unit: Seconds</p>
3063    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3064    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-resolution-time">Average resolution time</a></p>
3065    /// </dd>
3066    /// <dt>
3067    /// AVG_TALK_TIME
3068    /// </dt>
3069    /// <dd>
3070    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3071    /// <p>Unit: Seconds</p>
3072    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3073    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-talk-time">Average talk time</a></p>
3074    /// </dd>
3075    /// <dt>
3076    /// AVG_TALK_TIME_AGENT
3077    /// </dt>
3078    /// <dd>
3079    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3080    /// <p>Unit: Seconds</p>
3081    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3082    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-talk-time">Average agent talk time</a></p>
3083    /// </dd>
3084    /// <dt>
3085    /// AVG_TALK_TIME_CUSTOMER
3086    /// </dt>
3087    /// <dd>
3088    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3089    /// <p>Unit: Seconds</p>
3090    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3091    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-talk-time">Average customer talk time</a></p>
3092    /// </dd>
3093    /// <dt>
3094    /// AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION
3095    /// </dt>
3096    /// <dd>
3097    /// <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>
3098    /// <p>Unit: Seconds</p>
3099    /// <p>Valid groupings and filters: Campaign</p>
3100    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-wait-time-after-customer-connection">Average wait time after customer connection</a></p>
3101    /// </dd>
3102    /// <dt>
3103    /// AVG_WAIT_TIME_AFTER_CUSTOMER_FIRST_CALLBACK_CONNECTION
3104    /// </dt>
3105    /// <dd>
3106    /// <p>Unit: Seconds</p>
3107    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect, Agent Hierarchy</p>
3108    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-wait-time-after-customer-connection-customer-first-callback">Avg. wait time after customer connection - customer first callback</a></p>
3109    /// </dd>
3110    /// <dt>
3111    /// AVG_WEIGHTED_EVALUATION_SCORE
3112    /// </dt>
3113    /// <dd>
3114    /// <p>Unit: Percent</p>
3115    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form Id, Evaluation Section ID, Evaluation Question ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
3116    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-weighted-evaluation-score">Average weighted evaluation score</a></p>
3117    /// </dd>
3118    /// <dt>
3119    /// BOT_CONVERSATIONS_COMPLETED
3120    /// </dt>
3121    /// <dd>
3122    /// <p>Unit: Count</p>
3123    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
3124    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-conversations-completed">Bot conversations completed</a></p>
3125    /// </dd>
3126    /// <dt>
3127    /// BOT_INTENTS_COMPLETED
3128    /// </dt>
3129    /// <dd>
3130    /// <p>Unit: Count</p>
3131    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Bot intent name, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
3132    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-intents-completed">Bot intents completed</a></p>
3133    /// </dd>
3134    /// <dt>
3135    /// CAMPAIGN_CONTACTS_ABANDONED_AFTER_X
3136    /// </dt>
3137    /// <dd>
3138    /// <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>
3139    /// <p>Unit: Count</p>
3140    /// <p>Valid groupings and filters: Agent, Campaign</p>
3141    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>GT</code> (for <i>Greater than</i>).</p>
3142    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-contacts-abandoned-after-x">Campaign contacts abandoned after X</a></p>
3143    /// </dd>
3144    /// <dt>
3145    /// CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE
3146    /// </dt>
3147    /// <dd>
3148    /// <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>
3149    /// <p>Unit: Percent</p>
3150    /// <p>Valid groupings and filters: Agent, Campaign</p>
3151    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you must enter <code>GT</code> (for <i>Greater than</i>).</p>
3152    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-contacts-abandoned-after-x-rate">Campaign contacts abandoned after X rate</a></p>
3153    /// </dd>
3154    /// <dt>
3155    /// CAMPAIGN_INTERACTIONS
3156    /// </dt>
3157    /// <dd>
3158    /// <p>This metric is available only for outbound campaigns using the email delivery mode.</p>
3159    /// <p>Unit: Count</p>
3160    /// <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>
3161    /// <p>Valid groupings and filters: Campaign</p>
3162    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-interactions">Campaign interactions</a></p>
3163    /// </dd>
3164    /// <dt>
3165    /// CAMPAIGN_PROGRESS_RATE
3166    /// </dt>
3167    /// <dd>
3168    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
3169    /// <p>Unit: Percent</p>
3170    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
3171    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-progress-rate">Campaign progress rate</a></p>
3172    /// </dd>
3173    /// <dt>
3174    /// CAMPAIGN_SEND_ATTEMPTS
3175    /// </dt>
3176    /// <dd>
3177    /// <p>This metric is available only for outbound campaigns.</p>
3178    /// <p>Unit: Count</p>
3179    /// <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype</p>
3180    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-send-attempts">Campaign send attempts</a></p>
3181    /// </dd>
3182    /// <dt>
3183    /// CAMPAIGN_SEND_EXCLUSIONS
3184    /// </dt>
3185    /// <dd>
3186    /// <p>This metric is available only for outbound campaigns.</p>
3187    /// <p>Valid metric filter key: CAMPAIGN_EXCLUDED_EVENT_TYPE</p>
3188    /// <p>Unit: Count</p>
3189    /// <p>Valid groupings and filters: Campaign, Campaign Excluded Event Type, Campaign Execution Timestamp</p>
3190    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#campaign-send-exclusions">Campaign send exclusions</a></p>
3191    /// </dd>
3192    /// <dt>
3193    /// CASES_CREATED
3194    /// </dt>
3195    /// <dd>
3196    /// <p>Unit: Count</p>
3197    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
3198    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
3199    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-created">Cases created</a></p>
3200    /// </dd>
3201    /// <dt>
3202    /// CONTACTS_CREATED
3203    /// </dt>
3204    /// <dd>
3205    /// <p>Unit: Count</p>
3206    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
3207    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3208    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-created">Contacts created</a></p><note>
3209    /// <p>Feature is a valid filter but not a valid grouping.</p>
3210    /// </note>
3211    /// </dd>
3212    /// <dt>
3213    /// CONTACTS_HANDLED
3214    /// </dt>
3215    /// <dd>
3216    /// <p>Unit: Count</p>
3217    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>, <code>DISCONNECT_REASON</code></p>
3218    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>
3219    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled">Contacts handled</a></p><note>
3220    /// <p>Feature is a valid filter but not a valid grouping.</p>
3221    /// </note>
3222    /// </dd>
3223    /// <dt>
3224    /// CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT
3225    /// </dt>
3226    /// <dd>
3227    /// <p>Unit: Count</p>
3228    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>
3229    /// <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3230    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled-by-connected-to-agent-timestamp">Contacts handled (connected to agent timestamp)</a></p>
3231    /// </dd>
3232    /// <dt>
3233    /// CONTACTS_HOLD_ABANDONS
3234    /// </dt>
3235    /// <dd>
3236    /// <p>Unit: Count</p>
3237    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3238    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-disconnect">Contacts hold disconnect</a></p>
3239    /// </dd>
3240    /// <dt>
3241    /// CONTACTS_ON_HOLD_AGENT_DISCONNECT
3242    /// </dt>
3243    /// <dd>
3244    /// <p>Unit: Count</p>
3245    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3246    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-agent-disconnect">Contacts hold agent disconnect</a></p>
3247    /// </dd>
3248    /// <dt>
3249    /// CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT
3250    /// </dt>
3251    /// <dd>
3252    /// <p>Unit: Count</p>
3253    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3254    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-customer-disconnect">Contacts hold customer disconnect</a></p>
3255    /// </dd>
3256    /// <dt>
3257    /// CONTACTS_PUT_ON_HOLD
3258    /// </dt>
3259    /// <dd>
3260    /// <p>Unit: Count</p>
3261    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3262    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-put-on-hold">Contacts put on hold</a></p>
3263    /// </dd>
3264    /// <dt>
3265    /// CONTACTS_TRANSFERRED_OUT_EXTERNAL
3266    /// </dt>
3267    /// <dd>
3268    /// <p>Unit: Count</p>
3269    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3270    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-external">Contacts transferred out external</a></p>
3271    /// </dd>
3272    /// <dt>
3273    /// CONTACTS_TRANSFERRED_OUT_INTERNAL
3274    /// </dt>
3275    /// <dd>
3276    /// <p>Unit: Percent</p>
3277    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3278    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-internal">Contacts transferred out internal</a></p>
3279    /// </dd>
3280    /// <dt>
3281    /// CONTACTS_QUEUED
3282    /// </dt>
3283    /// <dd>
3284    /// <p>Unit: Count</p>
3285    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3286    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued">Contacts queued</a></p>
3287    /// </dd>
3288    /// <dt>
3289    /// CONTACTS_QUEUED_BY_ENQUEUE
3290    /// </dt>
3291    /// <dd>
3292    /// <p>Unit: Count</p>
3293    /// <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype</p>
3294    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued-by-enqueue">Contacts queued (enqueue timestamp)</a></p>
3295    /// </dd>
3296    /// <dt>
3297    /// CONTACTS_REMOVED_FROM_QUEUE_IN_X
3298    /// </dt>
3299    /// <dd>
3300    /// <p>Unit: Count</p>
3301    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>
3302    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
3303    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-removed-from-queue">Contacts removed from queue in X seconds</a></p>
3304    /// </dd>
3305    /// <dt>
3306    /// CONTACTS_RESOLVED_IN_X
3307    /// </dt>
3308    /// <dd>
3309    /// <p>Unit: Count</p>
3310    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3311    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
3312    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-resolved">Contacts resolved in X</a></p>
3313    /// </dd>
3314    /// <dt>
3315    /// CONTACTS_TRANSFERRED_OUT
3316    /// </dt>
3317    /// <dd>
3318    /// <p>Unit: Count</p>
3319    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3320    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out">Contacts transferred out</a></p><note>
3321    /// <p>Feature is a valid filter but not a valid grouping.</p>
3322    /// </note>
3323    /// </dd>
3324    /// <dt>
3325    /// CONTACTS_TRANSFERRED_OUT_BY_AGENT
3326    /// </dt>
3327    /// <dd>
3328    /// <p>Unit: Count</p>
3329    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3330    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-by-agent">Contacts transferred out by agent</a></p>
3331    /// </dd>
3332    /// <dt>
3333    /// CONTACTS_TRANSFERRED_OUT_FROM_QUEUE
3334    /// </dt>
3335    /// <dd>
3336    /// <p>Unit: Count</p>
3337    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3338    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-queue">Contacts transferred out queue</a></p>
3339    /// </dd>
3340    /// <dt>
3341    /// CURRENT_CASES
3342    /// </dt>
3343    /// <dd>
3344    /// <p>Unit: Count</p>
3345    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
3346    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
3347    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#current-cases">Current cases</a></p>
3348    /// </dd>
3349    /// <dt>
3350    /// CONVERSATIONS_ABANDONED
3351    /// </dt>
3352    /// <dd>
3353    /// <p>Unit: Count</p>
3354    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Feature, RoutingStepExpression, Initiation method, Routing Profile, Queue, Q in Connect</p>
3355    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#conversations-abandoned">Conversations abandoned</a></p>
3356    /// </dd>
3357    /// <dt>
3358    /// DELIVERY_ATTEMPTS
3359    /// </dt>
3360    /// <dd>
3361    /// <p>This metric is available only for outbound campaigns.</p>
3362    /// <p>Unit: Count</p>
3363    /// <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>
3364    /// <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Campaign Delivery EventType, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>
3365    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#delivery-attempts">Delivery attempts</a></p><note>
3366    /// <p>Campaign Delivery EventType filter and grouping are only available for SMS and Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status and Disconnect Reason are only available for agent assisted voice and automated voice delivery modes.</p>
3367    /// </note>
3368    /// </dd>
3369    /// <dt>
3370    /// DELIVERY_ATTEMPT_DISPOSITION_RATE
3371    /// </dt>
3372    /// <dd>
3373    /// <p>This metric is available only for outbound campaigns. Dispositions for the agent assisted voice and automated voice delivery modes are only available with answering machine detection enabled.</p>
3374    /// <p>Unit: Percent</p>
3375    /// <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>
3376    /// <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>
3377    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#delivery-attempt-disposition-rate">Delivery attempt disposition rate</a></p><note>
3378    /// <p>Campaign Delivery Event Type filter and grouping are only available for SMS and Email campaign delivery modes. Agent, Queue, Routing Profile, Answering Machine Detection Status and Disconnect Reason are only available for agent assisted voice and automated voice delivery modes.</p>
3379    /// </note>
3380    /// </dd>
3381    /// <dt>
3382    /// EVALUATIONS_PERFORMED
3383    /// </dt>
3384    /// <dd>
3385    /// <p>Unit: Count</p>
3386    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
3387    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#evaluations-performed">Evaluations performed</a></p>
3388    /// </dd>
3389    /// <dt>
3390    /// FLOWS_OUTCOME
3391    /// </dt>
3392    /// <dd>
3393    /// <p>Unit: Count</p>
3394    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
3395    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-outcome">Flows outcome</a></p>
3396    /// </dd>
3397    /// <dt>
3398    /// FLOWS_STARTED
3399    /// </dt>
3400    /// <dd>
3401    /// <p>Unit: Count</p>
3402    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows resource ID, Initiation method, Resource published timestamp</p>
3403    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-started">Flows started</a></p>
3404    /// </dd>
3405    /// <dt>
3406    /// HUMAN_ANSWERED_CALLS
3407    /// </dt>
3408    /// <dd>
3409    /// <p>This metric is available only for outbound campaigns. Dispositions for the agent assisted voice and automated voice delivery modes are only available with answering machine detection enabled.</p>
3410    /// <p>Unit: Count</p>
3411    /// <p>Valid groupings and filters: Agent, Campaign</p>
3412    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#human-answered">Human answered</a></p>
3413    /// </dd>
3414    /// <dt>
3415    /// MAX_FLOW_TIME
3416    /// </dt>
3417    /// <dd>
3418    /// <p>Unit: Seconds</p>
3419    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
3420    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#maximum-flow-time">Maximum flow time</a></p>
3421    /// </dd>
3422    /// <dt>
3423    /// MAX_QUEUED_TIME
3424    /// </dt>
3425    /// <dd>
3426    /// <p>Unit: Seconds</p>
3427    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3428    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#maximum-queued-time">Maximum queued time</a></p>
3429    /// </dd>
3430    /// <dt>
3431    /// MIN_FLOW_TIME
3432    /// </dt>
3433    /// <dd>
3434    /// <p>Unit: Seconds</p>
3435    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
3436    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#minimum-flow-time">Minimum flow time</a></p>
3437    /// </dd>
3438    /// <dt>
3439    /// PERCENT_AUTOMATIC_FAILS
3440    /// </dt>
3441    /// <dd>
3442    /// <p>Unit: Percent</p>
3443    /// <p>Valid groupings and filters: Agent, Agent Hierarchy, Channel, Evaluation Form ID, Evaluation Source, Form Version, Queue, Routing Profile</p>
3444    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#automatic-fails-percent">Automatic fails percent</a></p>
3445    /// </dd>
3446    /// <dt>
3447    /// PERCENT_BOT_CONVERSATIONS_OUTCOME
3448    /// </dt>
3449    /// <dd>
3450    /// <p>Unit: Percent</p>
3451    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
3452    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#percent-bot-conversations-outcome">Percent bot conversations outcome</a></p>
3453    /// </dd>
3454    /// <dt>
3455    /// PERCENT_BOT_INTENTS_OUTCOME
3456    /// </dt>
3457    /// <dd>
3458    /// <p>Unit: Percent</p>
3459    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Bot ID, Bot alias, Bot version, Bot locale, Bot intent name, Flows resource ID, Flows module resource ID, Flow type, Flow action ID, Invoking resource published timestamp, Initiation method, Invoking resource type, Parent flows resource ID</p>
3460    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#percent-bot-intents-outcome">Percent bot intents outcome</a></p>
3461    /// </dd>
3462    /// <dt>
3463    /// PERCENT_CASES_FIRST_CONTACT_RESOLVED
3464    /// </dt>
3465    /// <dd>
3466    /// <p>Unit: Percent</p>
3467    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
3468    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
3469    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-resolved-on-first-contact">Cases resolved on first contact</a></p>
3470    /// </dd>
3471    /// <dt>
3472    /// PERCENT_CONTACTS_STEP_EXPIRED
3473    /// </dt>
3474    /// <dd>
3475    /// <p>Unit: Percent</p>
3476    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
3477    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
3478    /// </dd>
3479    /// <dt>
3480    /// PERCENT_CONTACTS_STEP_JOINED
3481    /// </dt>
3482    /// <dd>
3483    /// <p>Unit: Percent</p>
3484    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
3485    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
3486    /// </dd>
3487    /// <dt>
3488    /// PERCENT_FLOWS_OUTCOME
3489    /// </dt>
3490    /// <dd>
3491    /// <p>Unit: Percent</p>
3492    /// <p>Valid metric filter key: <code>FLOWS_OUTCOME_TYPE</code></p>
3493    /// <p>Valid groupings and filters: Channel, contact/segmentAttributes/connect:Subtype, Flow type, Flows module resource ID, Flows next resource ID, Flows next resource queue ID, Flows outcome type, Flows resource ID, Initiation method, Resource published timestamp</p>
3494    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#flows-outcome-percentage">Flows outcome percentage</a>.</p><note>
3495    /// <p>The <code>FLOWS_OUTCOME_TYPE</code> is not a valid grouping.</p>
3496    /// </note>
3497    /// </dd>
3498    /// <dt>
3499    /// PERCENT_NON_TALK_TIME
3500    /// </dt>
3501    /// <dd>
3502    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3503    /// <p>Unit: Percentage</p>
3504    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3505    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#non-talk-time-percent">Non-talk time percent</a></p>
3506    /// </dd>
3507    /// <dt>
3508    /// PERCENT_TALK_TIME
3509    /// </dt>
3510    /// <dd>
3511    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3512    /// <p>Unit: Percentage</p>
3513    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3514    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#talk-time-percent">Talk time percent</a></p>
3515    /// </dd>
3516    /// <dt>
3517    /// PERCENT_TALK_TIME_AGENT
3518    /// </dt>
3519    /// <dd>
3520    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3521    /// <p>Unit: Percentage</p>
3522    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3523    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-talk-time-percent">Agent talk time percent</a></p>
3524    /// </dd>
3525    /// <dt>
3526    /// PERCENT_TALK_TIME_CUSTOMER
3527    /// </dt>
3528    /// <dd>
3529    /// <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>
3530    /// <p>Unit: Percentage</p>
3531    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3532    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#customer-talk-time-percent">Customer talk time percent</a></p>
3533    /// </dd>
3534    /// <dt>
3535    /// RECIPIENTS_ATTEMPTED
3536    /// </dt>
3537    /// <dd>
3538    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
3539    /// <p>Unit: Count</p>
3540    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
3541    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-attempted">Recipients attempted</a></p>
3542    /// </dd>
3543    /// <dt>
3544    /// RECIPIENTS_INTERACTED
3545    /// </dt>
3546    /// <dd>
3547    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
3548    /// <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>
3549    /// <p>Unit: Count</p>
3550    /// <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype, Campaign Execution Timestamp</p>
3551    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-interacted">Recipients interacted</a></p>
3552    /// </dd>
3553    /// <dt>
3554    /// RECIPIENTS_TARGETED
3555    /// </dt>
3556    /// <dd>
3557    /// <p>This metric is only available for outbound campaigns initiated using a customer segment. It is not available for event triggered campaigns.</p>
3558    /// <p>Unit: Count</p>
3559    /// <p>Valid groupings and filters: Campaign, Campaign Execution Timestamp</p>
3560    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#recipients-targeted">Recipients targeted</a></p>
3561    /// </dd>
3562    /// <dt>
3563    /// REOPENED_CASE_ACTIONS
3564    /// </dt>
3565    /// <dd>
3566    /// <p>Unit: Count</p>
3567    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
3568    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
3569    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-reopened">Cases reopened</a></p>
3570    /// </dd>
3571    /// <dt>
3572    /// RESOLVED_CASE_ACTIONS
3573    /// </dt>
3574    /// <dd>
3575    /// <p>Unit: Count</p>
3576    /// <p>Required filter key: CASE_TEMPLATE_ARN</p>
3577    /// <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>
3578    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#cases-resolved">Cases resolved</a></p>
3579    /// </dd>
3580    /// <dt>
3581    /// SERVICE_LEVEL
3582    /// </dt>
3583    /// <dd>
3584    /// <p>You can include up to 20 SERVICE_LEVEL metrics in a request.</p>
3585    /// <p>Unit: Percent</p>
3586    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>
3587    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
3588    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#service-level">Service level X</a></p>
3589    /// </dd>
3590    /// <dt>
3591    /// STEP_CONTACTS_QUEUED
3592    /// </dt>
3593    /// <dd>
3594    /// <p>Unit: Count</p>
3595    /// <p>Valid groupings and filters: Queue, RoutingStepExpression</p>
3596    /// <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>
3597    /// </dd>
3598    /// <dt>
3599    /// SUM_AFTER_CONTACT_WORK_TIME
3600    /// </dt>
3601    /// <dd>
3602    /// <p>Unit: Seconds</p>
3603    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3604    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">After contact work time</a></p>
3605    /// </dd>
3606    /// <dt>
3607    /// SUM_CONNECTING_TIME_AGENT
3608    /// </dt>
3609    /// <dd>
3610    /// <p>Unit: Seconds</p>
3611    /// <p>Valid metric filter key: <code>INITIATION_METHOD</code>. This metric only supports the following filter keys as <code>INITIATION_METHOD</code>: <code>INBOUND</code> | <code>OUTBOUND</code> | <code>CALLBACK</code> | <code>API</code> | <code>CALLBACK_CUSTOMER_FIRST_DIALED</code></p>
3612    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
3613    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-api-connecting-time">Agent API connecting time</a></p><note>
3614    /// <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>
3615    /// </note>
3616    /// </dd>
3617    /// <dt>
3618    /// CONTACTS_ABANDONED
3619    /// </dt>
3620    /// <dd>
3621    /// <p>Unit: Count</p>
3622    /// <p>Metric filter:</p>
3623    /// <ul>
3624    /// <li>
3625    /// <p>Valid values: <code>API</code>| <code>INCOMING</code> | <code>OUTBOUND</code> | <code>TRANSFER</code> | <code>CALLBACK</code> | <code>QUEUE_TRANSFER</code>| <code>Disconnect</code> | <code>CALLBACK_CUSTOMER_FIRST_DIALED</code></p></li>
3626    /// </ul>
3627    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>
3628    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned">Contact abandoned</a></p>
3629    /// </dd>
3630    /// <dt>
3631    /// SUM_CONTACTS_ABANDONED_IN_X
3632    /// </dt>
3633    /// <dd>
3634    /// <p>Unit: Count</p>
3635    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3636    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
3637    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned-in-x-seconds">Contacts abandoned in X seconds</a></p>
3638    /// </dd>
3639    /// <dt>
3640    /// SUM_CONTACTS_ANSWERED_IN_X
3641    /// </dt>
3642    /// <dd>
3643    /// <p>Unit: Count</p>
3644    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3645    /// <p>Threshold: For <code>ThresholdValue</code>, enter any whole number from 1 to 604800 (inclusive), in seconds. For <code>Comparison</code>, you can use <code>LT</code> (for "Less than") or <code>LTE</code> (for "Less than equal").</p>
3646    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-answered-in-x-seconds">Contacts answered in X seconds</a></p>
3647    /// </dd>
3648    /// <dt>
3649    /// SUM_CONTACT_FLOW_TIME
3650    /// </dt>
3651    /// <dd>
3652    /// <p>Unit: Seconds</p>
3653    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3654    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-flow-time">Contact flow time</a></p>
3655    /// </dd>
3656    /// <dt>
3657    /// SUM_CONTACT_TIME_AGENT
3658    /// </dt>
3659    /// <dd>
3660    /// <p>Unit: Seconds</p>
3661    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
3662    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-on-contact-time">Agent on contact time</a></p>
3663    /// </dd>
3664    /// <dt>
3665    /// SUM_CONTACTS_DISCONNECTED
3666    /// </dt>
3667    /// <dd>
3668    /// <p>Valid metric filter key: <code>DISCONNECT_REASON</code></p>
3669    /// <p>Unit: Count</p>
3670    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3671    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-disconnected">Contact disconnected</a></p>
3672    /// </dd>
3673    /// <dt>
3674    /// SUM_ERROR_STATUS_TIME_AGENT
3675    /// </dt>
3676    /// <dd>
3677    /// <p>Unit: Seconds</p>
3678    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
3679    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#error-status-time">Error status time</a></p>
3680    /// </dd>
3681    /// <dt>
3682    /// SUM_HANDLE_TIME
3683    /// </dt>
3684    /// <dd>
3685    /// <p>Unit: Seconds</p>
3686    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3687    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contact-handle-time">Contact handle time</a></p>
3688    /// </dd>
3689    /// <dt>
3690    /// SUM_HOLD_TIME
3691    /// </dt>
3692    /// <dd>
3693    /// <p>Unit: Count</p>
3694    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3695    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#customer-hold-time">Customer hold time</a></p>
3696    /// </dd>
3697    /// <dt>
3698    /// SUM_IDLE_TIME_AGENT
3699    /// </dt>
3700    /// <dd>
3701    /// <p>Unit: Seconds</p>
3702    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
3703    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-idle-time">Agent idle time</a></p>
3704    /// </dd>
3705    /// <dt>
3706    /// SUM_INTERACTION_AND_HOLD_TIME
3707    /// </dt>
3708    /// <dd>
3709    /// <p>Unit: Seconds</p>
3710    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>
3711    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-interaction-and-hold-time">Agent interaction and hold time</a></p>
3712    /// </dd>
3713    /// <dt>
3714    /// SUM_INTERACTION_TIME
3715    /// </dt>
3716    /// <dd>
3717    /// <p>Unit: Seconds</p>
3718    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>
3719    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-interaction-time">Agent interaction time</a></p>
3720    /// </dd>
3721    /// <dt>
3722    /// SUM_NON_PRODUCTIVE_TIME_AGENT
3723    /// </dt>
3724    /// <dd>
3725    /// <p>Unit: Seconds</p>
3726    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
3727    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-productive-time">Agent non-productive time</a></p>
3728    /// </dd>
3729    /// <dt>
3730    /// SUM_ONLINE_TIME_AGENT
3731    /// </dt>
3732    /// <dd>
3733    /// <p>Unit: Seconds</p>
3734    /// <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>
3735    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#online-time">Online time</a></p>
3736    /// </dd>
3737    /// <dt>
3738    /// SUM_RETRY_CALLBACK_ATTEMPTS
3739    /// </dt>
3740    /// <dd>
3741    /// <p>Unit: Count</p>
3742    /// <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>
3743    /// <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#callback-attempts">Callback attempts</a></p>
3744    /// </dd>
3745    /// </dl>
3746    pub fn get_metrics(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::MetricV2>> {
3747        self.inner.get_metrics()
3748    }
3749    /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
3750    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
3751        self.inner = self.inner.next_token(input.into());
3752        self
3753    }
3754    /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
3755    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
3756        self.inner = self.inner.set_next_token(input);
3757        self
3758    }
3759    /// <p>The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.</p>
3760    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
3761        self.inner.get_next_token()
3762    }
3763    /// <p>The maximum number of results to return per page.</p>
3764    pub fn max_results(mut self, input: i32) -> Self {
3765        self.inner = self.inner.max_results(input);
3766        self
3767    }
3768    /// <p>The maximum number of results to return per page.</p>
3769    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
3770        self.inner = self.inner.set_max_results(input);
3771        self
3772    }
3773    /// <p>The maximum number of results to return per page.</p>
3774    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
3775        self.inner.get_max_results()
3776    }
3777}