AlertManager

class aaa_modules.alert_manager.AlertManager[source]

Process an alert. The current implementation will send out an email. If the alert is at critical level, a TTS message will also be sent to all audio sinks.

static processAlert(alert)[source]

Processes the provided alert. If the alert’s level is WARNING or CRITICAL, the TTS subject will be played on the ChromeCasts.

Parameters:alert (Alert) – the alert to be processed
Returns:True if alert was processed; False otherwise.
Raise:ValueError if alert is None
static reset()[source]

Reset the internal states of this class.