API to get all channel alerts or alerts for a specific channel?

0

Is there a way to get channel alerts with the MediaLive SDK instead of having to subscribe to an SQS queue?

Mike
asked a year ago266 views
3 Answers
0

Hi Mike, MediaLive delivers alerts via EventBridge (aka CloudWatch Events). There are multiple methods to process incoming events, see the user guide for EventBridge at https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule.html

The structure of the events emitted by MediaLive includes the channel ARN so you can use that to filter for high-priority channels.

Regards, Steve

AWS
Steve_W
answered a year ago
0

We don't want to run a service that processes and stores events in realtime. Is there a way to include alerts in the listChannels or describeChannel API calls?

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/MediaLive.html#describeChannel-property https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/MediaLive.html#listChannels-property

Mike
answered a year ago
0

Hi Mike,

It isn't currently possible to expose channel alerts in the way you describe. There is a metric exposed via Cloudwatch called ActiveAlerts which indicates the number of alerts during the sample period, but it does not have a way to display what the alerts in question are. An option might be to combine monitoring ActiveAlerts metric with an EventBridge rule that simply directs all channel alerts to a CloudWatch log stream.

Regards, Steve

AWS
Steve_W
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions