aws_sdk_connect/client/get_metric_data.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetMetricData`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`instance_id(impl Into<String>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::instance_id) / [`set_instance_id(Option<String>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::set_instance_id):<br>required: **true**<br><p>The identifier of the Amazon Connect instance. You can <a href="https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html">find the instance ID</a> in the Amazon Resource Name (ARN) of the instance.</p><br>
8 /// - [`start_time(DateTime)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::start_time) / [`set_start_time(Option<DateTime>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::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 specified using a multiple of 5 minutes, such as 10:05, 10:10, 10:15.</p> <p>The start time cannot be earlier than 24 hours before the time of the request. Historical metrics are available only for 24 hours.</p><br>
9 /// - [`end_time(DateTime)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::end_time) / [`set_end_time(Option<DateTime>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::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 specified using an interval of 5 minutes, such as 11:00, 11:05, 11:10, and must be later than the start time timestamp.</p> <p>The time range between the start and end time must be less than 24 hours.</p><br>
10 /// - [`filters(Filters)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::filters) / [`set_filters(Option<Filters>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::set_filters):<br>required: **true**<br><p>The queues, up to 100, or channels, to use to filter the metrics returned. Metric data is retrieved only for the resources associated with the queues or channels included in the filter. You can include both queue IDs and queue ARNs in the same request. VOICE, CHAT, and TASK channels are supported.</p> <p>RoutingStepExpression is not a valid filter for GetMetricData and we recommend switching to GetMetricDataV2 for more up-to-date features.</p><note> <p>To filter by <code>Queues</code>, enter the queue ID/ARN, not the name of the queue.</p> </note><br>
11 /// - [`groupings(Grouping)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::groupings) / [`set_groupings(Option<Vec::<Grouping>>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::set_groupings):<br>required: **false**<br><p>The grouping applied to the metrics returned. For example, when results are grouped by queue, the metrics returned are grouped by queue. The values returned apply to the metrics for each queue rather than aggregated for all queues.</p> <p>If no grouping is specified, a summary of metrics for all queues is returned.</p> <p>RoutingStepExpression is not a valid filter for GetMetricData and we recommend switching to GetMetricDataV2 for more up-to-date features.</p><br>
12 /// - [`historical_metrics(HistoricalMetric)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::historical_metrics) / [`set_historical_metrics(Option<Vec::<HistoricalMetric>>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::set_historical_metrics):<br>required: **true**<br><p>The metrics to retrieve. Specify the name, unit, and statistic for each metric. The following historical metrics are available. For a description of each metric, see <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html">Metrics definition</a> in the <i>Amazon Connect Administrator Guide</i>.</p><note> <p>This API does not support a contacts incoming metric (there's no CONTACTS_INCOMING metric missing from the documented list).</p> </note> <dl> <dt> ABANDON_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-abandon-time">Average queue abandon time</a></p> </dd> <dt> AFTER_CONTACT_WORK_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#after-contact-work-time">After contact work time</a></p> </dd> <dt> API_CONTACTS_HANDLED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#api-contacts-handled">API contacts handled</a></p> </dd> <dt> AVG_HOLD_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-customer-hold-time">Average customer hold time</a></p> </dd> <dt> CALLBACK_CONTACTS_HANDLED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#callback-contacts-handled">Callback contacts handled</a></p> </dd> <dt> CONTACTS_ABANDONED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-abandoned">Contacts abandoned</a></p> </dd> <dt> CONTACTS_AGENT_HUNG_UP_FIRST </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-agent-hung-up-first">Contacts agent hung up first</a></p> </dd> <dt> CONTACTS_CONSULTED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-consulted">Contacts consulted</a></p> </dd> <dt> CONTACTS_HANDLED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled">Contacts handled</a></p> </dd> <dt> CONTACTS_HANDLED_INCOMING </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled-incoming">Contacts handled incoming</a></p> </dd> <dt> CONTACTS_HANDLED_OUTBOUND </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-handled-outbound">Contacts handled outbound</a></p> </dd> <dt> CONTACTS_HOLD_ABANDONS </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-hold-disconnect">Contacts hold disconnect</a></p> </dd> <dt> CONTACTS_MISSED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#agent-non-response">AGENT_NON_RESPONSE</a></p> </dd> <dt> CONTACTS_QUEUED </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-queued">Contacts queued</a></p> </dd> <dt> CONTACTS_TRANSFERRED_IN </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-in">Contacts transferred in</a></p> </dd> <dt> CONTACTS_TRANSFERRED_IN_FROM_QUEUE </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-queue">Contacts transferred out queue</a></p> </dd> <dt> CONTACTS_TRANSFERRED_OUT </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out">Contacts transferred out</a></p> </dd> <dt> CONTACTS_TRANSFERRED_OUT_FROM_QUEUE </dt> <dd> <p>Unit: COUNT</p> <p>Statistic: SUM</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#contacts-transferred-out-queue">Contacts transferred out queue</a></p> </dd> <dt> HANDLE_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-handle-time">Average handle time</a></p> </dd> <dt> INTERACTION_AND_HOLD_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-agent-interaction-and-customer-hold-time">Average agent interaction and customer hold time</a></p> </dd> <dt> INTERACTION_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#aaverage-agent-interaction-time">Average agent interaction time</a></p> </dd> <dt> OCCUPANCY </dt> <dd> <p>Unit: PERCENT</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#occupancy">Occupancy</a></p> </dd> <dt> QUEUE_ANSWER_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: AVG</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html##average-queue-answer-time">Average queue answer time</a></p> </dd> <dt> QUEUED_TIME </dt> <dd> <p>Unit: SECONDS</p> <p>Statistic: MAX</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#minimum-flow-time">Minimum flow time</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>Statistic: AVG</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>LT</code> (for "Less than").</p> <p>UI name: <a href="https://docs.aws.amazon.com/connect/latest/adminguide/metrics-definitions.html#average-queue-abandon-time">Average queue abandon time</a></p> </dd> </dl><br>
13 /// - [`next_token(impl Into<String>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::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>
14 /// - [`max_results(i32)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return per page.</p><br>
15 /// - On success, responds with [`GetMetricDataOutput`](crate::operation::get_metric_data::GetMetricDataOutput) with field(s):
16 /// - [`next_token(Option<String>)`](crate::operation::get_metric_data::GetMetricDataOutput::next_token): <p>If there are additional results, this is the token for the next set of results.</p> <p>The token expires after 5 minutes from the time it is created. Subsequent requests that use the token must use the same request parameters as the request that generated the token.</p>
17 /// - [`metric_results(Option<Vec::<HistoricalMetricResult>>)`](crate::operation::get_metric_data::GetMetricDataOutput::metric_results): <p>Information about the historical metrics.</p> <p>If no grouping is specified, a summary of metric data is returned.</p>
18 /// - On failure, responds with [`SdkError<GetMetricDataError>`](crate::operation::get_metric_data::GetMetricDataError)
19 pub fn get_metric_data(&self) -> crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder {
20 crate::operation::get_metric_data::builders::GetMetricDataFluentBuilder::new(self.handle.clone())
21 }
22}