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

from utils import constants


# Dynatrace variables
var_impacted_entity = 'impacted_entity'
var_incident_key = 'incident_key'
var_problem_details_html = 'problem_details_html'
var_problem_details_json = 'problem_details_json'
var_problem_details_text = 'problem_details_text'
var_problem_id = 'problem_id'
var_problem_impact = 'problem_impact'
var_problem_severity = 'problem_severity'
var_problem_title = 'problem_title'
var_problem_url = 'problem_url'
var_state = 'state'

# Dynatrace state values
merged_state = 'MERGED'
open_state = 'OPEN'
resolved_state = 'RESOLVED'

# Dynatrace severity mapped to TaskCall urgency
severity_map = {
    'Critical': constants.critical_urgency
}
