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

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

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

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

    Raises:
        RubrikException: raises when an error occurs.
    
Solutions/RubrikSecurityCloud/Data Connectors/RubrikWebhookEvents/RubrikHttpStarter/__init__.py