-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
44 lines (39 loc) · 995 Bytes
/
config.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
# coding=utf-8
# Created by JTProgru
# Date: 2019-07-29
# https://jtprog.ru/
import urllib3
import dotenv
from pathlib import Path
import logging
# Disable SSL warning
urllib3.disable_warnings()
# Load environment
env = dotenv.get_variables(str(Path(__file__).parent / '.env'))
# Logging configuretion
logging.basicConfig(format=u'%(filename)s [LINE:%(lineno)d]# '
u'%(levelname)s [%(asctime)s] %(message)s',
level=logging.DEBUG,
filename=env['LOG_FILE_PATH'])
zbx_severity_map = {
'0': 'Not classified',
'1': 'Information',
'2': 'Warning',
'3': 'Average',
'4': 'High',
'5': 'Disaster',
}
zbx_action_ack_map = {
'close': 1, # - Close problem
'ack': 2, # - Acknowledge problem
'msg': 4, # - Add message 'message=' is deprecated
'chsvrty': 8 # - Change severity for
}
jira_organization_map = {
"client1":
[1],
"client2":
[2],
"client3":
[3],
}