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
demandé il y a un an275 vues
3 réponses
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
répondu il y a un an
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
répondu il y a un an
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions