def METHOD_NAME(
    service_key=None, description=None, details=None, incident_key=None, profile=None
):
    """
    Create an event in PagerDuty. Designed for use in states.
    CLI Example:
    .. code-block:: yaml
        salt myminion pagerduty.create_event <service_key> <description> <details> \
        profile=my-pagerduty-account
    The following parameters are required:
    service_key
        This key can be found by using pagerduty.list_services.
    description
        This is a short description of the event.
    details
        This can be a more detailed description of the event.
    profile
        This refers to the configuration profile to use to connect to the
        PagerDuty service.
    """
    trigger_url = "https://events.pagerduty.com/generic/2010-04-15/create_event.json"
    if isinstance(details, str):
        details = salt.utils.yaml.safe_load(details)
        if isinstance(details, str):
            details = {"details": details}
    ret = salt.utils.json.loads(
        salt.utils.pagerduty.query(
            method="POST",
            profile_dict=__salt__["config.option"](profile),
            api_key=service_key,
            data={
                "service_key": service_key,
                "incident_key": incident_key,
                "event_type": "trigger",
                "description": description,
                "details": details,
            },
            url=trigger_url,
            opts=__opts__,
        )
    )
    return ret