

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 使用 Amazon CloudWatch 測量操作指標
<a name="monitoring-cloudwatch"></a>

您可以使用 CloudWatch 監控 Amazon Lex V2，這會收集原始資料並將其處理為可讀且近乎即時的指標。這些統計資料會保留 15 個月，以便您存取歷史資訊，並更清楚 Web 應用程式或服務的執行效能。您也可以設定留意特定閾值的警示，當滿足這些閾值時傳送通知或採取動作。如需詳細資訊，請參閱 [Amazon CloudWatch 使用者指南](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/)。

Amazon Lex V2 服務會在 `AWS/Lex` 命名空間中報告下列指標。


| 指標 | Description | 
| --- | --- | 
| `AssistedSlotResolutionModelAccessDeniedErrorCount` | Amazon Lex V2 拒絕存取 Amazon Bedrock 的次數<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />的有效維度`RecognizeText`：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `AssistedSlotResolutionModelInvocationCount` | 叫用 Amazon Bedrock 的次數。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />的有效維度`RecognizeText`：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `AssistedSlotResolutionModelSystemErrorCount` | 呼叫 Amazon Bedrock 時 5xx 發生的次數。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />的有效維度`RecognizeText`：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `AssistedSlotResolutionModelThrottlingErrorCount` | Amazon Bedrock 調節 Amazon Lex 的次數。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />的有效維度`RecognizeText`：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `AssistedSlotResolutionResolvedSlotCount` | Amazon Bedrock 傳回槽值的次數。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />的有效維度`RecognizeText`：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `KendraIndexAccessError` | Amazon Lex V2 無法存取 Amazon Kendra 索引的次數。[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `KendraLatency` | Amazon Kendra 回應來自 的請求所需的時間量`AMAZON.KendraSearchIntent`。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：毫秒 | 
| `KendraSuccess` | Amazon Lex V2 無法存取 Amazon Kendra 索引的次數。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `KendraSystemErrors` | Amazon Lex V2 無法查詢 Amazon Kendra 索引的次數。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `KendraThrottledEvents` | Amazon Kendra 調節來自 請求的次數`AMAZON.KendraSearchIntent`。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeConcurrency` | 指定期間內並行連線的數量。 `RuntimeConcurrency` 會以 的形式報告`StatisticSet`。<br />`RecognizeUtterance` 或 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeInvalidLambdaResponses` | 指定期間內無效的 AWS Lambda 回應數目。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeLambdaErrors` | 指定期間內的 Lambda 執行時間錯誤數目。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimePollyErrors` | 指定期間內無效的 Amazon Polly 回應數目。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeRequestCount` | 指定期間內的執行時間請求數目。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeRequestLength` | 與 Amazon Lex V2 機器人對話的總長度。僅適用於 [StartConversation](https://docs.aws.amazon.com/lexv2/latest/APIReference/API_runtime_StartConversation.html) 操作。<br />有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：毫秒 | 
| `RuntimeSucessfulRequestLatency` 此指標是 `RuntimeSucessfulRequestLatency`，而不是 `RuntimeSuccessfulRequestLatency`。  | 從提出請求到傳回回應之間的成功請求延遲。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：毫秒 | 
| `RuntimeSystemErrors` | 指定期間內的系統錯誤數量。系統錯誤的回應碼範圍是 500 到 599。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeThrottledEvents` | 限流事件的數量。當 Amazon Lex V2 收到超過您帳戶每秒交易限制的請求時，會調節事件。如果經常超過為您的帳戶所設的限制，您可以請求提高上限。若要請求提高，請參閱 [AWS 服務限制](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html)。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 
| `RuntimeUserErrors` | 指定期間內的使用者錯誤數量。使用者錯誤的回應碼範圍是 400 到 499。<br />`RecognizeUtterance` 和 `StartConversation`操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />其他操作的有效維度：[See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/lexv2/latest/dg/monitoring-cloudwatch.html)<br />單位：計數 | 

Amazon Lex V2 指標支援下列維度。


|  維度  |  Description  | 
| --- | --- | 
|  Operation  | 產生項目的 Amazon Lex V2 操作名稱 – `RecognizeText`、`RecognizeUtterance`、`StartConversation``GetSession`、`PutSession`、`DeleteSession`、。 | 
|  BotId  | 機器人的英數字元唯一識別符。 | 
|  BotAliasId  | 機器人別名的英數唯一識別符。 | 
|  BotVersion  | 機器人的數值版本。 | 
|  InputMode  | 機器人的輸入類型 – 語音、文字或 DTMF。 | 
|  LocaleId  | 機器人地區設定的識別符，例如 en-US 或 fr-CA。 | 
|  Model  | 指出 Amazon Bedrock 大型語言模型的模型 ID。 | 
|  ModelType  | 指出從 Amazon Bedrock 調用的大型語言模型類型。 | 