# By: Riasat Ullah
# This file contains all constants and functions related to the Solarwinds Orion integration.

from utils import constants


# Orion variables
var_acknowledge_link = 'AcknowledgeLink'
var_alert_active_id = 'AlertActiveID'
var_alert_description = 'AlertDescription'
var_alert_details_url = 'AlertDetailsUrl'
var_alert_id = 'AlertID'
var_alert_message = 'AlertMessage'
var_alert_name = 'AlertName'
var_alert_object_id = 'AlertObjectID'
var_alert_type = 'AlertType'
var_date_time = 'DateTime'
var_object_type = 'ObjectType'
var_severity = 'Severity'


# alert type values
resolve_alert_type = 'Resolve'
trigger_alert_type = 'Trigger'


# Orion severity mapped to TaskCall urgency
severity_map = {
    'Critical': constants.critical_urgency,
    'Serious': constants.high_urgency,
    'Warning': constants.medium_urgency,
    'Informational': constants.low_urgency,
    'Notice': constants.minor_urgency
}
