Add SNS format
This commit is contained in:
parent
e4308923b4
commit
b9e8747808
7 changed files with 1029 additions and 195 deletions
|
|
@ -1,13 +1,7 @@
|
|||
import json
|
||||
from typing import Any, Tuple
|
||||
|
||||
|
||||
def urgency_color(urgency: str) -> str:
|
||||
if urgency == "high":
|
||||
return "#dc3545" # red
|
||||
else:
|
||||
return "#ffc107" # orange
|
||||
# return "#17a2b8" # blue
|
||||
from ops_bot.common import urgency_color
|
||||
|
||||
|
||||
def parse_pagerduty_event(payload: Any) -> Tuple[str, str]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue