from typing import Dict
import json


def alert_to_incident(alert: Dict) -> Dict:
    """
    transforms an alert to incident convention
    :param alert: alert is a dictionary
    :return: Incident - dictionary
    """
    alert_id: str = str(alert.get('id', ''))
    incident: Dict = {
        'rawJSON': json.dumps(alert),
        'name': f'ZeroFox Alert {alert_id}',
        'occurred': alert.get('timestamp', '')
    }
    return incident