Values_1.GetMetricDataResponseSourceGets historical metric data from the specified Amazon Connect instance. For a description of each historical metric, see Metrics definitions in the Amazon Connect Administrator Guide. We recommend using the GetMetricDataV2 API. It provides more flexibility, features, and the ability to query longer time ranges than GetMetricData. Use it to retrieve historical agent and contact metrics for the last 3 months, at varying intervals. You can also use it to build custom dashboards to measure historical queue and agent performance. For example, you can track the number of incoming contacts for the last 7 days, with data split by day, to see how contact volume changed per day of the week.
type nonrec t = {nextToken : NextToken.t option;If there are additional results, this is the token for 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.
*)metricResults : HistoricalMetricResults.t option;Information about the historical metrics. If no grouping is specified, a summary of metric data is returned.
*)}type nonrec error = [ | `InternalServiceException of Values_0.InternalServiceException.t| `InvalidParameterException of Values_0.InvalidParameterException.t| `InvalidRequestException of Values_0.InvalidRequestException.t| `ResourceNotFoundException of Values_0.ResourceNotFoundException.t| `ThrottlingException of Values_0.ThrottlingException.t| `Unknown_operation_error of string * string option ]val error_of_json :
string ->
Yojson.Safe.t ->
[> `InternalServiceException of Values_0.InternalServiceException.t
| `InvalidParameterException of Values_0.InvalidParameterException.t
| `InvalidRequestException of Values_0.InvalidRequestException.t
| `ResourceNotFoundException of Values_0.ResourceNotFoundException.t
| `ThrottlingException of Values_0.ThrottlingException.t
| `Unknown_operation_error of string * string option ]val error_of_xml :
string ->
Awso.Xml.t ->
[> `InternalServiceException of Values_0.InternalServiceException.t
| `InvalidParameterException of Values_0.InvalidParameterException.t
| `InvalidRequestException of Values_0.InvalidRequestException.t
| `ResourceNotFoundException of Values_0.ResourceNotFoundException.t
| `ThrottlingException of Values_0.ThrottlingException.t
| `Unknown_operation_error of string * string option ]val to_value :
t ->
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `List of
[> `Structure of
(string
* [> `Double of Value.t
| `Structure of
(string
* [> `Enum of string
| `Structure of
(string
* [> `Double of ThresholdValue.t
| `Enum of string ])
list ])
list ])
list ]
list
| `Structure of
(string
* [> `Enum of string
| `String of RoutingExpression.t
| `Structure of
(string * [> `String of string ]) list ])
list ])
list ]
list
| `String of NextToken.t ])
list ]