def check_rule_and_save(self, process_data_dict=None, rule=None, process_id=None, server_id=None):
        process_data = next((item for item in process_data_dict if item["p"] == process_id), None)
        if process_data:
            alert = process_alerts.check(process_data, rule)

            if alert:
                alerts_model.save_occurence(alert, server_id=server_id)