

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

# Amazon OpenSearch Service 中的通知
<a name="managedomains-notifications"></a>

Amazon OpenSearch Service 中的通知包含有關網域效能和運作狀態的重要資訊。OpenSearch Service 會通知您有關服務軟體更新、自動調整增強功能、叢集運作狀態事件和網域錯誤的資訊。通知適用於所有 OpenSearch 和 Elasticsearch OSS 版本。

您可以在 OpenSearch Service 主控台的 **Notifications** (通知) 面板中檢視通知。OpenSearch Service 的所有通知也會顯示在 [Amazon EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-what-is.html) 中。如需通知與範例事件的完整清單，請參閱[使用 Amazon EventBridge 監控 OpenSearch Service 事件](monitoring-events.md)。

## 開始使用通知
<a name="managedomains-notifications-start"></a>

當您建立網域時，系統會自動啟用通知。前往 OpenSearch Service 主控台的**通知**面板，以監控並確認通知。每個通知都包含一些資訊，例如發佈時間、其相關網域、嚴重性和狀態等級以及簡短說明。您可以在主控台中檢視最多 90 天的歷史通知。

在存取 **Notifications** (通知) 面板或確認通知後，您可能會收到錯誤訊息，指出沒有執行 `es:ListNotificationsV2` 或 `es:UpdateNotificationStatus` 的許可。若要解決此問題，請在 IAM 中為您的使用者或角色提供下列許可：

------
#### [ JSON ]

****  

```
{
  "Version":"2012-10-17",		 	 	 
  "Statement": [{
    "Effect": "Allow",
    "Action": [
      "es:DescribeDomain",
      "es:ListDomainNames"
    ],
    "Resource": "arn:aws:es:*:{{111122223333}}:domain/*"
  }]
}
```

------

IAM 主控台會擲回可安全忽略的錯誤 (「IAM 無法辨識一或多個動作」)。您也可以將 `es:UpdateNotificationStatus` 動作限定於特定網域。如需詳細資訊，請參閱 [政策元素參考](ac.md#ac-reference)。

## 通知嚴重性
<a name="managedomains-notifications-severities"></a>

OpenSearch Service 中的通知可能是 *informational*，這與您已經採取的任何動作或您的網域操作有關，也可能是 *actionable*，這會要求您採取特定動作，例如套用強制安全性修補程式。每個通知都有相關聯的嚴重性，可能是 `Informational`、`Low`、`Medium`、`High` 或 `Critical`。下表提供各級嚴重性的摘要：


| 嚴重性 | Description | 範例 | 
| --- | --- | --- | 
| Informational | 與您的網域操作相關的資訊。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| Low | 建議的動作，但如果未採取任何動作，則不會對網域可用性或效能造成不利影響。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| Medium | 如果沒有採取建議的動作，但所採取的動作需要一段較長的時間，則可能會產生影響。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| High | 必須採取緊急動作，以避免不利影響。 |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/zh_tw/opensearch-service/latest/developerguide/managedomains-notifications.html)  | 
| Critical | 需要立即採取動作，以避免不利影響或從中恢復。 | 目前無可用 | 

## EventBridge 事件範例
<a name="managedomains-notifications-cloudwatch"></a>

下列範例顯示傳送至 Amazon EventBridge 的 OpenSearch Service 通知事件。通知具有 `Informational` 嚴重性，因為更新是可選的：

```
{
  "version": "0",
  "id": "01234567-0123-0123-0123-012345678901",
  "detail-type": "Amazon OpenSearch Service Software Update Notification",
  "source": "aws.es",
  "account": "123456789012",
  "time": "2016-11-01T13:12:22Z",
  "region": "us-east-1",
  "resources": ["arn:aws:es:us-east-1:123456789012:domain/test-domain"],
  "detail": {
    "event": "Service Software Update",
    "status": "Available",
    "severity": "Informational",
    "description": "Service software update [R20200330-p1] available."
  }
}
```