

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 正在从中检索 Amazon SES 事件数据 CloudWatch
<a name="event-publishing-retrieving-cloudwatch"></a>

Amazon SES 可以发布您向亚马逊发送电子邮件事件的指标 CloudWatch。当您将事件数据发布到时 CloudWatch，它会将这些指标作为一组有序的时间序列数据提供。您可以使用这些指标来监控您的电子邮件发送的性能。例如，您可以监控投诉指标并设置 CloudWatch 警报，使其在指标超过特定值时触发。

Amazon SES 可以在两个级别上将这些事件发布到 CloudWatch：
+ **在您的 AWS 账户** — 这些粗略指标与您使用 Amazon SES 控制台和 `GetSendStatistics` API 监控的指标相对应，是您的整个指标的总和。 AWS 账户 Amazon SES CloudWatch 会自动将这些指标发布到。
+ **精细** – 这些指标将按您使用*邮件标记*定义的电子邮件特征分类。要将这些指标发布到 CloudWatch，您必须使用[事件目标设置 CloudWatch 事件发布](monitor-sending-using-event-publishing-setup.md)[，并在发送电子邮件时指定配置集](event-publishing-send-email.md)。您也可以指定邮件标记或使用 Amazon SES 自动提供的 [auto-tags](monitor-using-event-publishing.md#event-publishing-how-works)。

此部分介绍可用指标以及如何在 CloudWatch 中查看这些指标。

## 可用指标
<a name="event-publishing-retrieving-cloudwatch-metrics"></a>

您可以将以下 Amazon SES 电子邮件发送指标发布到 CloudWatch：
+ **Send**（发送）– 发送请求成功，Amazon SES 将尝试将邮件发送到收件人的邮件服务器。（如果使用账户级别或全局抑制，SES 仍会将其计为发送，但会抑制送达。）
+ **RenderingFailure**— 由于模板渲染问题，电子邮件未发送。当模板数据丢失或模板参数与数据不匹配时，可能会发生此事件类型。（此事件类型仅在您使用 [https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendTemplatedEmail.html) 或 [https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html](https://docs.aws.amazon.com/ses/latest/APIReference/API_SendBulkTemplatedEmail.html) API 操作发送电子邮件时发生。）
+ **Reject**（拒绝）– Amazon SES 已接受电子邮件，但确定它包含病毒，而未尝试将其发送到收件人的邮件服务器。
+ **Delivery**（送达）– Amazon SES 成功将电子邮件发送到收件人的邮件服务器。
+ **退信** – 收件人的邮件服务器永久拒绝了电子邮件的*硬退信*。（仅当 S *ES 不再尝试发送电子邮件时，才会包含软退件*。 通常，这些软退件表示投递失败，尽管在某些情况下，即使邮件成功到达收件人收件箱，也可以返回软退件。 这通常发生在收件人发送 out-of-office自动回复时。 在这篇 re [AWS : Post 文章](https://repost.aws/knowledge-center/ses-understand-soft-bounces)中了解有关软反弹的更多信息。）
+ **Complaint**（投诉）– 电子邮件已成功送达收件人的邮件服务器，但收件人将其标记为垃圾邮件。
+ **DeliveryDelay**— 由于出现临时问题，无法将电子邮件发送到收件人的邮件服务器。例如，当收件人的收件箱已满，或者当接收电子邮件服务器遇到临时问题时，可能会发生传送延迟。
+ **Subscription**（订阅）– 电子邮件已成功发送，但收件人通过单击电子邮件标头中的 `List-Unsubscribe` 或脚注中的 `Unsubscribe` 链接更新了订阅首选项。
+ **Open**（打开）– 收件人已收到邮件并在其电子邮件客户端中打开了邮件。
+ **Click**（单击）– 收件人单击了电子邮件中包含的一个或多个链接。

## 可用维度
<a name="event-publishing-retrieving-cloudwatch-dimensions"></a>

CloudWatch 使用您在向 Amazon SES 中的配置集添加 CloudWatch 事件目标时指定的维度名称。有关更多信息，请参阅 [为 CloudWatch 活动发布设置活动目的地](event-publishing-add-event-destination-cloudwatch.md)。

## 在 CloudWatch 控制台中查看 Amazon SES 指标
<a name="event-publishing-retrieving-cloudwatch-console"></a>

以下过程介绍如何使用 CloudWatch 控制台查看 Amazon SES 事件发布指标。

**使用 CloudWatch 控制台查看指标**

1. 登录 AWS 管理控制台 并打开 CloudWatch 控制台，网址为[https://console.aws.amazon.com/cloudwatch/](https://console.aws.amazon.com/cloudwatch/)。

1. 如果需要，可以更改区域。在导航栏中，选择您的 AWS 资源所在的区域。有关更多信息，请参阅[区域和端点](https://docs.aws.amazon.com/general/latest/gr/rande.html)。

1. 在导航窗格中，选择**所有指标**。

1. 在**指标**窗格中，选择 **SES**。

1. 选择要查看的指标。要查看精细[事件发布指标](monitor-using-event-publishing.md)，请选择在[设置 CloudWatch 事件目标](event-publishing-add-event-destination-cloudwatch.md)时指定的维度组合。要详细了解如何使用查看指标 CloudWatch，请参阅[使用 Amazon CloudWatch 指标](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/working_with_metrics.html)。

**要查看指标，请使用 AWS CLI**
+ 在命令提示符处输入下面的命令：

  ```
  1. aws cloudwatch list-metrics --namespace "AWS/SES"
  ```