aws_sdk_connect/client/
get_metric_data_v2.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetMetricDataV2`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder) operation.
    /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::into_paginator).
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_arn(impl Into<String>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::resource_arn) / [`set_resource_arn(Option<String>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_resource_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the resource. This includes the <code>instanceId</code> an Amazon Connect instance.</p><br>
    ///   - [`start_time(DateTime)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::start_time) / [`set_start_time(Option<DateTime>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_start_time):<br>required: **true**<br><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><br>
    ///   - [`end_time(DateTime)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::end_time) / [`set_end_time(Option<DateTime>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_end_time):<br>required: **true**<br><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><br>
    ///   - [`interval(IntervalDetails)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::interval) / [`set_interval(Option<IntervalDetails>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_interval):<br>required: **false**<br><p>The interval period and timezone to apply to returned metrics.</p> <ul>  <li>   <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>   <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>   <p>The following list describes restrictions on <code>StartTime</code> and <code>EndTime</code> based on which <code>IntervalPeriod</code> is requested.</p>   <ul>    <li>     <p><code>FIFTEEN_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>    <li>     <p><code>THIRTY_MIN</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>    <li>     <p><code>HOUR</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 3 days.</p></li>    <li>     <p><code>DAY</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>    <li>     <p><code>WEEK</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>    <li>     <p><code>TOTAL</code>: The difference between <code>StartTime</code> and <code>EndTime</code> must be less than 35 days.</p></li>   </ul></li>  <li>   <p><code>TimeZone</code>: The timezone applied to requested metrics.</p></li> </ul><br>
    ///   - [`filters(FilterV2)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::filters) / [`set_filters(Option<Vec::<FilterV2>>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_filters):<br>required: **true**<br><p>The filters to apply to returned metrics. You can filter on the following resources:</p> <ul>  <li>   <p>Agents</p></li>  <li>   <p>Campaigns</p></li>  <li>   <p>Channels</p></li>  <li>   <p>Feature</p></li>  <li>   <p>Queues</p></li>  <li>   <p>Routing profiles</p></li>  <li>   <p>Routing step expression</p></li>  <li>   <p>User hierarchy groups</p></li> </ul> <p>At least one filter must be passed from queues, routing profiles, agents, or user hierarchy groups.</p> <p>For metrics for outbound campaigns analytics, you can also use campaigns to satisfy at least one filter requirement.</p> <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> <p>Note the following limits:</p> <ul>  <li>   <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>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>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>  <li>   <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>   <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>   <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>   <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>   <p><code>Q_CONNECT_ENABLED</code>. TRUE and FALSE are the only valid filterValues for the <code>Q_CONNECT_ENABLED</code> filter key.</p>   <ul>    <li>     <p>TRUE includes all contacts that had Amazon Q in Connect enabled as part of the flow.</p></li>    <li>     <p>FALSE includes all contacts that did not have Amazon Q in Connect enabled as part of the flow</p></li>   </ul>   <p>This filter is available only for contact record-driven metrics.</p>   <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> </ul><br>
    ///   - [`groupings(impl Into<String>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::groupings) / [`set_groupings(Option<Vec::<String>>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_groupings):<br>required: **false**<br><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> <p>If no grouping is specified, a summary of all metrics is returned.</p> <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>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>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><br>
    ///   - [`metrics(MetricV2)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::metrics) / [`set_metrics(Option<Vec::<MetricV2>>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_metrics):<br>required: **true**<br><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> <dl>  <dt>   ABANDONMENT_RATE  </dt>  <dd>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#abandonment-rate-historical">Abandonment rate</a></p>  </dd>  <dt>   AGENT_ADHERENT_TIME  </dt>  <dd>   <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>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#adherent-time-historical">Adherent time</a></p>  </dd>  <dt>   AGENT_ANSWER_RATE  </dt>  <dd>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   AGENT_NON_ADHERENT_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   AGENT_NON_RESPONSE  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <p>Data for this metric is available starting from October 1, 2023 0:00:00 GMT.</p>   <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>  </dd>  <dt>   AGENT_OCCUPANCY  </dt>  <dd>   <p>Unit: Percentage</p>   <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#occupancy-historical">Occupancy</a></p>  </dd>  <dt>   AGENT_SCHEDULE_ADHERENCE  </dt>  <dd>   <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>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#adherence-historical">Adherence</a></p>  </dd>  <dt>   AGENT_SCHEDULED_TIME  </dt>  <dd>   <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>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#scheduled-time-historical">Scheduled time</a></p>  </dd>  <dt>   AVG_ABANDON_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_ACTIVE_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   AVG_AFTER_CONTACT_WORK_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_AGENT_CONNECTING_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <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>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <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>    <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>   </note>  </dd>  <dt>   AVG_AGENT_PAUSE_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   AVG_BOT_CONVERSATION_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <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>   <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>  </dd>  <dt>   AVG_BOT_CONVERSATION_TURNS  </dt>  <dd>   <p>Unit: Count</p>   <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>   <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>  </dd>  <dt>   AVG_CASE_RELATED_CONTACTS  </dt>  <dd>   <p>Unit: Count</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <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>  </dd>  <dt>   AVG_CASE_RESOLUTION_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <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>  </dd>  <dt>   AVG_CONTACT_DURATION  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_CONVERSATION_DURATION  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_DIALS_PER_MINUTE  </dt>  <dd>   <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>   <p>Unit: Count</p>   <p>Valid groupings and filters: Agent, Campaign, Queue, Routing Profile</p>   <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>  </dd>  <dt>   AVG_FLOW_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <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>   <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>  </dd>  <dt>   AVG_GREETING_TIME_AGENT  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_HANDLE_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_HOLD_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_HOLD_TIME_ALL_CONTACTS  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_HOLDS  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_INTERACTION_AND_HOLD_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_INTERACTION_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_INTERRUPTIONS_AGENT  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_INTERRUPTION_TIME_AGENT  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_NON_TALK_TIME  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_QUEUE_ANSWER_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   AVG_RESOLUTION_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_TALK_TIME  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_TALK_TIME_AGENT  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_TALK_TIME_CUSTOMER  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   AVG_WAIT_TIME_AFTER_CUSTOMER_CONNECTION  </dt>  <dd>   <p>This metric is available only for outbound campaigns that use the agent assisted voice and automated voice delivery modes.</p>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Campaign</p>   <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>  </dd>  <dt>   BOT_CONVERSATIONS_COMPLETED  </dt>  <dd>   <p>Unit: Count</p>   <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>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/bot-metrics.html#bot-conversations-completed-metric">Bot conversations</a></p>  </dd>  <dt>   BOT_INTENTS_COMPLETED  </dt>  <dd>   <p>Unit: Count</p>   <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>   <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>  </dd>  <dt>   CAMPAIGN_CONTACTS_ABANDONED_AFTER_X  </dt>  <dd>   <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>   <p>Unit: Count</p>   <p>Valid groupings and filters: Agent, Campaign</p>   <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>   <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>  </dd>  <dt>   CAMPAIGN_CONTACTS_ABANDONED_AFTER_X_RATE  </dt>  <dd>   <p>This metric is available only for outbound campaigns using the agent assisted voice and automated voice delivery modes.</p>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Agent, Campaign</p>   <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>   <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>  </dd>  <dt>   CAMPAIGN_INTERACTIONS  </dt>  <dd>   <p>This metric is available only for outbound campaigns using the email delivery mode.</p>   <p>Unit: Count</p>   <p>Valid metric filter key: CAMPAIGN_INTERACTION_EVENT_TYPE</p>   <p>Valid groupings and filters: Campaign</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#campaign-interactions-historical">Campaign interactions</a></p>  </dd>  <dt>   CAMPAIGN_SEND_ATTEMPTS  </dt>  <dd>   <p>This metric is available only for outbound campaigns.</p>   <p>Unit: Count</p>   <p>Valid groupings and filters: Campaign, Channel, contact/segmentAttributes/connect:Subtype</p>   <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>  </dd>  <dt>   CASES_CREATED  </dt>  <dd>   <p>Unit: Count</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-created-historical">Cases created</a></p>  </dd>  <dt>   CONTACTS_CREATED  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   CONTACTS_HANDLED  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid metric filter key: <code>INITIATION_METHOD</code>, <code>DISCONNECT_REASON</code></p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid metric filter key: <code>INITIATION_METHOD</code></p>   <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_HOLD_ABANDONS  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_ON_HOLD_AGENT_DISCONNECT  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_PUT_ON_HOLD  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_TRANSFERRED_OUT_EXTERNAL  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_TRANSFERRED_OUT_INTERNAL  </dt>  <dd>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_QUEUED  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-queued-historical">Contacts queued</a></p>  </dd>  <dt>   CONTACTS_QUEUED_BY_ENQUEUE  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype</p>   <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>  </dd>  <dt>   CONTACTS_REMOVED_FROM_QUEUE_IN_X  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>   <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>   <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>  </dd>  <dt>   CONTACTS_RESOLVED_IN_X  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>   <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>  </dd>  <dt>   CONTACTS_TRANSFERRED_OUT  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Feature, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>    <p>Feature is a valid filter but not a valid grouping.</p>   </note>  </dd>  <dt>   CONTACTS_TRANSFERRED_OUT_BY_AGENT  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   CONTACTS_TRANSFERRED_OUT_FROM_QUEUE  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   CURRENT_CASES  </dt>  <dd>   <p>Unit: Count</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#current-cases-historical">Current cases</a></p>  </dd>  <dt>   DELIVERY_ATTEMPTS  </dt>  <dd>   <p>This metric is available only for outbound campaigns.</p>   <p>Unit: Count</p>   <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>   <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>   <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>    <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>   </note>  </dd>  <dt>   DELIVERY_ATTEMPT_DISPOSITION_RATE  </dt>  <dd>   <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>   <p>Unit: Percent</p>   <p>Valid metric filter key: <code>ANSWERING_MACHINE_DETECTION_STATUS</code>, <code>CAMPAIGN_DELIVERY_EVENT_TYPE</code>, <code>DISCONNECT_REASON</code></p>   <p>Valid groupings and filters: Agent, Answering Machine Detection Status, Campaign, Channel, contact/segmentAttributes/connect:Subtype, Disconnect Reason, Queue, Routing Profile</p>   <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>    <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>   </note>  </dd>  <dt>   FLOWS_OUTCOME  </dt>  <dd>   <p>Unit: Count</p>   <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>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#flows-outcome-historical">Flows outcome</a></p>  </dd>  <dt>   FLOWS_STARTED  </dt>  <dd>   <p>Unit: Count</p>   <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>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#flows-started-historical">Flows started</a></p>  </dd>  <dt>   HUMAN_ANSWERED_CALLS  </dt>  <dd>   <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>   <p>Unit: Count</p>   <p>Valid groupings and filters: Agent, Campaign</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#human-answered-historical">Human answered</a></p>  </dd>  <dt>   MAX_FLOW_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <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>   <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>  </dd>  <dt>   MAX_QUEUED_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   MIN_FLOW_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <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>   <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>  </dd>  <dt>   PERCENT_BOT_CONVERSATIONS_OUTCOME  </dt>  <dd>   <p>Unit: Percent</p>   <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>   <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>  </dd>  <dt>   PERCENT_BOT_INTENTS_OUTCOME  </dt>  <dd>   <p>Unit: Percent</p>   <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>   <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>  </dd>  <dt>   PERCENT_CASES_FIRST_CONTACT_RESOLVED  </dt>  <dd>   <p>Unit: Percent</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <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>  </dd>  <dt>   PERCENT_CONTACTS_STEP_EXPIRED  </dt>  <dd>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, RoutingStepExpression</p>   <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>  </dd>  <dt>   PERCENT_CONTACTS_STEP_JOINED  </dt>  <dd>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, RoutingStepExpression</p>   <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>  </dd>  <dt>   PERCENT_FLOWS_OUTCOME  </dt>  <dd>   <p>Unit: Percent</p>   <p>Valid metric filter key: <code>FLOWS_OUTCOME_TYPE</code></p>   <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>   <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>    <p>The <code>FLOWS_OUTCOME_TYPE</code> is not a valid grouping.</p>   </note>  </dd>  <dt>   PERCENT_NON_TALK_TIME  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Percentage</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   PERCENT_TALK_TIME  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Percentage</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#tt-historical">Talk time percent</a></p>  </dd>  <dt>   PERCENT_TALK_TIME_AGENT  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Percentage</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   PERCENT_TALK_TIME_CUSTOMER  </dt>  <dd>   <p>This metric is available only for contacts analyzed by Contact Lens conversational analytics.</p>   <p>Unit: Percentage</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>  </dd>  <dt>   REOPENED_CASE_ACTIONS  </dt>  <dd>   <p>Unit: Count</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-reopened-historical">Cases reopened</a></p>  </dd>  <dt>   RESOLVED_CASE_ACTIONS  </dt>  <dd>   <p>Unit: Count</p>   <p>Required filter key: CASE_TEMPLATE_ARN</p>   <p>Valid groupings and filters: CASE_TEMPLATE_ARN, CASE_STATUS</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-resolved-historical">Cases resolved</a></p>  </dd>  <dt>   SERVICE_LEVEL  </dt>  <dd>   <p>You can include up to 20 SERVICE_LEVEL metrics in a request.</p>   <p>Unit: Percent</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Q in Connect</p>   <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>   <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>  </dd>  <dt>   STEP_CONTACTS_QUEUED  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, RoutingStepExpression</p>   <p>UI name: This metric is available in Real-time Metrics UI but not on the Historical Metrics UI.</p>  </dd>  <dt>   SUM_AFTER_CONTACT_WORK_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   SUM_CONNECTING_TIME_AGENT  </dt>  <dd>   <p>Unit: Seconds</p>   <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>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <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>    <p>The <code>Negate</code> key in metric-level filters is not applicable for this metric.</p>   </note>  </dd>  <dt>   CONTACTS_ABANDONED  </dt>  <dd>   <p>Unit: Count</p>   <p>Metric filter:</p>   <ul>    <li>     <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>   </ul>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, RoutingStepExpression, Q in Connect</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-abandoned-historical">Contact abandoned</a></p>  </dd>  <dt>   SUM_CONTACTS_ABANDONED_IN_X  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>   <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>  </dd>  <dt>   SUM_CONTACTS_ANSWERED_IN_X  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <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>   <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>  </dd>  <dt>   SUM_CONTACT_FLOW_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   SUM_CONTACT_TIME_AGENT  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   SUM_CONTACTS_DISCONNECTED  </dt>  <dd>   <p>Valid metric filter key: <code>DISCONNECT_REASON</code></p>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contact-disconnected-historical">Contact disconnected</a></p>  </dd>  <dt>   SUM_ERROR_STATUS_TIME_AGENT  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   SUM_HANDLE_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   SUM_HOLD_TIME  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   SUM_IDLE_TIME_AGENT  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   SUM_INTERACTION_AND_HOLD_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy, Q in Connect</p>   <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>  </dd>  <dt>   SUM_INTERACTION_TIME  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, Agent, Agent Hierarchy</p>   <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>  </dd>  <dt>   SUM_NON_PRODUCTIVE_TIME_AGENT  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#npt-historical">Non-Productive Time</a></p>  </dd>  <dt>   SUM_ONLINE_TIME_AGENT  </dt>  <dd>   <p>Unit: Seconds</p>   <p>Valid groupings and filters: Routing Profile, Agent, Agent Hierarchy</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#online-time-historical">Online time</a></p>  </dd>  <dt>   SUM_RETRY_CALLBACK_ATTEMPTS  </dt>  <dd>   <p>Unit: Count</p>   <p>Valid groupings and filters: Queue, Channel, Routing Profile, contact/segmentAttributes/connect:Subtype, Q in Connect</p>   <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#callback-attempts-historical">Callback attempts</a></p>  </dd> </dl><br>
    ///   - [`next_token(impl Into<String>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_next_token):<br>required: **false**<br><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><br>
    ///   - [`max_results(i32)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
    /// - On success, responds with [`GetMetricDataV2Output`](crate::operation::get_metric_data_v2::GetMetricDataV2Output) with field(s):
    ///   - [`next_token(Option<String>)`](crate::operation::get_metric_data_v2::GetMetricDataV2Output::next_token): <p>If there are additional results, this is the token for the next set of results.</p>
    ///   - [`metric_results(Option<Vec::<MetricResultV2>>)`](crate::operation::get_metric_data_v2::GetMetricDataV2Output::metric_results): <p>Information about the metrics requested in the API request If no grouping is specified, a summary of metric data is returned.</p>
    /// - On failure, responds with [`SdkError<GetMetricDataV2Error>`](crate::operation::get_metric_data_v2::GetMetricDataV2Error)
    pub fn get_metric_data_v2(&self) -> crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder {
        crate::operation::get_metric_data_v2::builders::GetMetricDataV2FluentBuilder::new(self.handle.clone())
    }
}