2023-05-25 20:26:13 +02:00
|
|
|
from enum import Enum
|
|
|
|
|
|
2023-10-05 09:46:48 +01:00
|
|
|
from django.db.models import IntegerChoices
|
2023-05-25 20:26:13 +02:00
|
|
|
|
2023-10-05 09:46:48 +01:00
|
|
|
|
|
|
|
|
class ActionSource(IntegerChoices):
|
|
|
|
|
SLACK = 0, "Slack"
|
|
|
|
|
WEB = 1, "Web"
|
|
|
|
|
PHONE = 2, "Phone"
|
|
|
|
|
TELEGRAM = 3, "Telegram"
|
|
|
|
|
API = 4, "API"
|
2024-03-27 13:37:01 +01:00
|
|
|
BACKSYNC = 5, "Backsync"
|
2022-06-03 08:09:47 -06:00
|
|
|
|
|
|
|
|
|
|
|
|
|
TASK_DELAY_SECONDS = 1
|
|
|
|
|
|
|
|
|
|
NEXT_ESCALATION_DELAY = 5
|
2023-05-25 20:26:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# AlertGroup states verbal
|
|
|
|
|
class AlertGroupState(str, Enum):
|
|
|
|
|
FIRING = "firing"
|
|
|
|
|
ACKNOWLEDGED = "acknowledged"
|
|
|
|
|
RESOLVED = "resolved"
|
|
|
|
|
SILENCED = "silenced"
|