

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

# 狀態變更事件的 JSON
<a name="monitoring-cloudwatch-json-state-change"></a>

根據[頻道或多工](monitor-activity-types-channel.md)中狀態變更的事件會由其`detail-type`屬性識別：
+ `MediaLive Channel State Change` 頻道的
+ `MediaLive Multiplex State Change` 適用於多工。

**範例**

以下是狀態變更事件的 JSON 承載範例。請注意第 3 行`detail-type`中的 。

```
{
    "version": "0",
    "id": "fbcbbbe3-2541-d4a3-d819-x39f522a8ce",
    "detail-type": "MediaLive Channel State Change",
    "source": "aws.medialive",
    "account": "111122223333",
    "time": "2023-03-08T18:40:59Z",
    "region": "us-west-2",
    "resources": [
        "arn:aws:medialive:us-west-2:111122223333:channel:283886"
    ],
    "detail": {
        "channel_arn": "arn:aws:medialive:us-west-2:111122223333:channel:123456",
        "state": "DELETED",
        "message": "Deleted channel",
        "pipelines_running_count": 0
    }
}
```