#NEWLINE# def get_message( self , level , alert , value , target = None , ntype = None , rule = None ) : #NEWLINE# #INDENT# msg_type = ( 'slack' if ( ntype == 'graphite' ) else 'short' ) #NEWLINE# tmpl = TEMPLATES [ ntype ] [ msg_type ] #NEWLINE# return tmpl . generate ( level = level , reactor = self . reactor , alert = alert , value = value , target = target ) . strip ( )