elstat/elstat/consts.py
Luna Mendes 7a2f9a95c7 add alerts
- worker: change Adapter._construct to receive an extra arg
 - worker: hardcode a bad result and write it off on workloop fail
2018-08-30 22:22:02 -03:00

18 lines
305 B
Python

from .adapters import HttpAdapter, PingAdapter
from .alerts import DiscordAlert
ADAPTERS = {
'http': HttpAdapter,
'ping': PingAdapter,
}
ALERTS = {
'discord': DiscordAlert
}
class IncidentType:
OUTAGE = 'outage'
PARTIAL_OUTAGE = 'partial_outage'
DEGRADED = 'degraded_service'