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
gefragt vor einem Jahr275 Aufrufe
3 Antworten
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
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen