AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the GetCurrentMetricData operation. Gets the real-time metric data from the specified Amazon Connect instance.
For a description of each metric, see Metrics definitions in the Amazon Connect Administrator Guide.
When you make a successful API request, you can expect the following metric values in the response:
Metric value is null: The calculation cannot be performed due to divide by zero or insufficient data
Metric value is a number (including 0) of defined type: The number provided is the calculation result
MetricResult list is empty: The request cannot find any data in the system
The following guidelines can help you work with the API:
Each dimension in the metric response must contain a value
Each item in MetricResult must include all requested metrics
If the response is slow due to large result sets, try these approaches:
Add filters to reduce the amount of data returned
Namespace: Amazon.Connect.Model
Assembly: AWSSDK.Connect.dll
Version: 3.x.y.z
public class GetCurrentMetricDataRequest : AmazonConnectRequest IAmazonWebServiceRequest
The GetCurrentMetricDataRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
GetCurrentMetricDataRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
CurrentMetrics | System.Collections.Generic.List<Amazon.Connect.Model.CurrentMetric> |
Gets and sets the property CurrentMetrics. The metrics to retrieve. Specify the name and unit for each metric. The following metrics are available. For a description of all the metrics, see Metrics definitions in the Amazon Connect Administrator Guide.
|
![]() |
Filters | Amazon.Connect.Model.Filters |
Gets and sets the property Filters. The filters to apply to returned metrics. You can filter up to the following limits:
Metric data is retrieved only for the resources associated with the queues or routing profiles, and by any channels included in the filter. (You cannot filter by both queue AND routing profile.) You can include both resource IDs and resource ARNs in the same request.
When using
When using the Currently tagging is only supported on the resources that are passed in the filter. |
![]() |
Groupings | System.Collections.Generic.List<System.String> |
Gets and sets the property Groupings.
Defines the level of aggregation for metrics data by a dimension(s). Its similar to
sorting items into buckets based on a common characteristic, then counting or calculating
something for each bucket. For example, when grouped by The grouping list is an ordered list, with the first item in the list defined as the primary grouping. If no grouping is included in the request, the aggregation happens at the instance-level.
|
![]() |
InstanceId | System.String |
Gets and sets the property InstanceId. The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance. |
![]() |
MaxResults | System.Int32 |
Gets and sets the property MaxResults. The maximum number of results to return per page. |
![]() |
NextToken | System.String |
Gets and sets the property NextToken. 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. 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. |
![]() |
SortCriteria | System.Collections.Generic.List<Amazon.Connect.Model.CurrentMetricSortCriteria> |
Gets and sets the property SortCriteria.
The way to sort the resulting response based on metrics. You can enter one sort criteria.
By default resources are sorted based on Note the following:
|
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5