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