get_contact_metrics
¶
get_contact_metrics(
instance_id: InstanceIdOrArn,
contact_id: InstanceIdOrArn,
metrics: ContactMetrics,
*,
config_overrides: Optional[ConnectClientConfig] = None,
) -> GetContactMetricsResponse
Retrieves contact metric data for a specified contact.
Use cases
Following are common use cases for position in queue and estimated wait time:
-
Customer-Facing Wait Time Announcements - Display or announce the estimated wait time and position in queue to customers before or during their queue experience.
-
Callback Offerings - Offer customers a callback option when the estimated wait time or position in queue exceeds a defined threshold.
-
Queue Routing Decisions - Route incoming contacts to less congested queues by comparing estimated wait time and position in queue across multiple queues.
-
Self-Service Deflection - Redirect customers to self-service options like chatbots or FAQs when estimated wait time is high or position in queue is unfavorable.
Important things to know
-
Metrics are only available while the contact is actively in queue.
-
For more information, see the Position in queue metric in the Connect Customer Administrator Guide.
Endpoints: See Connect Customer endpoints and quotas.
Parameters:
-
instance_id(InstanceIdOrArn) –The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
-
contact_id(InstanceIdOrArn) –The identifier of the contact in this instance of Connect Customer.
-
metrics(ContactMetrics) –A list of contact level metrics to retrieve.Supported metrics include POSITION_IN_QUEUE (the contact's current position in the queue) and ESTIMATED_WAIT_TIME (the predicted time in seconds until the contact is connected to an agent)
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
InternalServiceException–Request processing failed because of an error or failure with the service.
-
InvalidParameterException–One or more of the specified parameters are not valid.
-
InvalidRequestException–The request is not valid.
-
ResourceNotFoundException–The specified resource was not found.
-
ThrottlingException–The throttling limit has been exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_connect/_services/connect.py
12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 | |