本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
JSON用于状态更改事件
基于信道或多路复用状态变化的事件由其detail-type
属性标识:
-
MediaLive Channel State Change
对于一个频道
-
MediaLive Multiplex State Change
用于多路复用。
示例
以下是状态更改事件的JSON有效负载示例。注意detail-type
第 3 行。
{ "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 } }