7a2f9a95c7
- worker: change Adapter._construct to receive an extra arg - worker: hardcode a bad result and write it off on workloop fail
18 lines
305 B
Python
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'
|