blob: a4f3dd3104b577b605753ffa6acfbd082d24796a [file] [log] [blame]
STATE_MAP = {
'OK': '060 Informational',
'UP': '060 Informational',
'UNKNOWN': '070 Unknown',
'WARNING': '080 Warning',
'MINOR': '080 Warning',
'MAJOR': '090 Critical',
'CRITICAL': '090 Critical',
'DOWN': '090 Critical',
'UNREACHABLE': '090 Critical',
}
CONFIG_FIELD_MAP = {
'auth_url': 'instance_url',
'username': 'username',
'password': 'password',
'organization_id': 'organizationId',
'environment_id': 'environment_id',
'sandbox_enabled': 'domain',
}
ALLOWED_HASHING = ('md5', 'sha256')
SESSION_FILE = '/tmp/session'
# by default allow to send 2 feed items per hour
FEED_ITEMS_THROTTLING = 2
FEED_UPDATE_INTERVAL = 1.0 / FEED_ITEMS_THROTTLING
CASE_STATUS = ('pending', 'error')