import { AlertType , ALERT_TYPES_CONFIG } from '../../../common/alert_types' ; export function getInitialAlertValues ( alertType , serviceName ) { const alertTypeName = alertType ? ALERT_TYPES_CONFIG [ alertType ] . name : undefined ; const alertName = alertTypeName ? serviceName ? `${ alertTypeName } | ${ serviceName }` : alertTypeName : undefined ; const tags = [ 'apm' ] ; if ( serviceName ) { tags . push ( `service.name:${ serviceName }` . toLowerCase ( ) ) ; } return { tags , ... ( alertName ? { name : alertName } : { } ) , } ; }