

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

# 檢視 Neptune 事件
<a name="viewing-events"></a>

您可以檢視每個 Neptune 事件的下列資訊：
+ 資源名稱
+ Resource Type (資源類型)
+ 事件類別
+ 事件的時間
+ 描述事件的摘要訊息

您可以在 AWS 管理主控台的下列部分存取事件：
+ Neptune 主控台導覽窗格中**的事件**頁面，顯示過去 24 小時的事件。
+ 資料庫叢集或資料庫執行個體詳細資訊頁面上**日誌與事件**索引標籤中的**最近事件**資料表，可顯示過去 14 天內的事件。

您也可以使用 [describe-events](https://docs.aws.amazon.com/cli/latest/reference/neptune/describe-events.html) AWS CLI 命令或 [DescribeEvents](https://docs.aws.amazon.com/neptune/latest/apiref/API_DescribeEvents.html) API 操作來擷取事件。使用 AWS CLI 或 API，您可以擷取過去 14 天內的事件。

## 檢視事件 （主控台）
<a name="viewing-events-console"></a>

**在主控台中檢視 Neptune 事件**

1. 登入 AWS 管理主控台，並在 https：//[https://console.aws.amazon.com/neptune/home](https://console.aws.amazon.com/neptune/home) 開啟 Neptune 主控台。

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`、`--start-time`、 `--source-type`和 `--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}}
```

如需詳細資訊，請參閱《 AWS CLI 命令參考》中的 [describe-events](https://docs.aws.amazon.com/cli/latest/reference/neptune/describe-events.html)。若要以程式設計方式擷取事件，請參閱 Neptune API 參考中的 [DescribeEvents](https://docs.aws.amazon.com/neptune/latest/apiref/API_DescribeEvents.html)。