

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

# 适用于警报事件的 JSON
<a name="monitoring-cloudwatch-json-alert"></a>

基于[警报](monitor-activity-types-alerts-channels.md)的事件由其 `detail-type` 属性标识：
+ `MediaLive Channel Alert` 适用于通道。
+ `MediaLive Multiplex Alert` 适用于多路复用。

**示例**

以下是警报事件的 JSON 有效载荷示例。注意第 3 行中的 `detail-type`。

```
{
    "version": "0",
    "id": "154769fb-9f7c-32a1-6822-26fppppe5a58",
    "detail-type": "MediaLive Channel Alert",
    "source": "aws.medialive",
    "account": "111122223333",
    "time": "2023-03-08T18:14:25Z",
    "region": "us-west-2",
    "resources": [
        "arn:aws:medialive:us-west-2:111122223333:channel:123456"
    ],
    "detail": {
        "alarm_state": "CLEARED",
        "alarm_id": "7ad616bd389832yue90aab1324bffab5b834a",
        "alert_type": "Failed to Create Output File or Socket",
        "pipeline": "0",
        "channel_arn": "arn:aws:medialive:us-west-2:111122223333:channel:123456",
        "message": "MPEGTS muxer for mediaID [1] unable to open output or stream [https://{{<path>}}]."
    }
}
```