def METHOD_NAME(self, request, *args, **kwargs):
    """
    Send flag evaluation events from the SDK back to the API for reporting.
    """
    is_valid = self._is_data_valid()
    if not is_valid:
        # for now, return 200 to avoid breaking client integrations
        return Response(
            {"detail": "Invalid data. Not logged."},
            content_type="application/json",
            status=status.HTTP_200_OK,
        )
    if settings.USE_POSTGRES_FOR_ANALYTICS:
        track_feature_evaluation.delay(args=(request.environment.id, request.data))
    if settings.INFLUXDB_TOKEN:
        track_feature_evaluation_influxdb(request.environment.id, request.data)
    return Response(status=status.HTTP_200_OK)