-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconstant.py
46 lines (40 loc) · 1.1 KB
/
constant.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
from enum import Enum
class SendEmail(Enum):
FROM = "FROM"
TO = "TO"
REPLY_TO = "REPLY_TO"
ATTACHMENT_DETAILS = "ATTACHMENT_DETAILS"
S3_REGION_NAME = "S3_REGION_NAME"
SES_REGION_NAME = "SES_REGION_NAME"
TYPE = "TYPE"
S3_BUCKET = "S3_BUCKET"
S3_PATH = "S3_PATH"
CONTEXT = "CONTEXT"
TEMPLATE_NAME = "TEMPLATE_NAME"
MESSAGE_TEMPLATE = "MESSAGE_TEMPLATE"
SUBJECT = "SUBJECT"
class NotificationAlert(Enum):
MESSAGE = "message"
ERROR_TIME = "error_time"
LOG_STREAM = "logStream"
ENV = "env"
LOG_EVENTS = "logEvents"
ERROR_MESSAGE = "error_message"
DATA = "data"
AWS_LOGS = "awslogs"
SUBSCRIPTION_FILTERS = "subscriptionFilters"
LOG_GROUP = "logGroup"
BUTTON_URL = "buttonUrl"
LAMBDA = "lambda"
TIMESTAMP = "timestamp"
WEBHOOK_URL = "webhook_url"
TEAM = 'team'
SLACK = 'slack'
IMAGE_URL = "imageUrl"
BUTTON_NAME = "buttonName"
class NotificationResponse(Enum):
logGroup = "Log Group"
logStream = "Log Stream"
error_time = "Error Time"
env = "Env"
error_message = "Error Message"