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
12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 | |