

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

# 查看 Neptune 事件
<a name="viewing-events"></a>

您可以查看每个 Neptune 事件的以下信息：
+ 资源名称
+ 资源类型
+ 事件类别
+ 事件的时间
+ 描述事件的摘要消息

您可以在 AWS 管理控制台的以下部分访问事件：
+ **Neptune 控制台导航窗格中的 “事件” 页面，显示过去 24 小时的事件。**
+ 数据库集群或数据库实例详细信息页面上的 “**日志和事件**” 选项卡中的 “**最近**事件” 表，可以显示最多 14 天的事件。

您也可以使用 desc [ribe-events AWS CLI 命令或 API 操作来检索事件](https://docs.aws.amazon.com/cli/latest/reference/neptune/describe-events.html)。[DescribeEvents](https://docs.aws.amazon.com/neptune/latest/apiref/API_DescribeEvents.html)使用 AWS CLI 或 API，您最多可以检索过去 14 天的事件。

## 查看事件（控制台）
<a name="viewing-events-console"></a>

**在控制台中查看 Neptune 事件**

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

1. 在导航窗格中，选择 **Events（事件）**。

   该页面显示过去 24 小时的事件。您可以按源类型和事件类别筛选事件。

## 查看事件 (AWS CLI)
<a name="viewing-events-cli"></a>

要查看过去一小时内生成的所有 Neptune 事件，请在不`describe-events`使用任何参数的情况下运行：

```
aws neptune describe-events
```

要查看过去 7 天（10,080 分钟）的事件，请使用以下`--duration`参数：

```
aws neptune describe-events --duration 10080
```

要查看某个时间范围内特定数据库集群的事件，请使用`--source-identifier``--source-type`、`--start-time`、和`--end-time`参数：

```
aws neptune describe-events \
    --source-identifier {{my-cluster}} \
    --source-type db-cluster \
    --start-time {{2026-04-01T00:00Z}} \
    --end-time {{2026-04-01T23:59Z}}
```

有关更多信息，请参阅《命令参考》中的 [describe-ev](https://docs.aws.amazon.com/cli/latest/reference/neptune/describe-events.html) ents AWS CLI 。要以编程方式检索事件，请参阅 Neptune API 参考[DescribeEvents](https://docs.aws.amazon.com/neptune/latest/apiref/API_DescribeEvents.html)中的。