

# AnalyticsUtteranceMetric
<a name="API_AnalyticsUtteranceMetric"></a>

Contains the metric and the summary statistic you want to calculate, and the order in which to sort the results, for the utterances across the user sessions with the bot.

## Contents
<a name="API_AnalyticsUtteranceMetric_Contents"></a>

 ** name **   <a name="lexv2-Type-AnalyticsUtteranceMetric-name"></a>
The metric for which you want to get utterance summary statistics.  
+  `Count` – The number of utterances.
+  `Missed` – The number of utterances that Amazon Lex failed to recognize.
+  `Detected` – The number of utterances that Amazon Lex managed to detect.
+  `UtteranceTimestamp` – The date and time of the utterance.
Type: String  
Valid Values: `Count | Missed | Detected | UtteranceTimestamp`   
Required: Yes

 ** statistic **   <a name="lexv2-Type-AnalyticsUtteranceMetric-statistic"></a>
The summary statistic to calculate.  
+  `Sum` – The total count for the category you provide in `name`.
+  `Average` – The total count divided by the number of utterances in the category you provide in `name`.
+  `Max` – The highest count in the category you provide in `name`.
Type: String  
Valid Values: `Sum | Avg | Max`   
Required: Yes

 ** order **   <a name="lexv2-Type-AnalyticsUtteranceMetric-order"></a>
Specifies whether to sort the results in ascending or descending order.  
Type: String  
Valid Values: `Ascending | Descending`   
Required: No

## See Also
<a name="API_AnalyticsUtteranceMetric_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/models.lex.v2-2020-08-07/AnalyticsUtteranceMetric) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/models.lex.v2-2020-08-07/AnalyticsUtteranceMetric) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/models.lex.v2-2020-08-07/AnalyticsUtteranceMetric) 