

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

# 使用 Amazon CloudWatch 監控 AWS 最終使用者傳訊社交
<a name="monitoring-cloudwatch"></a>

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

對於 AWS 最終使用者傳訊社交，請考慮監控 `MetaTemplateMessageFeeCount`和 `WhatsAppMessageFeeCount`指標，並在達到支出閾值時觸發警示。

**注意**  
您必須先[建立服務連結角色](using-service-linked-roles.md#create-slr)，才能使用 CloudWatch 指標。

下表列出 AWS 最終使用者傳訊社交匯出到`AWS/SocialMessaging`命名空間的指標和維度。


| 指標 | 單位 | 說明 | 
| --- | --- | --- | 
| WhatsAppMessageFeeCount | 計數 | WhatsApp 訊息費用的計數 | 
| MetaTemplateMessageFeeCount | 計數 | 中繼範本訊息費用的計數 | 


| 維度 | 說明 | 
| --- | --- | 
| MessageFeeType | 有效費用類型為 Authentication， Authentication\_ International， Inbound， Marketing， Service，Standard， Utility | 
| DestinationCountryCode | 國家/地區的兩個字母 ISO 代碼 | 
| WhatsAppPhoneNumberArn | 電話號碼的年份 | 
| MetaTemplateMessageFeeType | 有效費用類型為一般、Free\_customer\_service、Free\_entry\_point | 
| MetaTemplateMessageFeeCategory | 有效費用類別包括服務、行銷、公用程式、身分驗證、Authentication\_inter international | 