def check(self, data, server):
        process_data_dict = data.get('data', None)

        rules = alerts_model.get_alerts(type='uptime', server=server)

        if len(rules) + len(process_data_dict) > 0:
            for rule in rules:
                process_id = rule['process']

                process_data = next((item for item in process_data_dict if item["p"] == process_id), None)

                # Process is down
                if not process_data:
                    alerts_model.save_uptime_occurence(rule, data=process_data)