@staticmethod
def parse_alert_dictionary(alert_data):
    """
        Method used for extracting the source type and message data from the provided alert data dictionary
        :param alert_data: dictionary containing parsed alert data
        :return: returns the sourcetype(str) and formatted message(str) both of which are derived from the alert_data
        dictionary
        """
    message = ''
    sourcetype = ''
    for alert_dictionary in alert_data:
        if 'sourcetype' in alert_dictionary:
            sourcetype = alert_dictionary['sourcetype'].strip("'")
            del alert_dictionary['sourcetype']
        for key, data in alert_dictionary.items():
            message += '{0}={1} '.format(key, str(data).replace("'", '"'))
    return sourcetype, message
