# What this PR does Add OnCall prometheus metrics exporter ## Which issue(s) this PR fixes ## Checklist - [x] Tests updated - [ ] Documentation added - [ ] `CHANGELOG.md` updated --------- Co-authored-by: Joey Orlando <joey.orlando@grafana.com> Co-authored-by: Matias Bordese <mbordese@gmail.com>
23 lines
351 B
Python
23 lines
351 B
Python
from enum import Enum
|
|
|
|
|
|
class ActionSource:
|
|
(
|
|
SLACK,
|
|
WEB,
|
|
PHONE,
|
|
TELEGRAM,
|
|
) = range(4)
|
|
|
|
|
|
TASK_DELAY_SECONDS = 1
|
|
|
|
NEXT_ESCALATION_DELAY = 5
|
|
|
|
|
|
# AlertGroup states verbal
|
|
class AlertGroupState(str, Enum):
|
|
FIRING = "firing"
|
|
ACKNOWLEDGED = "acknowledged"
|
|
RESOLVED = "resolved"
|
|
SILENCED = "silenced"
|