Module Values_1.GetMetricDataResponseSource

Gets 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.

Sourcetype nonrec t = {
  1. 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.

    *)
  2. metricResults : HistoricalMetricResults.t option;
    (*

    Information about the historical metrics. If no grouping is specified, a summary of metric data is returned.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalServiceException of Values_0.InternalServiceException.t
  2. | `InvalidParameterException of Values_0.InvalidParameterException.t
  3. | `InvalidRequestException of Values_0.InvalidRequestException.t
  4. | `ResourceNotFoundException of Values_0.ResourceNotFoundException.t
  5. | `ThrottlingException of Values_0.ThrottlingException.t
  6. | `Unknown_operation_error of string * string option
]
Sourceval make : ?nextToken:??? -> ?metricResults:??? -> unit -> t
Sourceval 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 ]
Sourceval 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 ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval 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 ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t