# What this PR does Adds method to update alert group state by backsync Related to https://github.com/grafana/oncall-private/issues/2542 Should be merged with https://github.com/grafana/oncall-private/pull/2606 ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] Added the relevant release notes label (see labels prefixed w/ `release:`). These labels dictate how your PR will show up in the autogenerated release notes.
25 lines
470 B
Python
25 lines
470 B
Python
from enum import Enum
|
|
|
|
from django.db.models import IntegerChoices
|
|
|
|
|
|
class ActionSource(IntegerChoices):
|
|
SLACK = 0, "Slack"
|
|
WEB = 1, "Web"
|
|
PHONE = 2, "Phone"
|
|
TELEGRAM = 3, "Telegram"
|
|
API = 4, "API"
|
|
BACKSYNC = 5, "Backsync"
|
|
|
|
|
|
TASK_DELAY_SECONDS = 1
|
|
|
|
NEXT_ESCALATION_DELAY = 5
|
|
|
|
|
|
# AlertGroup states verbal
|
|
class AlertGroupState(str, Enum):
|
|
FIRING = "firing"
|
|
ACKNOWLEDGED = "acknowledged"
|
|
RESOLVED = "resolved"
|
|
SILENCED = "silenced"
|