

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

# 監控 的帳戶特定和公有事件 AWS Health
<a name="about-public-events"></a>

當您建立 EventBridge 規則來監控事件時 AWS Health，規則會同時提供帳戶特定的事件和公有事件：
+ *帳戶特定*事件會影響您的帳戶和資源，例如 事件，告訴您 Amazon EC2 執行個體或其他排程變更事件的必要更新。
+ *公*有事件會出現在[AWS Health 儀表板 – 服務運作狀態](https://status.aws.amazon.com/)。公有事件並非專屬於 AWS 帳戶 ，並提供有關服務區域可用性的公有資訊。

**重要**  
若要接收這兩種事件類型，您的規則必須使用 `"source": [ "aws.health"]`值。萬用字元，例如 `"source": [ "aws.health*"]`不符合要監控任何事件的模式。

您可以使用 eventScopeCode 參數，在 EventBridge 中識別事件為公有或帳戶特定。事件可以有 `PUBLIC`或 `ACCOUNT_SPECIFIC`。您也可以在此參數上篩選規則。

**範例：Amazon Elastic Compute Cloud 的公有事件**

下列事件顯示美國東部 （維吉尼亞北部） 區域中 Amazon EC2 的操作問題。

```
{
    "version": "0",
    "id": "fd9d4512-1eb0-50f6-0491-d016ae56aef0",
    "detail-type": "AWS Health Event",
    "source": "aws.health",
    "account": "123456789012",
    "time": "2023-02-15T10:07:10Z",
    "region": "us-east-1",
    "resources": [],
    "detail": {
        "eventArn": "arn:aws:health:us-east-1::event/EC2/AWS_EC2_OPERATIONAL_ISSUE",
        "service": "EC2",
        "eventTypeCode": "AWS_EC2_OPERATIONAL_ISSUE",
        "eventTypeCategory": "issue",
        "eventScopeCode": "PUBLIC",
        "communicationId": "01b0993207d81a09dcd552ebd1e633e36cf1f09a-1",
        "startTime": "Wed, 15 Feb 2023 22:07:07 GMT",
        "lastUpdatedTime": "Wed, 15 Feb 2023 22:07:07 GMT",
        "statusCode": "open",
        "eventRegion": "us-east-1",
        "eventDescription": [{
            "latestDescription": "We are investigating increased API Error rates and Latencies for Amazon Elastic Compute Cloud in the US-EAST-1 Region.",
            "language": "en_US"
        }],
        "page": "1",
        "totalPages": "1",
        "affectedAccount": "123456789012"

    }
}
```

## AWS Health 事件的備份規則
<a name="about-public-events-backup-rules"></a>

如果您是從 監控公有事件 AWS 區域，建議您建立備份規則。在受影響的區域中設定有效的規則時， 的公有事件 AWS Health 會同時傳送至受影響的區域和備份區域。

AWS Health 無論受影響區域中設定的任何規則為何， 都會將帳戶特定事件傳送至受影響的區域和備份區域。

我們建議您使用 `eventARN`和 刪除重複 AWS Health 事件，`communicationId`因為這些值對於傳送至備份區域 AWS Health 的訊息，會保持一致。