Class: Aws::Connect::Types::GetMetricDataV2Request

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-connect/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#end_timeTime

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.

Returns:

  • (Time)


8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#filtersArray<Types::FilterV2>

The filters to apply to returned metrics. You can filter on the following resources:

  • Queues

  • Routing profiles

  • Agents

  • Channels

  • User hierarchy groups

  • Feature

  • Routing step expression

At least one filter must be passed from queues, routing profiles, agents, or user hierarchy groups.

To filter by phone number, see [Create a historical metrics report] in the *Amazon Connect Administrator’s Guide*.

Note the following limits:

  • **Filter keys**: A maximum of 5 filter keys are supported in a single request. Valid filter keys: ‘QUEUE` | `ROUTING_PROFILE` | `AGENT` | `CHANNEL` | `AGENT_HIERARCHY_LEVEL_ONE` | `AGENT_HIERARCHY_LEVEL_TWO` | `AGENT_HIERARCHY_LEVEL_THREE` | `AGENT_HIERARCHY_LEVEL_FOUR` | `AGENT_HIERARCHY_LEVEL_FIVE` | `FEATURE` | `CASE_TEMPLATE_ARN` | `CASE_STATUS` | `contact/segmentAttributes/connect:Subtype` | `ROUTING_STEP_EXPRESSION`

  • **Filter values**: A maximum of 100 filter values are supported in a single request. VOICE, CHAT, and TASK are valid ‘filterValue` 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.

    ‘contact_lens_conversational_analytics` is a valid filterValue for the `FEATURE` filter key. It is available only to contacts analyzed by Contact Lens conversational analytics.

    ‘connect:Chat`, `connect:SMS`, `connect:Telephony`, and `connect:WebRTC` are valid `filterValue` examples (not exhaustive) for the `contact/segmentAttributes/connect:Subtype filter` key.

    ‘ROUTING_STEP_EXPRESSION` 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.

[1]: docs.aws.amazon.com/connect/latest/adminguide/create-historical-metrics-report.html

Returns:



8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#groupingsArray<String>

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.

If no grouping is specified, a summary of all metrics is returned.

Valid grouping keys: ‘QUEUE` | `ROUTING_PROFILE` | `AGENT` | `CHANNEL` | `AGENT_HIERARCHY_LEVEL_ONE` | `AGENT_HIERARCHY_LEVEL_TWO` | `AGENT_HIERARCHY_LEVEL_THREE` | `AGENT_HIERARCHY_LEVEL_FOUR` | `AGENT_HIERARCHY_LEVEL_FIVE` | `CASE_TEMPLATE_ARN` | `CASE_STATUS` | `contact/segmentAttributes/connect:Subtype` | `ROUTING_STEP_EXPRESSION`

Returns:

  • (Array<String>)


8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#intervalTypes::IntervalDetails

The interval period and timezone to apply to returned metrics.

  • ‘IntervalPeriod`: An aggregated grouping applied to request metrics. Valid `IntervalPeriod` values are: `FIFTEEN_MIN` | `THIRTY_MIN` | `HOUR` | `DAY` | `WEEK` | `TOTAL`.

    For example, if ‘IntervalPeriod` is selected `THIRTY_MIN`, `StartTime` and `EndTime` 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 `TOTAL` interval period.

    The following list describes restrictions on ‘StartTime` and `EndTime` based on which `IntervalPeriod` is requested.

    • ‘FIFTEEN_MIN`: The difference between `StartTime` and `EndTime` must be less than 3 days.

    • ‘THIRTY_MIN`: The difference between `StartTime` and `EndTime` must be less than 3 days.

    • ‘HOUR`: The difference between `StartTime` and `EndTime` must be less than 3 days.

    • ‘DAY`: The difference between `StartTime` and `EndTime` must be less than 35 days.

    • ‘WEEK`: The difference between `StartTime` and `EndTime` must be less than 35 days.

    • ‘TOTAL`: The difference between `StartTime` and `EndTime` must be less than 35 days.

  • ‘TimeZone`: The timezone applied to requested metrics.



8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#max_resultsInteger

The maximum number of results to return per page.

Returns:

  • (Integer)


8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#metricsArray<Types::MetricV2>

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 [Historical metrics definitions] in the *Amazon Connect Administrator’s Guide*.

ABANDONMENT_RATE

: Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Abandonment rate][2]

AGENT_ADHERENT_TIME

: This metric is available only in Amazon Web Services Regions where

[Forecasting, capacity planning, and scheduling][3] is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Adherent time][4]

AGENT_ANSWER_RATE

: Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Agent answer rate][5]

AGENT_NON_ADHERENT_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Non-adherent time][6]

AGENT_NON_RESPONSE

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Agent non-response][7]

AGENT_NON_RESPONSE_WITHOUT_CUSTOMER_ABANDONS

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

Data for this metric is available starting from October 1, 2023
0:00:00 GMT.

UI name: [Agent non-response without customer abandons][8]

AGENT_OCCUPANCY

: Unit: Percentage

Valid groupings and filters: Routing Profile, Agent, Agent
Hierarchy

UI name: [Occupancy][9]

AGENT_SCHEDULE_ADHERENCE

: This metric is available only in Amazon Web Services Regions where

[Forecasting, capacity planning, and scheduling][3] is available.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Adherence][10]

AGENT_SCHEDULED_TIME

: This metric is available only in Amazon Web Services Regions where

[Forecasting, capacity planning, and scheduling][3] is available.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Scheduled time][11]

AVG_ABANDON_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Average queue abandon time][12]

AVG_ACTIVE_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Average active time][13]

AVG_AFTER_CONTACT_WORK_TIME

: Unit: Seconds

Valid metric filter key: `INITIATION_METHOD`

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Average after contact work time][14]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_AGENT_CONNECTING_TIME

: Unit: Seconds

Valid metric filter key: `INITIATION_METHOD`. For now, this metric
only supports the following as `INITIATION_METHOD`: `INBOUND` \|
`OUTBOUND` \| `CALLBACK` \| `API`

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Average agent API connecting time][15]

<note markdown="1"> The `Negate` key in Metric Level Filters is not applicable for
this metric.

 </note>

AVG_AGENT_PAUSE_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Average agent pause time][16]

AVG_CASE_RELATED_CONTACTS

: Unit: Count

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Average contacts per case][17]

AVG_CASE_RESOLUTION_TIME

: Unit: Seconds

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Average case resolution time][18]

AVG_CONTACT_DURATION

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Average contact duration][19]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_CONVERSATION_DURATION

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Average conversation duration][20]

AVG_GREETING_TIME_AGENT

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average greeting time agent ][21]

AVG_HANDLE_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype, RoutingStepExpression

UI name: [Average handle time][22]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_HOLD_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Average customer hold time][23]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_HOLD_TIME_ALL_CONTACTS

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average customer hold time all contacts][24]

AVG_HOLDS

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Average holds][25]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_INTERACTION_AND_HOLD_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average agent interaction and customer hold time][26]

AVG_INTERACTION_TIME

: Unit: Seconds

Valid metric filter key: `INITIATION_METHOD`

Valid groupings and filters: Queue, Channel, Routing Profile,
Feature, contact/segmentAttributes/connect:Subtype

UI name: [Average agent interaction time][27]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_INTERRUPTIONS_AGENT

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average interruptions agent ][28]

AVG_INTERRUPTION_TIME_AGENT

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average interruption time agent][29]

AVG_NON_TALK_TIME

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average non-talk time][30]

AVG_QUEUE_ANSWER_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Feature, contact/segmentAttributes/connect:Subtype

UI name: [Average queue answer time][31]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

AVG_RESOLUTION_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
contact/segmentAttributes/connect:Subtype

UI name: [Average resolution time][32]

AVG_TALK_TIME

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average talk time][33]

AVG_TALK_TIME_AGENT

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average talk time agent][34]

AVG_TALK_TIME_CUSTOMER

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Average talk time customer][35]

CASES_CREATED

: Unit: Count

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Cases created][36]

CONTACTS_ABANDONED

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype,
RoutingStepExpression

UI name: [Contact abandoned][37]

CONTACTS_CREATED

: Unit: Count

Valid metric filter key: `INITIATION_METHOD`

Valid groupings and filters: Queue, Channel, Routing Profile,
Feature, contact/segmentAttributes/connect:Subtype

UI name: [Contacts created][38]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

CONTACTS_HANDLED

: Unit: Count

Valid metric filter key: `INITIATION_METHOD`, `DISCONNECT_REASON`

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype, RoutingStepExpression

UI name: [API contacts handled][39]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

CONTACTS_HANDLED_BY_CONNECTED_TO_AGENT

: Unit: Count

Valid metric filter key: `INITIATION_METHOD`

Valid groupings and filters: Queue, Channel, Agent, Agent
Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contacts handled by Connected to agent][40]

CONTACTS_HOLD_ABANDONS

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contacts hold disconnect][40]

CONTACTS_ON_HOLD_AGENT_DISCONNECT

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contacts hold agent disconnect][41]

CONTACTS_ON_HOLD_CUSTOMER_DISCONNECT

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contacts hold customer disconnect][42]

CONTACTS_PUT_ON_HOLD

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contacts put on hold][42]

CONTACTS_TRANSFERRED_OUT_EXTERNAL

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contacts transferred out external][43]

CONTACTS_TRANSFERRED_OUT_INTERNAL

: Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contacts transferred out internal][44]

CONTACTS_QUEUED

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contacts queued][45]

CONTACTS_QUEUED_BY_ENQUEUE

: Unit: Count

Valid groupings and filters: Queue, Channel, Agent, Agent
Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contacts queued by Enqueue][46]

CONTACTS_RESOLVED_IN_X

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
contact/segmentAttributes/connect:Subtype

Threshold: For `ThresholdValue` enter any whole number from 1 to
604800 (inclusive), in seconds. For `Comparison`, you must enter
`LT` (for "Less than").

UI name: [Contacts resolved in X][47]

CONTACTS_TRANSFERRED_OUT

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, Feature,
contact/segmentAttributes/connect:Subtype

UI name: [Contacts transferred out][48]

<note markdown="1"> Feature is a valid filter but not a valid grouping.

 </note>

CONTACTS_TRANSFERRED_OUT_BY_AGENT

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contacts transferred out by agent][49]

CONTACTS_TRANSFERRED_OUT_FROM_QUEUE

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contacts transferred out queue][49]

CURRENT_CASES

: Unit: Count

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Current cases][50]

MAX_QUEUED_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Maximum queued time][51]

PERCENT_CASES_FIRST_CONTACT_RESOLVED

: Unit: Percent

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Cases resolved on first contact][52]

PERCENT_CONTACTS_STEP_EXPIRED

: Unit: Percent

Valid groupings and filters: Queue, RoutingStepExpression

UI name: Not available

PERCENT_CONTACTS_STEP_JOINED

: Unit: Percent

Valid groupings and filters: Queue, RoutingStepExpression

UI name: Not available

PERCENT_NON_TALK_TIME

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Non-talk time percent][53]

PERCENT_TALK_TIME

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Talk time percent][54]

PERCENT_TALK_TIME_AGENT

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Talk time agent percent][55]

PERCENT_TALK_TIME_CUSTOMER

: This metric is available only for contacts analyzed by Contact

Lens conversational analytics.

Unit: Percentage

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Talk time customer percent][56]

REOPENED_CASE_ACTIONS

: Unit: Count

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Cases reopened][57]

RESOLVED_CASE_ACTIONS

: Unit: Count

Required filter key: CASE\_TEMPLATE\_ARN

Valid groupings and filters: CASE\_TEMPLATE\_ARN, CASE\_STATUS

UI name: [Cases resolved][58]

SERVICE_LEVEL

: You can include up to 20 SERVICE_LEVEL metrics in a request.

Unit: Percent

Valid groupings and filters: Queue, Channel, Routing Profile

Threshold: For `ThresholdValue`, enter any whole number from 1 to
604800 (inclusive), in seconds. For `Comparison`, you must enter
`LT` (for "Less than").

UI name: [Service level X][59]

STEP_CONTACTS_QUEUED

: Unit: Count

Valid groupings and filters: Queue, RoutingStepExpression

UI name: Not available

SUM_AFTER_CONTACT_WORK_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [After contact work time][60]

SUM_CONNECTING_TIME_AGENT

: Unit: Seconds

Valid metric filter key: `INITIATION_METHOD`. This metric only
supports the following filter keys as `INITIATION_METHOD`:
`INBOUND` \| `OUTBOUND` \| `CALLBACK` \| `API`

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Agent API connecting time][61]

<note markdown="1"> The `Negate` key in Metric Level Filters is not applicable for
this metric.

 </note>

SUM_CONTACT_FLOW_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contact flow time][62]

SUM_CONTACT_TIME_AGENT

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Agent on contact time][63]

SUM_CONTACTS_ANSWERED_IN_X

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
contact/segmentAttributes/connect:Subtype

Threshold: For `ThresholdValue`, enter any whole number from 1 to
604800 (inclusive), in seconds. For `Comparison`, you must enter
`LT` (for "Less than").

UI name: [Contacts answered in X seconds][64]

SUM_CONTACTS_ABANDONED_IN_X

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
contact/segmentAttributes/connect:Subtype

Threshold: For `ThresholdValue`, enter any whole number from 1 to
604800 (inclusive), in seconds. For `Comparison`, you must enter
`LT` (for "Less than").

UI name: [Contacts abandoned in X seconds][65]

SUM_CONTACTS_DISCONNECTED

: Valid metric filter key: ‘DISCONNECT_REASON`

Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy, contact/segmentAttributes/connect:Subtype

UI name: [Contact disconnected][66]

SUM_ERROR_STATUS_TIME_AGENT

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Error status time][67]

SUM_HANDLE_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Contact handle time][68]

SUM_HOLD_TIME

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Customer hold time][69]

SUM_IDLE_TIME_AGENT

: Unit: Seconds

Valid groupings and filters: Routing Profile, Agent, Agent
Hierarchy

UI name: [Agent idle time][70]

SUM_INTERACTION_AND_HOLD_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Agent interaction and hold time][71]

SUM_INTERACTION_TIME

: Unit: Seconds

Valid groupings and filters: Queue, Channel, Routing Profile,
Agent, Agent Hierarchy

UI name: [Agent interaction time][72]

SUM_NON_PRODUCTIVE_TIME_AGENT

: Unit: Seconds

Valid groupings and filters: Routing Profile, Agent, Agent
Hierarchy

UI name: [Non-Productive Time][73]

SUM_ONLINE_TIME_AGENT

: Unit: Seconds

Valid groupings and filters: Routing Profile, Agent, Agent
Hierarchy

UI name: [Online time][74]

SUM_RETRY_CALLBACK_ATTEMPTS

: Unit: Count

Valid groupings and filters: Queue, Channel, Routing Profile,
contact/segmentAttributes/connect:Subtype

UI name: [Callback attempts][75]

[1]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html [2]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#abandonment-rate-historical [3]: docs.aws.amazon.com/connect/latest/adminguide/regions.html#optimization_region [4]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#adherent-time-historical [5]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-answer-rate-historical [6]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#non-adherent-time [7]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-non-response [8]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-nonresponse-no-abandon-historical [9]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#occupancy-historical [10]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#adherence-historical [11]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#scheduled-time-historical [12]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-queue-abandon-time-historical [13]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-active-time-historical [14]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-acw-time-historical [15]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#htm-avg-agent-api-connecting-time [16]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-agent-pause-time-historical [17]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-contacts-case-historical [18]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-case-resolution-time-historical [19]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-contact-duration-historical [20]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-conversation-duration-historical [21]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-greeting-time-agent-historical [22]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-handle-time-historical [23]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-customer-hold-time-historical [24]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#avg-customer-hold-time-all-contacts-historical [25]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-holds-historical [26]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-agent-interaction-customer-hold-time-historical [27]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-agent-interaction-time-historical [28]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-interruptions-agent-historical [29]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-interruptions-time-agent-historical [30]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html##average-non-talk-time-historical [31]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-queue-answer-time-historical [32]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-resolution-time-historical [33]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-talk-time-historical [34]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-talk-time-agent-historical [35]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#average-talk-time-customer-historical [36]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html##cases-created-historical [37]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-abandoned-historical [38]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-created-historical [39]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#api-contacts-handled-historical [40]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-handled-by-connected-to-agent-historical [41]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-hold-agent-disconnect-historical [42]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-hold-customer-disconnect-historical [43]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-transferred-out-external-historical [44]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-transferred-out-internal-historical [45]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-queued-historical [46]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-queued-by-enqueue-historical [47]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-resolved-historical [48]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-transferred-out-historical [49]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-transferred-out-by-agent-historical [50]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#current-cases-historical [51]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#maximum-queued-time-historical [52]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-resolved-first-contact-historical [53]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ntt-historical [54]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#tt-historical [55]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttagent-historical [56]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#ttcustomer-historical [57]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-reopened-historical [58]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#cases-resolved-historicall [59]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#service-level-historical [60]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#acw-historical [61]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#htm-agent-api-connecting-time [62]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contact-flow-time-historical [63]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-on-contact-time-historical [64]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-answered-x-historical [65]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contacts-abandoned-x-historical [66]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contact-disconnected-historical [67]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#error-status-time-historical [68]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#contact-handle-time-historical [69]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#customer-hold-time-historical [70]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-idle-time-historica [71]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-interaction-hold-time-historical [72]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#agent-interaction-time-historical [73]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#npt-historical [74]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#online-time-historical [75]: docs.aws.amazon.com/connect/latest/adminguide/historical-metrics-definitions.html#callback-attempts-historical

Returns:



8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#next_tokenString

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.

Returns:

  • (String)


8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#resource_arnString

The Amazon Resource Name (ARN) of the resource. This includes the ‘instanceId` an Amazon Connect instance.

Returns:

  • (String)


8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end

#start_timeTime

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 ‘IntervalPeriod` selected. By default the time range between start and end time is 35 days. Historical metrics are available for 3 months.

Returns:

  • (Time)


8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
# File 'lib/aws-sdk-connect/types.rb', line 8949

class GetMetricDataV2Request < Struct.new(
  :resource_arn,
  :start_time,
  :end_time,
  :interval,
  :filters,
  :groupings,
  :metrics,
  :next_token,
  :max_results)
  SENSITIVE = []
  include Aws::Structure
end