2019-12-04 02:58:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
class BaseAlert:
|
|
|
|
name = None
|
|
|
|
|
2019-12-04 18:36:14 +00:00
|
|
|
def create_from_env(self):
|
|
|
|
return None
|
2019-12-04 02:58:27 +00:00
|
|
|
|
2019-12-04 18:36:14 +00:00
|
|
|
@property
|
|
|
|
def properly_configured(self) -> bool:
|
|
|
|
return False
|
2019-12-04 02:58:27 +00:00
|
|
|
|
2019-12-04 18:36:14 +00:00
|
|
|
def send(self, subject: str = None, body: str = None, alert_type: str = None):
|
2019-12-04 02:58:27 +00:00
|
|
|
pass
|