def get_data_from_request_body(request):
    """Get data from request body.

    Args:
        request (func.HttpRequest): Azure function HttpRequest class object

    Raises:
        DataminrPulseException: raises when an error occurs.
    """
    __method_name = inspect.currentframe().f_code.co_name
    try:
        data = request.get_json()
        return data
    except ValueError as value_error:
        applogger.error(
            "{}(method={}) {}".format(LOGS_STARTS_WITH, __method_name, value_error)
        )
        raise DataminrPulseException(value_error)
    except Exception as err:
        applogger.error("{}(method={}) {}".format(LOGS_STARTS_WITH, __method_name, err))
        raise DataminrPulseException(err)
Get data from request body.

    Args:
        request (func.HttpRequest): Azure function HttpRequest class object

    Raises:
        DataminrPulseException: raises when an error occurs.
    
Solutions/Dataminr Pulse/Data Connectors/DataminrPulseAlerts/DataminrPulseAlertsHttpStarter/__init__.py