#NEWLINE# def get_team_email_address( service , overrides = None , soa_dir = DEFAULT_SOA_DIR ) : #NEWLINE# #INDENT# 'Looks up the team email address from specific marathon or chronos config\n    (most specific) to monitoring.yaml, or the global Sensu team_data.json.\n    (least specific). Returns None if nothing is available.\n\n    This function is most useful for when you *really* need an email address to use\n    for non-Sensu applications. (chronos, jenkins, etc)\n\n    This function should *not* be used with Sensu stuff. Instead you should\n    leave `notification_email` absent and just let Sensu do its thing.' #NEWLINE# if ( overrides is None ) : #NEWLINE# #INDENT# overrides = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# email_address = __get_monitoring_config_value ( 'notification_email' , overrides = overrides , service = service , soa_dir = soa_dir ) #NEWLINE# if ( not email_address ) : #NEWLINE# #INDENT# team = get_team ( overrides = overrides , service = service ) #NEWLINE# email_address = get_sensu_team_data ( team ) . get ( 'notification_email' , None ) #NEWLINE# #UNINDENT# return email_address