filters
Filtering is an operation that selects records that match a set of specified criteria. By narrowing the dataset before aggregation, filters ensure that only relevant records are included in the computation.
Filter keys
The following are valid filter keys for a GetMetricDataV2 request:
AGENT | AGENT_HIERARCHY_LEVEL_ONE | AGENT_HIERARCHY_LEVEL_TWO | AGENT_HIERARCHY_LEVEL_THREE | AGENT_HIERARCHY_LEVEL_FOUR | AGENT_HIERARCHY_LEVEL_FIVE | ANSWERING_MACHINE_DETECTION_STATUS | BOT_ALIAS | BOT_ID | BOT_INTENT_NAME | BOT_LOCALE | BOT_VERSION | CAMPAIGN | CAMPAIGN_DELIVERY_EVENT_TYPE | CAMPAIGN_EXCLUDED_EVENT_TYPE | CASE_STATUS | CASE_TEMPLATE_ARN | CHANNEL | contact/segmentAttributes/connect:Subtype | contact/segmentAttributes/connect:ValidationTestType | DISCONNECT_REASON | EVALUATION_FORM | EVALUATION_QUESTION | EVALUATION_SECTION | EVALUATION_SOURCE | EVALUATOR_ID | FEATURE | FLOW_ACTION_ID | FLOW_TYPE | FLOWS_MODULE_RESOURCE_ID | FLOWS_NEXT_RESOURCE_ID | FLOWS_NEXT_RESOURCE_QUEUE_ID | FLOWS_OUTCOME_TYPE | FLOWS_RESOURCE_ID | FORM_VERSION | INITIATING_FLOW | INITIATION_METHOD | INVOKING_RESOURCE_PUBLISHED_TIMESTAMP | INVOKING_RESOURCE_TYPE | PARENT_FLOWS_RESOURCE_ID | Q_CONNECT_ENABLED | QUEUE | RESOURCE_PUBLISHED_TIMESTAMP | ROUTING_PROFILE | ROUTING_STEP_EXPRESSION | TEST_CASE | TEST_CASE_EXECUTION_FAILURE_REASON | TEST_CASE_EXECUTION_RESULT | TEST_CASE_EXECUTION_STATE
The following filter keys correspond to Amazon Connect resources and are used for authorizing requests. A GetMetricDataV2 request requires at least one of these filters:
QUEUE, ROUTING_PROFILE, AGENT, AGENT_HIERARCHY_LEVEL_ONE, AGENT_HIERARCHY_LEVEL_TWO, AGENT_HIERARCHY_LEVEL_THREE, AGENT_HIERARCHY_LEVEL_FOUR, AGENT_HIERARCHY_LEVEL_FIVE, CAMPAIGN, EVALUATION_FORM, EVALUATOR_ID
You can use up to 5 filter keys in a single request, and up to 100 filter values across all filter keys.
Filter values
VOICE, CHAT, TASK, and EMAIL are valid filter values for the
CHANNELfilter key. They do not count towards the limit of 100 filter values. For example, aGetMetricDataV2request can filter by 50 queues, 35 agents, and 15 routing profiles for a total of 100 filter values, along with 4 channel filters.contact_lens_conversational_analyticsis a valid filter value for theFEATUREfilter key. It is available only for contacts analyzed by Contact Lens conversational analytics.connect:Chat,connect:SMS,connect:Telephony, andconnect:WebRTCare valid filter value examples (not exhaustive) for thecontact/segmentAttributes/connect:Subtypefilter key.ROUTING_STEP_EXPRESSIONaccepts a filter value up to 3,000 characters in length. This filter is case-sensitive and order-sensitive. JSON string fields must be sorted in ascending order, and JSON array order must be preserved.TRUE and FALSE are the only valid filter values for the
Q_CONNECT_ENABLEDfilter key.TRUE includes all contacts that had Connect AI Agents enabled as part of the flow.
FALSE includes all contacts that did not have Connect AI Agents enabled as part of the flow.
EXPERIENCE_VALIDATIONandFLOW_VALIDATIONare the only valid filter values for thecontact/segmentAttributes/connect:ValidationTestTypefilter key. This filter is available only for contact record-driven metrics.Campaign ARNs are valid filter values for the
CAMPAIGNfilter key.To filter by phone number, see Create a historical metrics report in the Amazon Connect Administrator Guide.